1jQuery(document).foundation(); 2/* 3These functions make sure WordPress 4and Foundation play nice together. 5*/ 6 7jQuery(document).ready(function() { 8 9 // Remove empty P tags created by WP inside of Accordion and Orbit 10 jQuery('.accordion p:empty, .orbit p:empty').remove(); 11 12 // Makes sure last grid item floats left 13 jQuery('.archive-grid .columns').last().addClass( 'end' ); 14 15 // Adds Flex Video to YouTube and Vimeo Embeds 16 jQuery('iframe[src*="youtube.com"], iframe[src*="vimeo.com"]').each(function() { 17 if ( jQuery(this).innerWidth() / jQuery(this).innerHeight() > 1.5 ) { 18 jQuery(this).wrap("<div class='widescreen flex-video'/>"); 19 } else { 20 jQuery(this).wrap("<div class='flex-video'/>"); 21 } 22 }); 23 24 // Icon Click Oopen 25 jQuery('.icon-search').click(function () { 26 jQuery('.search-form').toggleClass('search-expanded'); 27 }); 28 29 //Scroll To 30 jQuery('a[href^="#"]').on('click',function (e) { 31 e.preventDefault(); 32 33 var target = this.hash; 34 var jQuerytarget = jQuery(target); 35 36 if ( target ) { 37 38 jQuery('html, body').stop().animate({ 39 'scrollTop': jQuerytarget.offset().top 40 }, 900, 'swing'); 41 42 } 43 44 }); 45 46 47}); //end document.ready
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.