\n \n \n\n\n\n\n","DOMAIN":"https://www.blackapex.org","NETLIFY_REDIRECTS":""}); let lazyIframes = [].slice.call(document.querySelectorAll("iframe")); let lazyVideos = [].slice.call(document.querySelectorAll("video.lazy")); function loadIframe(iframe) { if (iframe.attributes['data-src'] && iframe.attributes['data-src'].value && !iframe.src) { iframe.src = iframe.attributes['data-src'].value; iframe.attributes['data-src'].value = null; } } let urlParams = new URLSearchParams(window.location.search); if (urlParams.get("screenshot") === 'true' || !("IntersectionObserver" in window)) { lazyIframes.forEach(function (iframe) { loadIframe(iframe); }); } else if ("IntersectionObserver" in window) { let lazyIframeObserver = new IntersectionObserver(function (entries, observer) { entries.forEach(function (entry) { if (entry.isIntersecting) { let lazyIframe = entry.target; loadIframe(lazyIframe); lazyIframeObserver.unobserve(lazyIframe); } }); }); lazyIframes.forEach(function (lazyIframe) { lazyIframeObserver.observe(lazyIframe); }); let lazyVideoObserver = new IntersectionObserver(function(entries, observer) { entries.forEach(function(video) { if (video.isIntersecting) { for (var source in video.target.children) { let videoSource = video.target.children[source]; if (typeof videoSource.tagName === "string" && videoSource.tagName === "SOURCE") { videoSource.src = videoSource.dataset.src; } } video.target.load(); video.target.classList.remove("lazy"); if (video.target.autoplay){ video.target.play(); } lazyVideoObserver.unobserve(video.target); } }); }); lazyVideos.forEach(function(lazyVideo) { lazyVideoObserver.observe(lazyVideo); }); } else { // Possibly fall back to a more compatible method here } const loopVideos = [].slice.call(document.querySelectorAll('video[loop]')); loopVideos.map(videoEl => { videoEl.addEventListener('timeupdate', (event) => { if (event.target.duration - event.target.currentTime < 0.5) { event.target.load(); } }); }) } // lazy image loading END // custom mapped event trigger START window.triggerCustomEvent = function (callParameter, itemData) { window.dispatchEvent(new CustomEvent('actionCall', {detail: {callParameter: callParameter, itemData: itemData}})); } // custom mapped event trigger END