1/** 2 * Theme functions file 3 * 4*/ 5 6// Mobile Menu. 7jQuery(document).ready(function(){ 8 jQuery('#mobile-menu-wrap').hide(); 9 jQuery('a#mobile-menu-toggle').click(function () { 10 jQuery('#mobile-menu-wrap').slideToggle('600'); 11 }); 12}); 13 14jQuery(document).ready(function(){ 15 jQuery('a#mobile-menu-close').click(function () { 16 jQuery('#mobile-menu-wrap').slideToggle('600'); 17 }); 18}); 19 20// Archive Header Area Menu. 21jQuery(document).ready(function(){ 22 jQuery('.archive-menu-content').hide(); 23 jQuery('a.archive-menu-toggle').click(function () { 24 jQuery('.archive-menu-content').slideToggle('600'); 25 jQuery('a.archive-menu-toggle').toggleClass('archive-open'); 26 }); 27}); 28 29jQuery(document).ready(function(){ 30 jQuery('a.archive-menu-close').click(function () { 31 jQuery('.archive-menu-content').slideToggle('600'); 32 jQuery('a.archive-menu-toggle').removeClass('archive-open'); 33 }); 34}); 35 36// Initialize Featured Content slider. 37jQuery(window).load(function() { 38 jQuery('.flexslider').flexslider({ 39 animation: "slide", //String: Select your animation type, "fade" or "slide" 40 slideshow: false, //Boolean: Animate slider automatically 41 startAt: 1, //Integer: The slide that the slider should start on. Array notation (0 = first slide) 42 prevText: "<span>Previous</span>", //String: Set the text for the "previous" directionNav item 43 nextText: "<span>Next</span>", 44 touch: true //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices 45 }); 46}); 47 48// Scalable Videos (more info see: fitvidsjs.com). 49jQuery(document).ready(function(){ 50 jQuery('#primary').fitVids(); 51}); 52 53// Header Search (Desktop only). 54if (document.documentElement.clientWidth > 1200) { 55jQuery(document).ready(function(){ 56 jQuery("a#search-toggle").click().toggle(function() { 57 jQuery('#searchform').animate({ 58 width: 'show', 59 opacity: 'show' 60 }, 'fast'); 61 jQuery('a#search-toggle').addClass('btn-open'); 62 }, function() { 63 jQuery('#searchform').animate({ 64 width: 'hide', 65 opacity: 'hide' 66 }, 'fast'); 67 jQuery('a#search-toggle').removeClass('btn-open'); 68 }); 69}); 70}
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.