1(function($) { // create closure so we can safely use $ as an alias for jQuery 2 3 $(document).ready(function() { 4 5 "use strict"; 6 7 /** 8 * Activate FitVids. 9 */ 10 $(".entry-content, #slider, #primary").fitVids(); 11 12 $('.entry-content .fluid-width-video-wrapper').eq(0).addClass('first-video').end(); 13 $('.entry-content .wp-video').eq(0).addClass('first-video').end(); 14 15 $(".single #primary").css('visibility', 'visible'); 16 17 /*-----------------------------------------------------------------------------------*/ 18 /* Show video length after page loaded 19 /*-----------------------------------------------------------------------------------*/ 20 $('.video-length').fadeIn(400); 21 $('.thumbnail-wrap .genericon').fadeIn(400); 22 23 /*-----------------------------------------------------------------------------------*/ 24 /* Superfish Menu 25 /*-----------------------------------------------------------------------------------*/ 26 // initialise plugin 27 var example = $('.sf-menu').superfish({ 28 //add options here if required 29 delay: 100, 30 speed: 'fast',
31 autoArrows: false 32 }); 33 34 /*-----------------------------------------------------------------------------------*/ 35 /* Entry Share 36 /*-----------------------------------------------------------------------------------*/ 37 $('.entry-share-button').click(function() { 38 39 $('.entry-share').toggle(); 40 41 }); 42 43 /*-----------------------------------------------------------------------------------*/ 44 /* Back to Top 45 /*-----------------------------------------------------------------------------------*/ 46 // hide #back-top first 47 $("#back-top").hide(); 48 49 $(function() { 50 // fade in #back-top 51 $(window).scroll(function() { 52 if ($(this).scrollTop() > 100) { 53 $('#back-top').fadeIn('200'); 54 } else { 55 $('#back-top').fadeOut('200'); 56 } 57 }); 58 59 // scroll body to 0px on click 60 $('#back-top a').click(function() { 61 $('body,html').animate({ 62 scrollTop: 0 63 }, 400); 64 return false; 65 }); 66 }); 67 68 /*-----------------------------------------------------------------------------------*/ 69 /* Mobile Menu & Search 70 /*-----------------------------------------------------------------------------------*/ 71 72 /* Mobile Search */ 73 $('.search-icon > .genericon-search').click(function() { 74 75 $('.header-search').slideDown('fast', function() {}); 76 $('.search-icon > .genericon-search').toggleClass('active'); 77 $('.search-icon > .genericon-close').toggleClass('active'); 78 79 $('.menu-icon-open').removeClass('active'); 80 $('.menu-icon-close').removeClass('active'); 81 82 }); 83 84 $('.search-icon > .genericon-close').click(function() { 85 86 $('.header-search').slideUp('fast', function() {}); 87 $('.search-icon > .genericon-search').toggleClass('active'); 88 $('.search-icon > .genericon-close').toggleClass('active'); 89 90 $('.menu-icon-open').removeClass('active'); 91 $('.menu-icon-close').removeClass('active'); 92 93 }); 94 95 }); 96 97})(jQuery);
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.