1/** 2 * Theme functions file 3 */ 4 5jQuery(function( $ ) { 6 7 var $document = $(document); 8 var $window = $(window); 9 10 11 /** 12 * Document ready (jQuery) 13 */ 14 $(function () { 15 16 /** 17 * Activate superfish menu. 18 */ 19 $('.sf-menu').superfish({ 20 'speed': 'fast', 21 'delay' : 1000, 22 'animation': { 23 'height': 'show' 24 } 25 }); 26 27 }); 28 29 $('#toggle').click(function() { 30 $('#menu-main').slideToggle(400); 31 $(this).toggleClass("active"); 32 33 return false; 34 35 }); 36 37 function mobileadjust() { 38 39 var windowWidth = $(window).width(); 40 41 if( typeof window.orientation === 'undefined' ) { 42 $('#menu-main').removeAttr('style'); 43 } 44 45 if( windowWidth < 769 ) { 46 $('#menu-main').addClass('mobile-menu'); 47 } 48 49 } 50 51 mobileadjust(); 52 53 $(window).resize(function() { 54 mobileadjust(); 55 }); 56 57});
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.