1console.log("test4"); 2 3var largeBreakpoint = window.matchMedia("(max-width: 1120px)"), 4 smallBreakpoint = window.matchMedia("(max-width: 860px)"), 5 headerHeight = document.querySelector(".site-header").offsetHeight + "px", 6 homeHero = document.querySelector(".home-hero"); 7try { 8 largeBreakpoint.matches ? (homeHero.style.minHeight = "400px") : (homeHero.style.minHeight = "calc(100vh - " + headerHeight + ")"); 9} catch (e) {} 10var articlesToShow, 11 categoryList = document.querySelectorAll(".article-category"), 12 articleDisplays = document.querySelectorAll(".home-articles-display"); 13Array.prototype.forEach.call(categoryList, function (t) { 14 t.addEventListener("click", function () { 15 var e = t.dataset.category; 16 (articlesToShow = document.querySelector("#" + e)), 17 Array.prototype.forEach.call(articleDisplays, function (e) { 18 e.classList.remove("active"); 19 }), 20 Array.prototype.forEach.call(categoryList, function (e) { 21 e.classList.remove("active"); 22 }), 23 articlesToShow.classList.add("active"), 24 t.classList.add("active"); 25 }); 26}); 27try { 28 var firstMag = document.querySelector(".home-magazine-item"); 29 firstMag.classList.add("first-magazine-item"); 30 var leftCount = 0, 31 itemWidth = 582, 32 magContainer = document.querySelector(".mag-slider"), 33 carouselItems = magContainer.children, 34 itemCount = carouselItems.length; 35 document.querySelector(".events-carousel-item") && (itemWidth = 388), document.querySelector(".expo-magazine") && (itemWidth = 289), largeBreakpoint.matches && (itemWidth = 420), smallBreakpoint.matches && (itemWidth = 276); 36 var totalLength = itemCount * itemWidth, 37 currentFirst = 0, 38 carouselForward = document.querySelector(".mag-right"), 39 carouselBackward = document.querySelector(".mag-left"); 40 function moveForward() { 41 carouselItems[currentFirst].classList.remove("first-magazine-item"), leftCount == totalLength - itemWidth ? (currentFirst = leftCount = 0) : ((leftCount += itemWidth), currentFirst++), carouselItems[currentFirst].classList.add("first-magazine-item"), (magContainer.style.marginLeft = -leftCount + "px"); 42 } 43 function moveBackward() { 44 carouselItems[currentFirst].classList.remove("first-magazine-item"), 0 == leftCount ? ((leftCount = totalLength - itemWidth), (currentFirst = itemCount - 1)) : ((leftCount -= itemWidth), currentFirst--), carouselItems[currentFirst].classList.add("first-magazine-item"), (magContainer.style.marginLeft = -leftCount + "px"); 45 } 46 carouselForward.addEventListener("click", moveForward), carouselBackward.addEventListener("click", moveBackward); 47 var carousel = document.querySelector(".home-magazine-carousel"); 48 carousel.style.width = totalLength + "px"; 49} catch (e) {} 50var homeEvents = document.querySelectorAll(".home-event-countdown"); 51Array.prototype.forEach.call(homeEvents, function (e) { 52 var t = new Date(e.innerHTML) - new Date().getTime(), 53 s = Math.floor(t / 864e5), 54 a = (Math.floor((t % 864e5) / 36e5), "<div class='home-countdown-left'><span class='countdown-days'>" + (s = s || "") + "</span></div>"); 55 e.innerHTML = a; 56}); 57try { 58 var sessionContainer, 59 sessionCarouselItems, 60 sessionItemCount, 61 sessionTotalLength, 62 sessionCarouselForward, 63 sessionCarouselBackward, 64 sessionLeftCount = 0, 65 sessionItemWidth = 379, 66 sessionCurrentFirst = 0, 67 sessions = document.querySelectorAll(".event-sessions .mag-slider"), 68 sessionDays = document.querySelectorAll(".multi-day-date"), 69 dayBoxes = document.querySelectorAll(".event-sessions-cont .home-magazine-carousel"); 70 Array.prototype.forEach.call(sessionDays, function (t) { 71 t.addEventListener("click", function () { 72 Array.prototype.forEach.call(sessionDays, function (e) { 73 e.classList.remove("active"); 74 }), 75 t.classList.add("active"); 76 var e = t.dataset.day; 77 Array.prototype.forEach.call(dayBoxes, function (e) { 78 e.classList.remove("active"); 79 }), 80 document.querySelector("#" + e).classList.add("active"), 81 sessionMove(document.querySelector("#" + e + " .mag-control
81s > .mag-right"), !0); 82 }); 83 }); 84 var sessionControls = document.querySelectorAll(".event-sessions .mag-controls > div"); 85 function sessionMove(e, t) { 86 console.log(t); 87 var s = e.parentElement.parentElement.id; 88 sessionContainer = document.querySelector("#" + s + " .mag-slider"); 89 var a = e.classList; 90 (sessionCarouselItems = sessionContainer.children), (sessionItemCount = sessionCarouselItems.length), (sessionTotalLength = sessionItemCount * sessionItemWidth), a.contains("mag-right") ? (sessionCarouselItems[sessionCurrentFirst].classList.remove("first-session-item"), sessionLeftCount == sessionTotalLength - sessionItemWidth ? (sessionCurrentFirst = sessionLeftCount = 0) : ((sessionLeftCount += sessionItemWidth), sessionCurrentFirst++), sessionCarouselItems[sessionCurrentFirst].classList.add("first-session-item")) : a.contains("mag-left") && (sessionCarouselItems[sessionCurrentFirst].classList.remove("first-session-item"), 0 == sessionLeftCount ? ((sessionLeftCount = sessionTotalLength - sessionItemWidth), (sessionCurrentFirst = sessionItemCount - 1)) : ((sessionLeftCount -= sessionItemWidth), sessionCurrentFirst--), sessionCarouselItems[currentFirst].classList.add("first-session-item")), t ? ((sessionCurrentFirst = sessionLeftCount = 0), (sessionContainer.style.marginLeft = "0px")) : (sessionContainer.style.marginLeft = -sessionLeftCount + "px"); 91 } 92 Array.prototype.forEach.call(sessionControls, function (e) { 93 e.addEventListener("click", function () { 94 sessionMove(e, !1); 95 }); 96 }); 97} catch (e) {} 98var hamburger = document.querySelector(".hamburger"), 99 hamImage = hamburger.querySelector("img"), 100 mobileMenu = document.querySelector(".main-navigation-mobile"), 101 menClasslist = mobileMenu.classList; 102hamburger.addEventListener("click", function () { 103 menClasslist.contains("active") ? (menClasslist.remove("active"), (hamImage.src = "/wp-content/themes/apex/images/button-hamburger.png")) : (menClasslist.add("active"), (hamImage.src = "/wp-content/themes/apex/images/button-close-mobile.png")); 104}); 105var searchBtn = document.querySelector(".top-menu-button-search"), 106 searchPopout = document.querySelector(".search-popout"), 107 searchClassList = searchPopout.classList; 108function showHideSearchPopout() { 109 searchClassList.contains("active") ? searchClassList.remove("active") : searchClassList.add("active"); 110} 111searchBtn.addEventListener("click", showHideSearchPopout); 112// searchPopout.querySelector("#searchsubmit").value = "Go"; 113var videoPlayButton = document.querySelectorAll(".wpvl_auto_thumb_play"); 114Array.prototype.forEach.call(videoPlayButton, function (e) { 115 e.innerHTML = '<div class="video-image"><svg xmlns="http://www.w3.org/2000/svg" id="prefix__icon_play_regular" width="50" height="50" data-name="icon play regular" viewBox="0 0 50 50">
115<path id="prefix__icon_play" d="M305 357.021l10-6.16-10-6.84zm26.035-16.73a25.075 25.075 0 1 0 1.965 9.73 24.927 24.927 0 0 0-1.965-9.73zM308 373.021a23 23 0 1 1 23-23 23.025 23.025 0 0 1-23 23z" data-name="icon play" transform="translate(-283 -325.021)" /></svg</div>'; 116}); 117var envelope = document.querySelectorAll(".at300b.at-follow-btn"); 118Array.prototype.forEach.call(envelope, function (e) { 119 e.innerHTML = '<span class="at-icon-wrapper" style="background-color: rgb(29, 34, 64); line-height: 32px; height: 32px; width: 32px; border-radius: 0%;"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="envelope" class="svg-inline--fa fa-envelope fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"></path></svg></span>'; 120}); 121var secondPar = document.querySelectorAll(".article-details-news .entry-content-left p:nth-of-type(2)"), 122 newAd = document.createElement("section"); 123newAd.classList.add("ad-cont-728-90", "centered", "ad-cont-article-content"), 124 newAd.setAttribute("id", "sas_94602"), 125 Array.prototype.forEach.call(secondPar, function (e) { 126 e.parentNode.insertBefore(newAd, e.nextSibling); 127 }); 128var secondParMag = document.querySelectorAll(".article-details-mag .entry-content-left p:nth-of-type(2)"), 129 newAdMag = document.createElement("section"); 130newAdMag.classList.add("ad-cont-728-90", "centered", "ad-cont-mag-article-c"), 131 newAdMag.setAttribute("id", "sas_94601"), 132 Array.prototype.forEach.call(secondParMag, function (e) { 133 e.parentNode.insertBefore(newAdMag, e.nextSibling); 134 }); 135var fifthParMag = document.querySelectorAll(".article-details-mag .entry-content-left p:nth-of-type(5)"), 136 newAdMagFifth = document.createElement("section"); 137newAdMagFifth.classList.add("ad-cont-728-90", "centered", "ad-cont-mag-article-d"), 138 newAdMagFifth.setAttribute("id", "sas_94602"), 139 Array.prototype.forEach.call(fifthParMag, function (e) { 140 e.parentNode.insertBefore(newAdMagFifth, e.nextSibling); 141 }); 142var homeHeroItems = document.querySelectorAll(".home-hero-item, .news-featured-prime-item, .news-featured-item"); 143Array.prototype.forEach.call(homeHeroItems, function (e) { 144 e.classList.contains("video-container") || 145 e.addEventListener("click", function () { 146 window.location.href = e.dataset.url; 147 }); 148}); 149var timeSlotItem, 150 activeTrack, 151 trackTabs = document.querySelectorAll(".expo-track-tab"), 152 trackList = document.querySelector(".expo-track-list"), 153 timeSlotItems = document.querySelectorAll(".timeslot-item"); 154trackTabs.forEach(function (e) { 155 e.addEventListener("click", function () { 156 trackTabs.forEach(function (e) { 157 e.classList.remove("active"); 158 }), 159 e.classList.add("active"), 160 (activeTrack = e.textContent.replace(/\s/g, "")), 161 timeSlotItems.forEach(function (e) { 162 e.classList.remove("active"); 163 }), 164 (timeSlotItem = document.querySelectorAll("." + activeTrack)).forEach(function (e) { 165 e.classList.add("active"); 166 }); 167 }); 168}); 169var expoDayTabs = document.querySelectorAll(".expo-day-tab"), 170 expoCharts = document.querySelectorAll(".expo-chart"); 171function swapDays(e) { 172 var s = e; 173 expoCharts.forEach(function (e) { 174 e.classList.remove("active"); 175 var t = e.dataset.day; 176 s == t && e.classList.add("active"), trackList.classList.remove("active"), "day-1" == s && trackList.classList.add("active"); 177 }); 178} 179expoDayTabs.forEach(function (e) { 180 e.addEventListener("click", function () { 181 expoDayTabs.forEach(function (e) { 182 e.classList.remove("active"); 183 }), 184 e.classList.add("active"), 185 swapDays(e.id); 186 }); 187});
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.