1(function () { 2 3 function initializeWoodsmithGlobalNav () { 4 let details = jQuery("details#woodsmith-global-nav-links-container"); 5 let logo_link = jQuery("a#woodsmith-global-nav-logo-link"); 6 7 if (jQuery(window).width() <= 945) { 8 details.removeAttr("open"); 9 } 10 else { 11 details.attr("open", true); 12 } 13 14 logo_link.on("click", function (e) { 15 let elmt = $(this); 16 e.preventDefault(); 17 if (jQuery(window).width() <= 945) { 18 if (details.attr("open")) { 19 details.removeAttr("open"); 20 } 21 else { 22 details.attr("open", true); 23 } 24 } 25 else { 26 window.location.href = elmt.attr("href"); 27 } 28 }); 29 30 } 31 32 jQuery(document).ready(function () { 33 initializeWoodsmithGlobalNav(); 34 }); 35 36 jQuery(window).on("resize", function () { 37 initializeWoodsmithGlobalNav(); 38 }); 39 40})();
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.