1( function( $ ) { 2 3 'use strict'; 4 5 $(document).ready(function() { 6 7 //animate comments scroll 8 $( '.comment-scroll a' ).click(function(event){ 9 event.preventDefault(); 10 $( 'html,body' ).animate({ scrollTop:$(this.hash).offset().top}, 'normal' ); 11 } ); 12 13 //superFish 14 $( 'ul.sf-menu' ).superfish({ 15 delay : 200, 16 autoArrows : false, 17 dropShadows : false, 18 animation : { 19 opacity :'show', 20 height :'show' 21 }, 22 speed : 'fast' 23 } ); 24 25 // Pretty Photo 26 if ( $(window).width() > 767 ) { 27 $( ".prettyphoto-link" ).prettyPhoto({ 28 show_title : false, 29 social_tools : false, 30 slideshow : false, 31 autoplay_slideshow : false, 32 wmode : 'opaque' 33 } ); 34 $( "a[rel^='prettyPhoto']" ).prettyPhoto({ 35 show_title : false, 36 social_tools : false, 37 autoplay_slideshow : false, 38 overlay_gallery : true, 39 wmode : 'opaque' 40 41 } ); 42 } 43 44 // Mobile Menu 45 $( '#navigation .sf-menu' ).slicknav( { 46 appendTo : '#header', 47 label : wpexvars.mobileMenuLabel, 48 allowParentLinks : true 49 } ); 50 51 // Fitvids 52 $( '.fitvids' ).fitVids(); 53 54 // Masonry Layout 55 function wpex_isotope() { 56 var $container = $( '.blog-isotope' ); 57 $container.imagesLoaded(function(){ 58 $container.isotope({ 59 itemSelector : '.blog-entry', 60 transformsEnabled : false, 61 animationOptions : { 62 duration : 400, 63 easing : 'swing', 64 queue : false 65 } 66 } ); 67 } ); 68 } wpex_isotope(); 69 70 $( window ).resize(function () { 71 wpex_isotope(); 72 } ); 73 74 // Slider 75 $( '#single-post-slider' ).imagesLoaded( function() { 76 $( '#single-post-slider' ).flexslider( { 77 animation : 'slide', 78 slideshow : true, 79 controlNav : false, 80 prevText : '', 81 nextText : '', 82 smoothHeight : true, 83 start : function(slider) { 84 slider.container.click(function(e) { 85 if ( ! slider.animating ) { 86 slider.flexAnimate( slider.getTarget('next') ); 87 } 88 89 } ); 90 } 91 } ); 92 } ); 93 94 } ); 95 96} ) ( 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.