PageSourceSearch

https://ruffinosparkling.it/cdn/shop/t/76/assets/consentapi.js?v=42289142548085081761762342396

js ruffinosparkling.it collected 2026-09-27 06:38:11 UTC 2,859 bytes, 1 lines download raw bytes

1function waitForOneTrust(){hasOneTrustLoaded();let e=0,o=setInterval(function(){(hasOneTrustLoaded()||100<e)&&clearInterval(o),e++},100)}function hasOneTrustLoaded(){return"string"==typeof window.OnetrustActiveGroups&&(optanonWrapper(),window.OptanonWrapper=optanonWrapper,!0)}function sendConsent(e){console.log(e),window.Shopify.customerPrivacy.setTrackingConsent(e,()=>{console.log("Shopify Consent Captured"),document.querySelectorAll(".save-preference-btn-handler.onetrust-close-btn-handler, #onetrust-accept-btn-handler, #onetrust-reject-all-handler, #accept-recommended-btn-handler").forEach(e=>{e.addEventListener("click",function(){window.location.reload()})})})}function youtubeConsent(e){for(var o=document.getElementsByClassName("consent-iframe1");0<o.length;)o[0].parentNode.removeChild(o[0]);for(var n=document.getElementsByClassName("consent-video-btn");0<n.length;)n[0].remove();var t=document.getElementsByClassName("consent-thumb");for(let e=0;e<t.length;e++)t[e].style.display="block"}function optanonWrapper(){performanceConsent=!!window.OnetrustActiveGroups.includes("C0002"),functionalConsent=!!window.OnetrustActiveGroups.includes("C0003"),targetingConsent=!!window.OnetrustActiveGroups.includes("C0004");let o={analytics:performanceConsent,marketing:targetingConsent,preferences:functionalConsent,sale_of_data:!1};if(window.Shopify.loadFeatures([{name:"consent-tracking-api",version:"0.1"}],e=>{if(e)throw e;sendConsent(o),0==o.analytics&&(purgeShopifyCookie("_shopify_sa_p"),purgeShopifyCookie("_shopify_sa_t"),purgeShopifyCookie("_shopify_s"),purgeShopifyCookie("_shopify_y"),purgeShopifyCookie("_y"))}),!(window.OnetrustActiveGroups.includes("C0002")&&window.OnetrustActiveGroups.includes("C0003")&&window.OnetrustActiveGroups.includes("C0004")&&window.OnetrustActiveGroups.includes("C0005")))for(var e=document.getElementsByTagName("iframe"),n=0;n<e.length;n++){var t=e[n].getAttribute("data-src");t&&t.includes("www.youtube.com")&&youtubeConsent(e[n])}}function purgeShopifyCookie(e){document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;",document.cookie=e+"=; path=/; domain="+window.location.hostname+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"}function checkGeolocationAndShowCookieList(){setTimeout(function(){var e=OneTrust.getGeolocationData(),o=window.location.pathname,o=o.substring(o.lastIndexOf("/")+1);["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","GB","CH"].includes(e.country)?"cookie-list"==o&&$("#ot-sdk-cookie-policy").show():("cookie-list"==o&&($("#ot-sdk-cookie-policy").hide(),window.location.href="/"),$(".cookie-list").hide())},500)}(()=>{var o=document.getElementsByClassName("consent-thumb");for(let e=0;e<o.length;e++)o[e].style.display="none";waitForOneTrust()})(),checkGeolocationAndShowCookieList();

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.