1jQuery(function($){ 2 3 /*RESPONSIVE MENU*/ 4 navTrigger = $('#responsiveBtn'); 5 nav = $('header nav'); 6 7 navTrigger.on('click', function(){ 8 $('header nav').toggleClass('open'); 9 }); 10 11 12 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 13 $('header li.menu-item-has-children > a').on('click', function(event){ 14 event.preventDefault(); 15 }); 16 }; 17 18 /*CLOSE ON OUTSIDE CLICK*/ 19 $('html').click(function() { 20 if(nav.hasClass('open')){ 21 navTrigger.click(); 22 } 23 if($('.top-secondary-icons a').hasClass('open')){ 24 $('.top-secondary-icons .open').removeClass('open'); 25 } 26 }); 27 28 $('header nav, #responsiveBtn, .trigger, .collapse').click(function(event){ 29 event.stopPropagation(); 30 }); 31 32});
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.