PageSourceSearch

https://www.elevatione.com/cdn/shop/t/113/assets/shine-trust-trust-badge.js?v=144350128103905680531731315582

js elevatione.com collected 2026-10-07 21:20:43 UTC 5,706 bytes, 1 lines download raw bytes

1!function(t){var e=[],n={};let o=setInterval((()=>{window.STBASE&&(window.STBASE.getShopURL()&&function(){if(console.info("[ST] loaded Trust badge"),window.STBASE.renderWrapper(),a(),setInterval((()=>{a()}),3e3),""!==window.STBASE.getTemplate())i();else{let t=setInterval((()=>{""!==window.STBASE.getTemplate()&&(i(),clearInterval(t))}),5)}!function(){const e=window.XMLHttpRequest.prototype.open;var n;window.XMLHttpRequest.prototype.open=function(){return this.addEventListener("load",(function(){if(["/cart/add","/cart/update","/cart/change","/cart/clear","/cart/add.js","/cart/update.js","/cart/change.js","/cart/clear.js"].includes(this._url)){let e=t.querySelectorAll(".trustBadgeWrapper");if(e.length)for(let t=0;t<e.length;t++)e[t].remove();i()}})),e.apply(this,arguments)},"function"==typeof(n=window.fetch)&&(window.fetch=function(){var e=n.apply(this,arguments);return e.then((function(e){["".concat(window.location.origin,"/cart/add"),"".concat(window.location.origin,"/cart/update"),"".concat(window.location.origin,"/cart/change"),"".concat(window.location.origin,"/cart/clear"),"".concat(window.location.origin,"/cart/add.js"),"".concat(window.location.origin,"/cart/update.js"),"".concat(window.location.origin,"/cart/change.js"),"".concat(window.location.origin,"/cart/clear.js")].includes(e.url)&&e.clone().json().then((function(){let e=t.querySelectorAll(".trustBadgeWrapper");if(e.length)for(let t=0;t<e.length;t++)e[t].remove();i()}))})),e})}()}(),clearInterval(o))}),5);function a(){const e=t.querySelectorAll(".shine-trust-badge:not(.shine-shown)");for(var n=0;n<e.length;n++){const t=e[n].getAttribute("data-id");t&&(i(e[n],t),e[n].classList.add("shine-shown"))}}function i(o="",a=""){let i=window.STBASE.getShopURL(),r=window.STBASE.getTemplate(),l=window.STBASE.apiUrl+"trust-badge";""!==a&&o?(l=l.concat("?shop=").concat(i),l=l.concat("&trustID=").concat(a)):(l=l.concat("?shop=").concat(i),l=l.concat("&template=").concat(r),"product"===r&&void 0!==typeof meta&&(l=l.concat("&productID=").concat(meta.product.gid))),fetch(l,{method:"GET",headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}}).then((t=>t.json())).then((async i=>{if(i.status){const c=i.data,s=i.css;c.length&&(await Promise.all(c.map((async(i,l)=>{let c=!0;if("collection"===r&&""===a&&"collection_page"===i.template&&void 0!==typeof meta){let t=meta.page.resourceId;void 0===t&&(t="all"),!i.collections.includes(t)&&i.collections.length>0&&(c=!1)}if(c){let r=t.createElement("div");r.setAttribute("data-id",i.id);let c="shine-badge-"+l+(a?"-"+a:"");r.classList.add(c),r.classList.add("trustBadgeWrapper"),i.editor.animation&&r.classList.add(i.editor.animation);const p=i.editor;let h="center";"left"===i.editor.alignment&&(h="start"),"right"===i.editor.alignment&&(h="end");let w=`.${c} .st-trust-badge-heading{display: block;text-align: ${i.heading.alignment};font-size: ${i.heading.size}px;color: ${i.heading.color};font-family: ${i.heading.font?.value}, sans-serif;line-height: 120%;} .${c}  .st-inner .st-images {display: flex; justify-content: ${h}; flex-wrap: wrap;} .${c} .st-inner .st-images img {width: ${p.size}px;}`;"color"!==p.style&&(w+=`.${c} .st-inner .st-images img {filter: gray;filter: grayscale(100%);-webkit-filter: grayscale(100%);}`),p.border.active&&(w+=`.${c} .st-inner .st-images img {border-radius: ${p.border.radius}px;border: 1px solid ${p.border.color}}`);let f=p.badgeSpacing;p.badgeSpacing?.active||(f={top:5,right:5,bottom:5,left:5});let u=p.arroundSpacing;p.arroundSpacing?.active||(u={top:20,right:0,bottom:20,left:0}),w+=`.${c} .st-inner .st-images img {margin-top: ${f.top}px;margin-right: ${f.right}px;margin-bottom: ${f.bottom}px;margin-left: ${f.left}px; object-fit: contain;}`,w+=`.${c} {padding-top: ${u.top}px;padding-right: ${u.right}px;padding-bottom: ${u.bottom}px;padding-left: ${u.left}px;}`,p.width&&(w+=`.${c} {max-width: ${p.width}%;}`);let m="";i.heading.show&&""!==i.heading.text&&(m='<div class="st-trust-badge-heading">'+window.STBASE.translate(i.heading.text)+"</div>");let S='<div class="st-inner">'+m+'<div class="st-images">',v={};if(await Promise.all(i.badges.map((async(t,e)=>{v[e]=await window.STBASE.getImageURL(t.url)}))),Object.keys(v).length&&Object.keys(v).map((t=>{S+='<img src="'+v[t]+'" alt="shine-trust-icon"/>'})),S+="</div></div>",r.innerHTML=S,""===a){let e=i.selector.element;if(""===e){let e=t.querySelectorAll(".st-render-wrapper");if(e.length)for(var s=0;s<e.length;s++){let t=r.cloneNode(!0);t.classList.add("st-order-"+s),e[s].appendChild(t)}}else{let o=t.querySelectorAll(e);const a=i.selector?.position?i.selector?.position:"below";if(o.length)for(s=0;s<o.length;s++){let t=r.cloneNode(!0);t.classList.add("st-order-"+s),"above"===a?o[s].parentNode.insertBefore(t,o[s]):o[s].parentNode.insertBefore(t,o[s].nextSibling)}else n[l]={selector:i.selector.element,position:a,html:r}}}else c+=" trustBadgeWrapper "+i.editor.animation,o.innerHTML='<div class="'+c+'">'+r.innerHTML+"</div>";var d=t.getElementsByTagName("head")[0],g=t.createElement("style");g.setAttribute("type","text/css"),g.appendChild(t.createTextNode(w)),d.appendChild(g),e.push({font:i.heading.font?.value,weight:i.heading?.fontWeight})}}))),""===a&&(l=setInterval((function(){Object.keys(n).length?Object.keys(n).map((e=>{let o=n[e];
1const a=t.querySelectorAll(o.selector),i=o.position;if(a.length){for(var r=0;r<a.length;r++)"above"===i?a[r].parentNode.insertBefore(o.html,a[r]):a[r].parentNode.insertBefore(o.html,a[r].nextSibling);delete n[e]}})):clearInterval(l)}),3e3))),s&&window.STBASE.addStyle(s),window.STBASE.loadFont(e,"custom-google-font")}else console.log(i.message);var l})).catch((t=>{console.error("Error:",t)}))}}(document);

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.