PageSourceSearch

https://saasoh.com/cdn/shop/t/3/assets/ajax-search-script.js?v=62983375520954277691698858965

js saasoh.com collected 2026-10-04 02:27:35 UTC 2,314 bytes, 2 lines download raw bytes

1$(document).ready(function(){$('.search-bar__form input[type="search"]').bind("focusin focusout",function(e){$(this).closest(".search-box").toggleClass("focus",e.type=="focusin")});var preLoadLoadGif=$('<img src="//saasoh.com/cdn/shop/t/3/assets/loading.gif?v=50837312686733260831629231236" />'),searchTimeoutThrottle=500,searchTimeoutID=-1,currReqObj=null,$resultsBox=$('<div class="results-box" />').appendTo(".search-box");$('.search-bar__form input[type="search"]').bind("keyup change",function(){if($(this).val().length>2&&$(this).val()!=$(this).data("oldval")){$(this).data("oldval",$(this).val()),currReqObj!=null&&currReqObj.abort(),clearTimeout(searchTimeoutID);var $form=$(this).closest("form"),term="*"+$form.find('input[name="q"]').val()+"*",keyVal=$form.find('input[name="q"]').val(),linkURL=$form.attr("action")+"?type=product&q="+term;$resultsBox.html('<div class="load"></div>'),searchTimeoutID=setTimeout(function(){currReqObj=$.ajax({url:$form.attr("action"),data:{type:"product",view:"json",q:term},dataType:"json",success:function(data){currReqObj=null,data.results_total==0?$resultsBox.html('<div class="note">Your search did not yield any results</div>'):($resultsBox.empty(),$.each(data.results,function(index,item){var xshow="wholesale";if(!(item.title.toLowerCase().indexOf(xshow)>-1)){var $row=$("<a></a>").attr("href",item.url);$row.append('<div class="img"><img src="'+item.thumb+'" /></div>'),$row.append('<div class="d-title">'+item.title+"</div>"),$resultsBox.append($row)}}),$resultsBox.prepend('<p class="keyval">Your search for <strong>'+keyVal+"</strong> revealed the following:</p>"),$resultsBox.append('<div class="res-btn"><a href="'+linkURL+'"class="note btn">See all products </a></div>'))}})},searchTimeoutThrottle)}else $(this).val().length<=2&&$resultsBox.empty()}).attr("autocomplete","off").data("oldval","").bind("focusin",function(){$resultsBox.fadeIn(200)}).bind("click",function(e){e.stopPropagation()}),$("body").bind("click",function(){$resultsBox.fadeOut(200)}),$(".search-form").on("submit",function(e){e.preventDefault();var term="*"+$(this).find('input[name="q"]').val()+"*",linkURL=$(this).attr("action")+"?type=product&q="+term;window.location=linkURL})});
2//# sourceMappingURL=/cdn/shop/t/3/assets/ajax-search-script.js.map?v=62983375520954277691698858965

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.