1/** 2* 2007-2021 PrestaShop 3* 4* NOTICE OF LICENSE 5* 6* This source file is subject to the Academic Free License (AFL 3.0) 7* that is bundled with this package in the file LICENSE.txt. 8* It is also available through the world-wide-web at this URL: 9* http://opensource.org/licenses/afl-3.0.php 10* If you did not receive a copy of the license and are unable to 11* obtain it through the world-wide-web, please send an email 12* to [email protected] so we can send you a copy immediately. 13* 14* DISCLAIMER 15* 16* Do not edit or add to this file if you wish to upgrade PrestaShop to newer 17* versions in the future. If you wish to customize PrestaShop for your 18* needs please refer to http://www.prestashop.com for more information. 19* 20* @author PrestaShop SA <[email protected]> 21* @copyright 2007-2021 PrestaShop SA 22* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 23* International Registered Trademark & Property of PrestaShop SA 24* 25* Don't forget to prefix your containers with your own identifier 26* to avoid any conflicts with others containers. 27*/ 28 29var loanding = "<div class='wt-main-loading-overlay'><div class='wt_loading cat_pro'><div class='loader'></div></div></div>"; 30var content_result = "<div id='wtsearch_content_result'><div class='over_light'></div><a href='javascript:void(0)' class='wt_close' id='close_search_query_nav'><span>close</span></a><div id='wtsearch_eccept_data' class='wt-container'></div></div>"; 31$(function(){ 32 33 34 $(content_result).insertAfter("#search_block_top" ); 35 36 $('#search_query_nav').click(function(){ 37 38 $("#search_block_top").addClass('show'); 39 }); 40 41 $('#close_search_query_nav').click(function(){ 42 $('#wtsearch_content_result').slideUp(300); 43 $("#search_block_top").removeClass('show'); 44 45 }); 46 47 $('#show_all_search').click(function(){ 48 $("#searchbox").submit(); 49 }); 50 51var searching = null; 52 $('#searchbox input.search_query').keyup(function(){ 53 $('.ac_results').remove(); 54 55 if(this.value.length<3) 56 { 57 $('#wtsearch_eccept_data').html(loanding); 58 $('#wtsearch_eccept_data').html(limit_character); 59 $('#wtsearch_content_result').slideDown(400); 60 } 61 else 62 { 63 $('#wtsearch_eccept_data').html(loanding); 64 $('#wtsearch_content_result').slideDown(400); 65 var id_cat = 'all'; 66 $('#search_category option[value="'+id_cat+'"]').prop("selected", true); 67 var secure_key = $("#search_block_top").attr('secure_key'); 68 if (searching) { 69 clearTimeout(searching); 70 } 71 searching = setTimeout(function () { 72 doLiveSearch($('#searchbox input.search_query').val(), id_cat, secure_key); 73 }, 500); 74 } 75 76 }); 77 78 $("#search_category").change(function() { 79 $('#wtsearch_eccept_data').html(loanding); 80 $('#wtsearch_content_result').slideDown(400); 81 82 var id_cat = $('#search_category').val(); 83 var name_cat = $("#search_category option:selected").attr('name_cat'); 84 var link_cat = $("#search_category option:selected").attr('link'); 85 var secure_key = $("#search_block_top").attr('secure_key'); 86 if (id_cat !='all') 87 doLiveSearch_Cat(id_cat, name_cat, link_cat, secure_key); 88 else 89 $('#wtsearch_content_result').slideUp(10); 90 91 }); 92 93}); 94function doLiveSearch_Cat(id_cat, name_cat, link_cat, s_key) { 95 96 $.post( 97 $('#wt_url_ajax_search input.url_ajax').val(), 98 {queryString: '', id_Cat: id_cat, Name_cat: name_cat, Link_cat: link_cat, secure_key: s_key}, 99 function(data) 100 { 101 $('#wtsearch_eccept_data').html(data); 102 }); 103} 104function doLiveSearch(inputString, id_cat, s_key) { 105 106 $.post( 107 $('#wt_url_ajax_search input.url_ajax').val(), 108 {queryString: inputString, id_Cat: id_cat, secure_key: s_key}, 109 function(data) 110 { 111 $('#wtsearch_eccept_data').html(loanding); 112 $('#wtsearch_content_result').slideDown(400); 113 $('#wtsearch_eccept_data').html(data); 114 }); 115} 116 117$( document ).ajaxComplete(function() { 118 $('#show_all_search').click(function(){ 119 $("#searchbox").submit(); 120 }); 121});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.