1jQuery(document).ready(function($) { 2 'use strict'; 3 4 var $document = $(document); 5 var $window = $(window); 6 7 8 /** 9 * Document ready (jQuery) 10 */ 11 $(function () { 12 13 /** 14 * Activate superfish menu. 15 */ 16 $('.sf-menu').superfish({ 17 'speed': 'fast', 18 'delay' : 0, 19 'animation': { 20 'height': 'show' 21 } 22 }); 23 24 }); 25 26 /** 27 * SlickNav 28 */ 29 30 $('#menu-main-slick').slicknav({ 31 prependTo:'.navbar-header', 32 label: edupressStrings.slicknav_menu_home, 33 allowParentLinks: true 34 }); 35 36 jQuery("#ilovewp-featured-tabs").flexslider({ 37 selector: ".ilovewp-tabs > .ilovewp-tab", 38 animation: "slide", 39 controlNav: false, 40 directionNav: false, 41 animationLoop: true, 42 slideshow: false, 43 itemWidth: 195, 44 itemMargin: 0, 45 minItems: 2, 46 maxItems: 4, 47 asNavFor: '#ilovewp-featured-content' 48 }); 49 50 jQuery("#ilovewp-featured-content").flexslider({ 51 selector: ".ilovewp-slides > .ilovewp-slide", 52 animation: "slide", 53 animationLoop: true, 54 initDelay: 500, 55 smoothHeight: false, 56 slideshow: true, 57 slideshowSpeed: 5000, 58 pauseOnAction: false, 59 pauseOnHover: false, 60 controlNav: false, 61 directionNav: false, 62 useCSS: true, 63 touch: false, 64 animationSpeed: 450, 65 sync: "#ilovewp-featured-tabs" 66 }); 67 68 function edupress_mobileadjust() { 69 70 var windowWidth = $(window).width(); 71 72 if( typeof window.orientation === 'undefined' ) { 73 $('#menu-main-menu').removeAttr('style'); 74 } 75 76 if( windowWidth < 769 ) { 77 $('#menu-main-menu').addClass('mobile-menu'); 78 } 79 80 } 81 82 edupress_mobileadjust(); 83 84 $(window).resize(function() { 85 edupress_mobileadjust(); 86 }); 87 88});
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.