1jQuery(function( $ ){ 2 3 $(".nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu").addClass("responsive-menu").before('<div class="responsive-menu-icon"></div>'); 4 5 $(".responsive-menu-icon").click(function(){ 6 $(this).next(".nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu").slideToggle(); 7 }); 8 9 $(window).resize(function(){ 10 if(window.innerWidth > 800) { 11 $(".nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu, nav .sub-menu").removeAttr("style"); 12 $(".responsive-menu > .menu-item").removeClass("menu-open"); 13 } 14 }); 15 16 17 $(".responsive-menu > .menu-item").click(function(event){ 18 $(this).find(".sub-menu:first").slideToggle(function() { 19 $(this).parent().toggleClass("menu-open"); 20 }); 21 }); 22 23 // Local Scroll Speed 24 $.localScroll({ 25 duration: 750 26 }); 27 28 // Sticky Navigation 29 var headerHeight = $('.site-header').innerHeight(); 30 var beforeheaderHeight = $('.before-header').outerHeight(); 31 var abovenavHeight = headerHeight + beforeheaderHeight - 1; 32 33 $(window).scroll(function(){ 34 35 if ($(document).scrollTop() > abovenavHeight){ 36 37 $('.nav-secondary').addClass('fixed'); 38 39 } else { 40 41 $('.nav-secondary').removeClass('fixed'); 42 43 } 44 45 }); 46 47});
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.