1(function ($) { 2 $(window).resize(function () { 3 StorySlidersMatchHeight(); 4 }); 5 $(document).ready(function () { 6 7 8 bodySectionTween(); 9 articleHeaderSectionTween(); 10 magicLine(); 11 scrollToFcSection(); 12 StorySliders(); 13 }); 14 15 function bodySectionTween() { 16 // Body Section 17 var bodyanimationController = new ScrollMagic.Controller({ 18 //addIndicators: true 19 }); 20 // Underline animation from Global.js 21 underlineAnimation(bodyanimationController); 22 statBannerAnimation(bodyanimationController); 23 twoColCircleImageAnimation(bodyanimationController); 24 storySliderAnimation(bodyanimationController); 25 26 } 27 28 function scrollToFcSection() { 29 $('a[href*="#cs-fc-"]').on('click', function (e) { 30 e.preventDefault(); 31 $("html, body").animate({ scrollTop: $($(this).attr("href")).offset().top - 200}, 500); 32 }); 33 34 } 35 36 // Animate Section /partial-templates/artilce-header-cards.php 37 function articleHeaderSectionTween() { 38 // Header Section 39 var headeranimationController = new ScrollMagic.Controller({ 40 // addIndicators: true 41 42 }); 43 44 // build tween 45 var fadeupbuttonTween = TweenMax.fromTo('.hero_arrow_down', 1, { opacity: 0, y: 40 }, { opacity: 1, y: 0, delay: 1 }); 46 // build scene 47 var pageheaderscene = new ScrollMagic.Scene( 48 ).setTween( 49 fadeupbuttonTween 50 ).addTo( 51 headeranimationController 52 ); 53 54 $(document).on("click", ".hero_arrow_down i", function (e) { 55 var siblingSection = $(this).closest('section').next('section').next('section'); 56 57 if (siblingSection.length > 0) { 58 e.preventDefault(); 59 60 // trigger scroll 61 $([document.documentElement, document.body]).animate({ 62 scrollTop: $(siblingSection).offset().top - 200 63 }, 2000); 64 65 } 66 }); 67 } 68 69})(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.