1jQuery(document).ready(function() { 2 // Responsive Navigation 3 4 var header = jQuery("#header"), 5 nava = jQuery(".nav-btn"), 6 navb = jQuery("#navigation"), 7 wind = jQuery(window).width(), 8 winh; 9 10 if(wind < 1007) { 11 winh = jQuery(window).outerHeight() 12 } 13 else { 14 winh = jQuery(window).outerHeight() -jQuery('#header').outerHeight() 15 } 16 17 // Add classes 18 jQuery(window).resize(function () { 19 var nava = jQuery(".nav-btn"), 20 navb = jQuery("#navigation"), 21 wind = jQuery(window).width(), 22 winh; 23 24 if(wind < 1007) { 25 winh = jQuery(window).outerHeight() 26 } 27 else { 28 winh = jQuery(window).outerHeight() -jQuery('#header').outerHeight() 29 } 30 31 if (wind > 1006) { 32 navb.addClass("desktop"); 33 navb.removeClass("mobile") 34 } 35 if (wind < 1007) { 36 navb.addClass("mobile"); 37 navb.removeClass("desktop") 38 } 39 40 // Nav CSS adjustment for mobile 41 if (wind < 1007) { 42 jQuery('#navigation.mobile').css({'max-height': winh-150, 'overflow-y': 'scroll'}); 43 } 44 if (wind > 1006) { 45 jQuery('#navigation.desktop').css({'overflow': 'visible'}); 46 } 47 48 }); 49 50 if (wind > 1006) { 51 navb.addClass("desktop"); 52 navb.removeClass("mobile") 53 } 54 if (wind < 1007) { 55 navb.addClass("mobile"); 56 navb.removeClass("desktop") 57 } 58 // Nav CSS adjustment for mobile 59 if (wind < 1007) { 60 jQuery('#navigation.mobile').css({'max-height': winh-150, 'overflow-y': 'scroll'}); 61 } 62 if (wind > 1006) { 63 jQuery('#navigation.desktop').css({'overflow': 'visible'}); 64 } 65 66 // Click Tweak 67 nava.click(function () { 68 if (navb.is(":visible")) { 69 navb.slideUp(); 70 setTimeout(function(){ 71 header.removeClass('navigation-dropdown'); 72 }, 200); 73 } else { 74 header.addClass('navigation-dropdown'); 75 navb.slideDown(); 76 } 77 }); 78});
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.