PageSourceSearch

https://www.hadeland.com/cdn/shop/t/5/assets/popup-trigg.js?v=122822512795016930391780481541

js hadeland.com collected 2026-10-02 16:43:30 UTC 2,685 bytes, 2 lines download raw bytes

1(function(){function PopupTrigg(el){this.el=el,this.id=el.dataset.id,this.overlay=document.querySelector('.popup-trigg__overlay[data-id="'+this.id+'"]'),this.trigger=el.dataset.trigger||"delay",this.delay=parseInt(el.dataset.delay,10)||0,this.manualSelector=el.dataset.manualSelector||"",this.limitDisplay=parseInt(el.dataset.limitDisplay,10)||0,this.limitCacheDays=parseInt(el.dataset.limitCache,10)||30,this.overlayClose=el.dataset.overlayClose==="true",this.escClose=el.dataset.escClose==="true",this.scrollLock=el.dataset.scrollLock==="true",this.storageKey="popup-trigg:"+this.id,this.init()}PopupTrigg.prototype.init=function(){var self=this,closeBtn=this.el.querySelector(".popup-trigg__close");if(closeBtn&&closeBtn.addEventListener("click",function(){self.close()}),this.overlay&&this.overlayClose&&this.overlay.addEventListener("click",function(){self.close()}),this.escClose&&document.addEventListener("keydown",function(e){e.key==="Escape"&&self.el.classList.contains("is-open")&&self.close()}),this.trigger==="manual"&&this.manualSelector){var triggers=document.querySelectorAll(this.manualSelector);triggers.forEach(function(t){t.addEventListener("click",function(e){e.preventDefault(),self.open(!0)})})}else{if(!this.shouldShow())return;setTimeout(function(){self.open()},self.delay*1e3)}},PopupTrigg.prototype.shouldShow=function(){if(this.limitDisplay<=0)return!0;try{var raw=localStorage.getItem(this.storageKey);if(!raw)return!0;var data=JSON.parse(raw),now=Date.now();return data.expires&&data.expires<now?(localStorage.removeItem(this.storageKey),!0):(data.count||0)<this.limitDisplay}catch(e){return!0}},PopupTrigg.prototype.recordDisplay=function(){if(!(this.limitDisplay<=0))try{var raw=localStorage.getItem(this.storageKey),data=raw?JSON.parse(raw):{count:0};data.count=(data.count||0)+1,data.expires=Date.now()+this.limitCacheDays*864e5,localStorage.setItem(this.storageKey,JSON.stringify(data))}catch(e){}},PopupTrigg.prototype.open=function(bypassLimit){!bypassLimit&&!this.shouldShow()||(this.el.classList.add("is-open"),this.overlay&&this.overlay.classList.add("is-open"),this.scrollLock&&document.body.classList.add("popup-trigg-open"),this.recordDisplay())},PopupTrigg.prototype.close=function(){this.el.classList.remove("is-open"),this.overlay&&this.overlay.classList.remove("is-open"),document.body.classList.remove("popup-trigg-open")};function init(){var popups=document.querySelectorAll(".popup-trigg[data-id]");popups.forEach(function(p){new PopupTrigg(p)})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",init):init()})();
2//# sourceMappingURL=/cdn/shop/t/5/assets/popup-trigg.js.map?v=122822512795016930391780481541

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.