1require(['jquery','selectBox'],function($){$(document).ready(function($){$('.sorter select').selectBox({mobile:true,menuTransition:'slide',});$('.selectBox-options li a').on('click',function(){var currentUrl=window.location.href;if(window.location.search===''){window.location.href=currentUrl+'?product_list_order='+this.rel;return;} 2var newUrl=currentUrl.replace(/\?p=(\d)+/,'?').replace(/&p=(\d)+/,'');if(newUrl.indexOf('product_list_order')>-1){newUrl=newUrl.replace(/product_list_order=(\w+)/,'product_list_order='+this.rel);}else{newUrl=newUrl+'&product_list_order='+this.rel;} 3window.location.href=newUrl;}) 4$('.toolbar-sorter .sorter-action').on('click',function(){var currentUrl=window.location.href;if(window.location.search===''){window.location.href=currentUrl+'?product_list_dir='+$(this).data().value;return;} 5var newUrl=currentUrl.replace(/\?p=(\d)+/,'?').replace(/&p=(\d)+/,'');if(newUrl.indexOf('product_list_dir')>-1){newUrl=newUrl.replace(/product_list_dir=(\w+)/,'product_list_dir='+$(this).data().value);}else{newUrl=newUrl+'&product_list_dir='+$(this).data().value;} 6window.location.href=newUrl;}) 7if(getUrlParameter('product_list_order')=='created_at'){$('.selectBox .selectBox-label').text('Newest');}}) 8function getUrlParameter(sParam){var sPageURL=window.location.search.substring(1),sURLVariables=sPageURL.split('&'),sParameterName,i;for(i=0;i<sURLVariables.length;i++){sParameterName=sURLVariables[i].split('=');if(sParameterName[0]===sParam){return sParameterName[1]===undefined?true:decodeURIComponent(sParameterName[1]);}}} 9$('body').on('change','.limiter-options-dropbox',function(){var optionSelected=$("option:selected",this);var url=optionSelected.attr('data-url');window.location.href=url;});$('.limiter-options-dropbox .option').each(function(){if($(this).hasClass('selected')){$(this).prop('selected',true);}});})
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.