1// remap jQuery to $ 2(function($){ 3 4// Slick Options 5$(document).ready(function(){ 6 $('.home-slider').slick({ 7 autoplay: true, 8 autoplaySpeed: 8000, 9 arrows: false, 10 speed: 1000, 11 dots: true 12 }); 13 $('.funder-carousel').slick({ 14 autoplay: true, 15 autoplaySpeed: 1000, 16 arrows: true, 17 speed: 500, 18 infinite: true, 19 slidesToShow: 7, 20 slidesToScroll: 1, 21 responsive: [ 22 { 23 breakpoint: 960, 24 settings: { 25 slidesToShow: 4, 26 slidesToScroll: 1, 27 } 28 }, 29 { 30 breakpoint: 768, 31 settings: { 32 slidesToShow: 2, 33 slidesToScroll: 1 34 } 35 } 36 ] 37 }); 38}); 39 40// Smooth Scroll 41/** $(document).ready(function(){ 42 $("a").on('click', function(event) { 43 if (this.hash !== "") { 44 event.preventDefault(); 45 var hash = this.hash; 46 $('html, body').animate({ 47 scrollTop: $(hash).offset().top-200 48 }, 800, function(){ 49 }); 50 } 51 }); 52}); */ 53 54 55// Return to Top 56$(document).ready(function(){ 57 var offset = 1000; 58 var duration = 500; 59 jQuery(window).scroll(function() { 60 if (jQuery(this).scrollTop() > offset) { 61 jQuery('.back-to-top').fadeIn(duration); 62 } else { 63 jQuery('.back-to-top').fadeOut(duration); 64 } 65 }); 66 jQuery('.back-to-top').click(function(event) { 67 event.preventDefault(); 68 jQuery('html, body').animate({scrollTop: 0}, duration); 69 return false; 70 }) 71}); 72 73$(document).on('facetwp-loaded', function() { 74 if (FWP.loaded || ( 'undefined' !== typeof FWP.facets['tags'] && 0 < FWP.facets['tags'].length ) ) { 75 $('html, body').animate({ 76 scrollTop: $('.facetwp-template').offset().top 77 }, 500); 78 } 79}); 80 81$(document).ready(function(){ 82 $(".search-result .tab_cat").click(function(){ 83 $(".search-result .tab_cat").removeClass("active"); 84 $(this).addClass("active"); 85 var id = $(this).data("id"); 86 $(".search-result .tab").removeClass("active"); 87 $(".search-result #tab-"+id).addClass("active"); 88 }); 89}); 90 91 92/************ 93GoogleTagManager Event Tracking 94*************/ 95 96$(document).ready(function(){ 97 $(document).bind('gform_confirmation_loaded', function(event, formId){ 98 99 //Event snippet for Newsletter conversion page 100 if(formId == 1) { 101 gtag('event', 'conversion', {'send_to': 'AW-834854513/GqCDCJf6j9gBEPG8i44D'}); 102 } 103 104 }); 105}); 106 107})(window.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.