1$(document).ready(function() { 2 3 /* check size of frame for responsive */ 4 5 resizeFrame(); 6 jQuery.event.add(window, "resize", resizeFrame); 7 8 var width = $(window).width() 9 var height = $(window).height() 10 11 function resizeFrame(e){ 12 var width = $(window).width() 13 var height = $(window).height() 14 15 if (width >= 900 ) { 16 $("body").removeClass("desktop mobile"); 17 $("body").addClass("desktop"); 18 } 19 else if (width < 900){ 20 $("body").removeClass("desktop mobile"); 21 $("body").addClass("mobile"); 22 } 23 } 24 25 $( '#togglemenu' ).click( function( e ){ 26 e.preventDefault(); 27 if (!$('#mobile-nav').hasClass('open')){ 28 $('#mobile-nav').addClass('open'); 29 $('#top-bar').addClass('open'); 30 $( '#mobileNav' ).slideToggle(); 31 } 32 else { 33 $( '#mobileNav' ).slideToggle(function (){ 34 $('#mobile-nav').removeClass('open'); 35 $('#top-bar').removeClass('open'); 36 }); 37 } 38 }) 39 40 $( '#mobileNav li a ' ).click( function( ){ 41 $( '#mobileNav' ).slideToggle(function (){ 42 $('#mobile-nav').removeClass('open'); 43 $('#top-bar').removeClass('open'); 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.