PageSourceSearch

https://go-aktiv.de/cdn/shop/t/35/assets/goaktiv-discount-bar.js?v=82860312609443099981790937316

js go-aktiv.de collected 2026-10-07 03:23:17 UTC 3,493 bytes, 2 lines download raw bytes

1(function(){"use strict";var EXCLUDED=[],TEXT="erfolgreich aktiviert",HINT="\u2013 wird im Warenkorb automatisch abgezogen",BG="#2BA9BE",FG="#002C4D",CHIP="#002C4D",AUTO_HIDE=5,KEY="ga_discount",store={get:function(k){try{return sessionStorage.getItem(k)||""}catch(e){return""}},set:function(k,v){try{sessionStorage.setItem(k,v)}catch(e){}}};function cookie(name){var m=document.cookie.match("(?:^|; )"+name+"=([^;]*)");try{return m?decodeURIComponent(m[1]):""}catch(e){return""}}var fromUrl=new URLSearchParams(location.search).get("discount")||"";fromUrl&&store.set(KEY,fromUrl);var code=(fromUrl||cookie("discount_code")||store.get(KEY)).trim().slice(0,64);if(!code)return;var upper=code.toUpperCase();if(EXCLUDED.indexOf(upper)!==-1||store.get(KEY+"_closed")===upper)return;function render(){if(!document.getElementById("ga-discount-bar")){var style=document.createElement("style");style.textContent="#ga-discount-bar{background:"+BG+";color:"+FG+";display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 44px;font-size:14px;font-weight:600;line-height:1.4;text-align:center;position:relative;z-index:10;overflow:hidden;animation:gaBar .3s ease;transition:height .3s ease,padding .3s ease,opacity .3s ease}#ga-discount-bar svg{width:16px;height:16px;flex:none}#ga-discount-bar code{font:inherit;font-weight:700;letter-spacing:.03em;background:"+CHIP+";color:#fff;padding:1px 7px;border-radius:3px;white-space:nowrap}#ga-discount-bar button{position:absolute;right:0;top:0;height:100%;width:44px;background:none;border:0;color:inherit;font-size:20px;line-height:1;cursor:pointer;opacity:.7}#ga-discount-bar button:hover{opacity:1}#ga-discount-bar i{font-style:normal;opacity:.85}@keyframes gaBar{from{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:none}}@media (max-width:749px){#ga-discount-bar i{display:none}}@media (prefers-reduced-motion:reduce){#ga-discount-bar{animation:none;transition:none}}",document.head.appendChild(style);var bar=document.createElement("div");bar.id="ga-discount-bar",bar.setAttribute("role","status"),bar.innerHTML='<svg viewBox="0 0 24 24" aria-hidden="true"><polygon fill="currentColor" points="9,20 2,13 5,10 9,14 19,4 22,7"/></svg><span>Code <code></code> '+TEXT+" <i>"+HINT+'</i></span><button type="button" aria-label="Hinweis schlie\xDFen">\xD7</button>',bar.querySelector("code").textContent=code,bar.querySelector("button").addEventListener("click",function(){bar.remove(),store.set(KEY+"_closed",upper)}),document.body.insertBefore(bar,document.body.firstChild),AUTO_HIDE>0&&setTimeout(function(){bar.style.height=bar.offsetHeight+"px",bar.offsetHeight,bar.style.height="0",bar.style.paddingTop=bar.style.paddingBottom="0",bar.style.opacity="0",setTimeout(function(){bar.remove()},350)},AUTO_HIDE*1e3)}}function start(){var hasItems=document.documentElement.classList.contains("cart-has-items")||/^\/cart(\/|$)/.test(location.pathname);if(!hasItems)return render();var root=window.Shopify&&Shopify.routes&&Shopify.routes.root||"/";fetch(root+"cart.js",{headers:{Accept:"application/json"}}).then(function(r){return r.json()}).then(function(cart){if(!cart.item_count)return render();var valid=(cart.discount_codes||[]).some(function(d){return d.applicable&&String(d.code).toUpperCase()===upper});valid&&render()}).catch(function(){})}document.body?start():document.addEventListener("DOMContentLoaded",start)})();
2//# sourceMappingURL=/cdn/shop/t/35/assets/goaktiv-discount-bar.js.map?v=82860312609443099981790937316

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.