1/*USED BY TEMPLATE--------*/ 2 3$(document).ready(function() { 4 5$(".searchtoykeywords").attr("placeholder","Site search"); 6$(".cmsProductSearchKeywords").attr("placeholder","Product Search"); 7 8//Remove root slash on menu links on homepage (no refresh) 9var width = $(window).width(); 10if(width>560){$(".cmsHomePage #menu a").each(function(){target=$(this).attr("href"),-1===target.indexOf("#")||$(this).attr("href",$(this).attr("href").substring(1))})}; 11 12 13}); 14 15 16$(document).ready(function(){ 17 mobilise(); 18 menuise(); 19}); 20 21 22function mobilise() { 23 24$('.mobilemenucontainer').html(''); 25$('.mobilecatmenucontainer').html(''); 26 27//efficient use of page size by duplicating content 28$('.mobilemenucontainer').html($("#menu>#nav").html()); 29$('.mobilecatmenucontainer').html($("#catmenu>#nav").html()); 30 31//click button already in page 32$("#mobbtn").on('click',function(){ 33$("body").addClass("mobilemenuactive"); 34 $(window).scrollTop(0); 35}); 36 37//overlay click exit 38$(".is-mobile-menu .is-overlay").on('click',function(){ 39 $("body").removeClass("mobilemenuactive"); 40}); 41 42//exit button exit 43$("#mobbtnx").on('click',function(){ 44 $("body").removeClass("mobilemenuactive"); 45}); 46 47} 48 49function menuise(){ 50 51//IF MENU ITEM HAS DROPDOWN 52$('.mobilemenucontainer .menulilink').has("ul").each(function(){ 53 $(this).has(".catsubmenu,.submenu").addClass("hassubmenu inactive"); 54 $(this).find("a:first").after('<button class="toggle"><div class="plus"></div></button>'); 55 56}); 57 58$(".menuliactive,.selectedCategory.hassubmenu").removeClass("inactive").addClass("active"); 59 60$(".hassubmenu button.toggle").click(function(e){ 61 e.preventDefault(); 62 $(this).parent().toggleClass("active inactive"); 63}); 64 65}
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.