PageSourceSearch

https://king-drapeaux.com/cdn/shop/t/62/assets/search_autocomplete.js?v=19208907699032430711789630510

js king-drapeaux.com collected 2026-10-07 19:41:45 UTC 2,493 bytes, 2 lines download raw bytes

1$(function(){var searchForms=$('form[action="/search"]').css("position","relative").each(function(){var input=$(this).find('input[name="q"]'),offSet=input.position().top+input.innerHeight();$('<ul class="search-results"></ul>').css({position:"absolute",left:"0px",top:offSet}).appendTo($(this)).hide(),$('<div class="search-close search-results-close"><i class="icon-cross"></i></div>').css({position:"absolute",right:"5px",top:"75px"}).appendTo($(this)).hide();var searchingAdev;input.attr("autocomplete","off"),input.bind("input",function(){var self=$(this);clearTimeout(searchingAdev),searchingAdev=setTimeout(function(){var term=self.val(),form=self.closest("form"),searchURL="/search?type=product&q="+term,resultsList=form.find(".search-results");term!==""&&(resultsList.fadeIn(200),resultsList.html('<li class="adev-no-results"><span class="title">Recherche pour "'+term+'"...</span></li>'),$.ajax({url:searchURL+"&view=json",dataType:"json",type:"GET"}).done(function(data){if(console.log(data),typeof data=="string"&&(data=data.trim()),console.log(data.results_count),data.results_count==0)resultsList.html('<li class="adev-no-results"><span class="title">Aucun r\xE9sultat trouv\xE9 pour "'+term+'".</span></li>'),resultsList.fadeIn(200),console.log("no results found");else{resultsList.empty(),count=0;let max_show=$(window).outerWidth()>991?9:6;$.each(data.results,function(index,item){if(count<max_show){var link=$("<a></a>").attr("href",item.url);link.append('<span class="thumbnail image-hover-scale"><img src="'+item.thumbnail+'" /></span>'),link.append('<span class="title">'+item.title+"</span>"),link.wrap("<li></li>"),resultsList.append(link.parent())}count++});let headerHeight=$('[data-section-type="header-section"]').outerHeight()||0,searchBar=$(".search_container_desktop .dropdn-content").outerHeight()||0,maxHeight="calc(100vh - "+(headerHeight+searchBar)+"px";$(".search-results").css({"max-height":maxHeight,overflow:"hidden","overflow-y":"auto"}),data.results_count>9&&resultsList.append('<li><span class="title"><a class="btn btn--alt" href="'+searchURL+'">Voir tous les r\xE9sultats ('+data.results_count+")</a></span></li>"),resultsList.fadeIn(200),console.log("results showing"),console.log(resultsList),$(".search-results-close").fadeIn(200)}}))},300)})});$("body").bind("click",function(){$(".search-results").hide(),$(".search-results-close").hide()})});
2//# sourceMappingURL=/cdn/shop/t/62/assets/search_autocomplete.js.map?v=19208907699032430711789630510

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.