1/* 2These functions make sure WordPress 3and Foundation play nice together. 4*/ 5 6jQuery(document).foundation(); 7 8var $win = jQuery(window), 9 $body = jQuery("body"); 10$ = jQuery; 11 12$(".footer-socials a").each(function (index) { 13 if (index === $(".footer-socials a").length - 1) { 14 var text = $(this).text(); 15 $(this).text(text + "."); 16 $(this).parent().addClass("linebreak"); 17 } else if (index === $(".footer-socials a").length - 2) { 18 var text = $(this).text(); 19 $(this).text(text + ","); 20 $(this).parent().addClass("linebreak"); 21 } else { 22 var text = $(this).text(); 23 $(this).text(text + ","); 24 } 25}); 26 27//tour section wrapping 28jQuery("#umg-live-gigs-table tr").each(function (event) { 29 //have to pick one 30 //wrap locations 31 // jQuery(this).children().slice(1, 3).wrapAll('<td class="umg-locations"/>') 32 // jQuery(this).children().slice(2).wrapAll('<td class="umg-tickets"/>'); 33 34 // wrap just tickets 35 jQuery(this).children().slice(3).wrapAll('<td class="umg-tickets"/>'); 36}); 37jQuery(window).on("load", function () { 38 jQuery("#ae-cform-input-reg-email-1, #ae-cform-input-reg-email-2").attr( 39 "placeholder", 40 "Email Address" 41 ); 42 43 jQuery(".top-bar .menu-bars").on("click", function () { 44 jQuery(this).find(".fas").toggleClass("fa-times"); 45 }); 46 jQuery(".js-off-canvas-overlay").on("click", function () { 47 jQuery(".top-bar .menu-bars .fas").removeClass("fa-times"); 48 }); 49 50 jQuery(".js-subscribe a").on("click", function (e) { 51 e.preventDefault(); 52 53 var $target = jQuery(this).attr("href"); 54 55 jQuery("html, body").animate( 56 { 57 scrollTop: jQuery($target).offset().top, 58 }, 59 800 60 ); 61 62 if (jQuery(this).parents(".off-canvas")) { 63 jQuery(".js-off-canvas-overlay").trigger("click"); 64 } 65 }); 66 67 if ($(".form-inputs").length == 0) { 68 $('#ae-cform-container-1 [id*="ae-cform-reg-item-"').wrapAll( 69 '<div class="form-inputs"></div>' 70 ); 71 } 72 73 if ($body.hasClass("home")) { 74 // setTimeout(function () { 75 // jQuery("#ae-cform-modal-display-cta-2").trigger("click"); 76 // }, 15000); 77 78 $(".js-slider-slide-3").slick({ 79 slidesToShow: 3, 80 slidesToScroll: 1, 81 speed: 300, 82 centerMode: false, 83 cssEase: "ease-in-out", 84 useTransform: true, 85 dots: false, 86 87 responsive: [ 88 { 89 breakpoint: 900, 90 settings: { 91 slidesToShow: 1, 92 slidesToScroll: 1, 93 }, 94 }, 95 ], 96 }); 97 98 $(".js-slider-slide-2").slick({ 99 slidesToShow: 2, 100 slidesToScroll: 1, 101 speed: 300, 102 centerMode: false, 103 cssEase: "ease-in-out", 104 useTransform: true, 105 dots: false, 106 107 responsive: [ 108 { 109 breakpoint: 900, 110 settings: { 111 slidesToShow: 1, 112 slidesToScroll: 1, 113 }, 114 }, 115 ], 116 }); 117 118 $(".js-slider-slide-1").slick({ 119 slidesToShow: 1, 120 slidesToScroll: 1, 121 speed: 300, 122 centerMode: false, 123 cssEase: "ease-in-out", 124 useTransform: true, 125 dots: false, 126 127 responsive: [ 128 { 129 breakpoint: 900, 130 settings: { 131 slidesToShow: 1, 132 slidesToScroll: 1, 133 }, 134 }, 135 ], 136 }); 137 138 function scrollDownNav(target) { 139 event.preventDefault(); 140 $(".js-off-canvas-overlay").trigger("click"); 141 142 if (screen.width >= 1024) { 143 $("html,body").animate( 144 { scrollTop: $(target).offset().top - 50 }, 145 "slow" 146 ); 147 } else { 148 $("html,body").animate({ scrollTop: $(target).offset().top }, "slow"); 149 } 150 } 151 $(".custom-logo-link").on("click", function (event) { 152 scrollDownNav(".section-banner"); 153 }); 154 $(".nav-music").on("click", function (event) { 155 scrollDownNav("#music"); 156 }); 157 $(".nav-videos").on("click", function (event) { 158 scrollDownNav("#videos"); 159 }); 160 161 $(".nav-tour").on("click", function (event) { 162 scrollDownNav("#tour"); 163 }); 164 $(".nav-about").on("click", function (event) { 165 scrollDownNav("#about"); 166 }); 167 $(".nav-store, .nav-merch").on("click", function (event) { 168 scrollDownNav("#merch"); 169 }); 170 } 171});
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.