PageSourceSearch

https://3dplatform.com/cdn/shop/t/3/assets/popup-info-subscribe.js?v=39809719672621783341751915517

js 3dplatform.com collected 2026-09-30 21:10:43 UTC 3,474 bytes, 2 lines download raw bytes

1const newsletterPopup={init(selector){this.modalClass=selector,this.newsletter=document.querySelector(this.modalClass),this.modalEffect=this.newsletter.getAttribute("data-effect")||"material-out",this.errorClass="newslettermodal-error",this.successClass="newslettermodal-off",this.errorPopup="#popupSubscribeError",this.successPopup="#popupSubscribeSuccess",this.offCheckbox=document.body.querySelector("#offNewsletterCheckbox"),this.scrollbarNewsletter,this.expiresToSec=parseInt(this.newsletter.getAttribute("data-expires"),10)*86400;const uri=window.location.toString();if(this.newsletter.getAttribute("data-only-index")=="true"&&!document.body.classList.contains("template-index"))return!1;uri.indexOf("?customer_posted=true")>0?this.setCookie():this.checkCookie(),this.checkBoxOff()},checkBoxOff(){this.offCheckbox?.addEventListener("change",()=>{this.offCheckbox.checked?this.setCookie():docCookies.removeItem("lumiaNewsLetter")})},openError(){jq.fancybox.open({src:this.errorPopup,type:"inline",afterClose:()=>{let top=document.querySelector(".page-footer")?document.querySelector(".page-footer").offsetTop:document.body.scrollHeight;top&&smoothScrollTo(top,1e3),history.replaceState&&history.replaceState(null,"",location.pathname+location.search.replace(/[\?&][^&]+/,"").replace(/^&/,"?"))}})},openSuccess(){jq.fancybox.open({src:this.successPopup,type:"inline",afterClose:()=>{window.location.toString().indexOf("?customer_posted=true")>0&&history.replaceState&&history.replaceState(null,"",location.pathname+location.search.replace(/[\?&]customer_posted=[^&]+/,"").replace(/^&/,"?"))}})}
1,setCookie(){this.expiresToSec!=0&&docCookies.setItem("lumiaNewsLetter","",this.expiresToSec)},setCookieSuccess(days){days&&docCookies.setItem("lumiaNewsLetterSuccess","",parseInt(days,10)*86400)},checkCookie(){(!docCookies.hasItem("lumiaNewsLetter")||document.body.classList.contains("demo")||this.expiresToSec==0)&&this.openNewsletterPopup()},openNewsletterPopup(){const pause=this.newsletter.getAttribute("data-pause")>0?this.newsletter.getAttribute("data-pause"):2e3,openPopup=()=>{jq.fancybox.open([{src:this.modalClass,type:"inline",animationEffect:this.modalEffect,animationDuration:300,keys:{close:[27]}}],{beforeShow:()=>{document.querySelectorAll("main-slider").forEach(slider=>slider.stopAutoplay())},afterShow:()=>{scrollbarNewsletter=Scrollbar.init(this.newsletter.querySelector(".js-dropdn-content-scroll"),{alwaysShowTracks:!0,damping:document.body.dataset.damping});const searchInput=document.querySelector("search-toggle-mobile");searchInput&&"blurInput"in searchInput&&searchInput.blurInput(),this.newsletter.classList.add("is-animate"),bodyScrollLock.disableBodyScroll(this.newsletter)},beforeClose:()=>{bodyScrollLock.enableBodyScroll(this.newsletter),this.newsletter.classList.remove("is-animate")},afterClose:()=>{this.scrollbarNewsletter&&this.scrollbarNewsletter.setPosition(0,0),document.querySelectorAll("main-slider").forEach(sli
1der=>slider.startAutoplay())}})};setTimeout(()=>{const interval=setInterval(function(){document.body.classList.contains("fancybox-active")||(clearInterval(interval),openPopup())},500)},pause),setTimeout(()=>{document.body.classList.contains("newslettermodal-off")&&this.setCookie()},pause*2)}},newsmodalSelector=".js-newslettermodal";document.querySelector(newsmodalSelector)&&newsletterPopup.init(newsmodalSelector);
2//# sourceMappingURL=/cdn/shop/t/3/assets/popup-info-subscribe.js.map?v=39809719672621783341751915517

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.