### Partytown Initialization and Configuration Source: https://www.orma.digital/golazzurri/ Initializes Partytown to run third-party scripts in a web worker. It configures the library, forwards specific events, and handles script loading. This setup is crucial for sandboxing and improving website performance by offloading scripts. ```javascript !(function(w,p,f,c){if(!window.crossOriginIsolated && !navigator.serviceWorker) return;c=w[p]=Object.assign(w[p]||{},{"lib":"/~partytown/","mainWindowAccessors":["scrollX","scrollY"],"resolveUrl":"(url) => {\n const publicPath = new URL('./public', import.meta.url).pathname;\n if (url.startsWith(publicPath)) {\n return url.replace(publicPath, '');\n }\n return url;\n }","debug":false});c[f]=(c[f]||[]).concat(["dataLayer.push"])}),(window,'partytown','forward'); /* Partytown 0.10.2 - MIT builder.io */ const t={preserveBehavior:!1}, e=e=>{if("string"==typeof e)return[e,t];const[n,r=t]=e;return[n,{...t,...r}]}, n=Object.freeze((t=>{const e=new Set;let n=[];do{Object.getOwnPropertyNames(n).forEach((t=>{"function"==typeof n[t]&&e.add(t)}))}while((n=Object.getPrototypeOf(n))!==Object.prototype);return Array.from(e)})());!function(t,r,o,i,a,s,c,d,l,p,u=t,f){function h(){f||(f=1,"/"==(c=(s.lib||"/~partytown/")+(s.debug?"debug/":""))[0]&&(l=r.querySelectorAll('script[type="text/partytown"]'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(v,1e4),r.addEventListener("pt0",w),a?y(1):o.serviceWorker?o.serviceWorker.register(c+(s.swPath||"partytown-sw.js"),{scope:c}).then((function(t){t.active?y():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&y()}))}),console.error):v())))}function y(e){p=r.createElement(e?"script":"iframe"),t._pttab=Date.now(),e||(p.style.display="block",p.style.width="0",p.style.height="0",p.style.border="0",p.style.visibility="hidden",p.setAttribute("aria-hidden",!0)),p.src=c+"partytown-"+(e?"atomics.js?v=0.10.2":"sandbox-sw.html?"+t._pttab),r.querySelector(s.sandboxParent||"body").appendChild(p)}function v(n,o){for(w(),i==t&&(s.forward||\[\]).map((function(n){const[r]=e(n);delete t[r.split(".")[0]]})),n=0;n{let e=null;if(i){const{methodOrProperty:n,thisObject:r}=((t,e)=>{let n=t;for(let t=0;t0?n[e[e.length-1]]:void 0}})(t,o);"function"==typeof n&&(e=(...t)=>n.apply(r,...t))}return function(){let n;return e&&(n=e(arguments)),(t._ptf=t._ptf||\[\]).push(o,arguments),n}})()}))})),"complete"==r.readyState?h():(t.addEventListener("DOMContentLoaded",h),t.addEventListener("load",h))}(window,document,navigator,top,window.crossOriginIsolated); ``` -------------------------------- ### Partytown Configuration and Initialization Source: https://www.orma.digital/ufficiostampa/ This configuration sets up Partytown, a library for running third-party scripts in a web worker to improve main thread performance. It defines library paths, accessors, and forward events, and includes logic for service worker registration or sandbox creation. ```javascript !(function(w,p,f,c){if(!window.crossOriginIsolated && !navigator.serviceWorker) return;c=w[p]=Object.assign(w[p]||{},{"lib":"/~partytown/","mainWindowAccessors":["scrollX","scrollY"],"resolveUrl":"(url) => {\n const publicPath = new URL('./public', import.meta.url).pathname;\n if (url.startsWith(publicPath)) {\n return url.replace(publicPath, '');\n }\n return url;\n }","debug":false});c[f]=(c[f]||[]).concat(["dataLayer.push"])})(window,'partytown','forward');/\* Partytown 0.10.2 - MIT builder.io \*\/ const t={preserveBehavior:!1},e=e=>{if("string"==typeof e)return[e,t];const[n,r=t]=e;return[n,{...t,...r}]};n=Object.freeze((t=>{const e=new Set;let n=[];do{Object.getOwnPropertyNames(n).forEach((t=>{"function"==typeof n[t]&&e.add(t)}))}while((n=Object.getPrototypeOf(n))!==Object.prototype);return Array.from(e)})());!function(t,r,o,i,a,s,c,d,l,p,u=t,f){function h(){f||(f=1,"/"==(c=(s.lib||"/~partytown/")+(s.debug?"debug/":""))[0]&&(l=r.querySelectorAll('script[type="text/partytown"]'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(v,1e4),r.addEventListener("pt0",w),a?y(1):o.serviceWorker?o.serviceWorker.register(c+(s.swPath||"partytown-sw.js"),{scope:c}).then((function(t){t.active?y():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&y()}))}),console.error):v())))}function y(e){p=r.createElement(e?"script":"iframe"),t._pttab=Date.now(),e||(p.style.display="block",p.style.width="0",p.style.height="0",p.style.border="0",p.style.visibility="hidden",p.setAttribute("aria-hidden",!0)),p.src=c+"partytown-"+(e?"atomics.js?v=0.10.2":"sandbox-sw.html?"+t._pttab),r.querySelector(s.sandboxParent||"body").appendChild(p)}function v(n,o){for(w(),i==t&&(s.forward||[]).map((function(n){const[r]=e(n);delete t[r.split(".")[0]]})),n=0;n { await (await t())(); }; (self.Astro || (self.Astro = {})).load = e; window.dispatchEvent(new Event("astro:load")); })(); ;(()=>{var v = Object.defineProperty; var A = (c, s, a) => s in c ? v(c, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : c[s] = a; var d = (c, s, a) => (A(c, typeof s != "symbol" ? s + "" : s, a), a); var u; { let c = { 0: t => m(t), 1: t => a(t), 2: t => new RegExp(t), 3: t => new Date(t), 4: t => new Map(a(t)), 5: t => new Set(a(t)), 6: t => BigInt(t), 7: t => new URL(t), 8: t => new Uint8Array(t), 9: t => new Uint16Array(t), 10: t => new Uint32Array(t) }, s = t => { let [e, n] = t; return e in c ? c[e](n) : void 0 }, a = t => t.map(s), m = t => typeof t != "object" || t === null ? t : Object.fromEntries(Object.entries(t).map(([e, n]) => [e, s(n)])); customElements.get("astro-island") || customElements.define("astro-island", (u = class extends HTMLElement { constructor() { super(...arguments); d(this, "Component"); d(this, "hydrator"); d(this, "hydrate", async () => { var f; if (!this.hydrator || !this.isConnected) return; let e = (f = this.parentElement) == null ? void 0 : f.closest("astro-island[ssr]"); if (e) { e.addEventListener("astro:hydrate", this.hydrate, { once: !0 }); return } let n = this.querySelectorAll("astro-slot"), r = {}, l = this.querySelectorAll("template[data-astro-template]"); for (let o of l) { let i = o.closest(this.tagName); i != null && i.isSameNode(this) && (r[o.getAttribute("data-astro-template") || "default"] = o.innerHTML, o.remove()); } for (let o of n) { let i = o.closest(this.tagName); i != null && i.isSameNode(this) && (r[o.getAttribute("name") || "default"] = o.innerHTML); } let h; try { h = this.hasAttribute("props") ? m(JSON.parse(this.getAttribute("props"))) : {} } catch (o) { let i = this.getAttribute("component-url") || "", b = this.getAttribute("component-export"); b && (i += ` (export ${b}`), console.error(`[hydrate] Error parsing props for component ${i}`, this.getAttribute("props"), o), o } let p; await this.hydrator(this)(this.Component, h, r, { client: this.getAttribute("client") }); this.removeAttribute("ssr"); this.dispatchEvent(new CustomEvent("astro:hydrate")); }); d(this, "unmount", () => { this.isConnected || this.dispatchEvent(new CustomEvent("astro:unmount")); }); } disconnectedCallback() { document.removeEventListener("astro:after-swap", this.unmount), document.addEventListener("astro:after-swap", this.unmount, { once: !0 }); } connectedCallback() { if (!this.hasAttribute("await-children") || document.readyState === "interactive" || document.readyState === "complete") this.childrenConnectedCallback(); else { let e = () => { document.removeEventListener("DOMContentLoaded", e), n.disconnect(), this.childrenConnectedCallback(); }, n = new MutationObserver(() => { var r; ((r = this.lastChild) == null ? void 0 : r.nodeType) === Node.COMMENT_NODE && this.lastChild.nodeValue === "astro:end" && (this.lastChild.remove(), e()); }); n.observe(this, { childList: !0 }), document.addEventListener("DOMContentLoaded", e); } } async childrenConnectedCallback() { let e = this.getAttribute("before-hydration-url"); e && await import(e), this.start(); } async start() { let e = JSON.parse(this.getAttribute("opts")), n = this.getAttribute("client"); if (Astro[n] === void 0) { window.addEventListener(`astro:${n}`, () => this.start(), { once: !0 }); return; } try { await Astro[n](async () => { let r = this.getAttribute("renderer-url"), [l, { default: h }] = await Promise.all([import(this.getAttribute("component-url")), r ? import(r) : () => { }]); let p = this.getAttribute("component-export") || "default"; if (!p.includes(".")) this.Component = l[p]; else { this.Component = l; for (let y of p.split(".")) this.Component = this.Component[y]; } return this.hydrator = h, this.hydrate; }, e, this); } catch (r) { console.error(`[astro-island] Error hydrating ${this.getAttribute("component-url")}`, r); } } attributeChangedCallback() { this.hydrate(); } }), d(u, "observedAttributes", ["props"]), u)); })() ``` -------------------------------- ### Partytown Initialization and Configuration Source: https://www.orma.digital/termini-condizioni/ This script initializes Partytown, a library for running third-party scripts in a web worker to improve performance and security. It configures Partytown with a library path and forwards specific methods like 'dataLayer.push'. ```javascript !(function(w,p,f,c){if(!window.crossOriginIsolated && !navigator.serviceWorker) return;c=w[p]=Object.assign(w[p]||{},{"lib":"/~partytown/","mainWindowAccessors":["scrollX","scrollY"],"resolveUrl":"(url) => {\n const publicPath = new URL('./public', import.meta.url).pathname;\n if (url.startsWith(publicPath)) {\n return url.replace(publicPath, '');\n }\n return url;\n }","debug":false});c[f]=(c[f]||[]).concat(["dataLayer.push"])})(window,'partytown','forward'); /* Partytown 0.10.2 - MIT builder.io */ const t={preserveBehavior:!1}, e=e=>{if("string"==typeof e)return[e,t];const[n,r=t]=e;return[n,{...t,...r}]}, n=Object.freeze((t=>{const e=new Set;let n=[];do{Object.getOwnPropertyNames(n).forEach((t=>{"function"==typeof n[t]&&e.add(t)}))}while((n=Object.getPrototypeOf(n))!==Object.prototype);return Array.from(e)})());!function(t,r,o,i,a,s,c,d,l,p,u=t,f){function h(){f||(f=1,"/"==(c=(s.lib||"/~partytown/")+(s.debug?"debug/":""))[0]&&(l=r.querySelectorAll('script[type="text/partytown"]'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(v,1e4),r.addEventListener("pt0",w),a?y(1):o.serviceWorker?o.serviceWorker.register(c+(s.swPath||"partytown-sw.js"),{scope:c}).then((function(t){t.active?y():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&y()}))}),console.error):v())))}function y(e){p=r.createElement(e?"script":"iframe"),t._pttab=Date.now(),e||(p.style.display="block",p.style.width="0",p.style.height="0",p.style.border="0",p.style.visibility="hidden",p.setAttribute("aria-hidden",!0)),p.src=c+"partytown-" ``` -------------------------------- ### Facebook Pixel Initialization and PageView Tracking Source: https://www.orma.digital/ufficiostampa/ This code initializes the Facebook Pixel and tracks a 'PageView' event. It dynamically loads the Facebook events script and configures the pixel with a specific ID. The 'PageView' event is a standard track for user visits. ```javascript !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '757615983118727'); fbq("track", "PageView", {}, { debug: true }); console.log("Pixel di Facebook inizializzato"); ``` -------------------------------- ### Partytown Initialization and Configuration Source: https://www.orma.digital/about/ This snippet initializes and configures the Partytown library, which allows third-party scripts to run in a web worker. It handles script loading, forwarding events, and managing the sandbox environment for improved performance and security. ```javascript !(function(w,p,f,c){if(!window.crossOriginIsolated && !navigator.serviceWorker) return;c=w[p]=Object.assign(w[p]||{},{"lib":"/~partytown/","mainWindowAccessors":["scrollX","scrollY"],"resolveUrl":"(url) => {\n const publicPath = new URL('./public', import.meta.url).pathname;\n if (url.startsWith(publicPath)) {\n return url.replace(publicPath, '');\n }\n return url;\n }","debug":false});c[f]=(c[f]||[]).concat(["dataLayer.push"])})(window,'partytown','forward');/\n/* Partytown 0.10.2 - MIT builder.io \n*/ const t={preserveBehavior:!1},e=e=>{if("string"==typeof e)return[e,t];const[n,r=t]=e;return[n,{...t,...r}]},n=Object.freeze((t=>{const e=new Set;let n=[];do{Object.getOwnPropertyNames(n).forEach((t=>{"function"==typeof n[t]&&e.add(t)}))}while((n=Object.getPrototypeOf(n))!==Object.prototype);return Array.from(e)})());!function(t,r,o,i,a,s,c,d,l,p,u=t,f){function h(){f||(f=1,"/"==(c=(s.lib||"/~partytown/")+(s.debug?"debug/":""))[0]&&(l=r.querySelectorAll('script[type="text/partytown"]'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(v,1e4),r.addEventListener("pt0",w),a?y(1):o.serviceWorker?o.serviceWorker.register(c+(s.swPath||"partytown-sw.js"),{scope:c}).then((function(t){t.active?y():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&y()}))}),console.error):v())))}function y(e){p=r.createElement(e?"script":"iframe"),t._pttab=Date.now(),e||(p.style.display="block",p.style.width="0",p.style.height="0",p.style.border="0",p.style.visibility="hidden",p.setAttribute("aria-hidden",!0)),p.src=c+"partytown-"+(e?"atomics.js?v=0.10.2":"sandbox-sw.html?"+t._pttab),r.querySelector(s.sandboxParent||"body").appendChild(p)}function v(n,o){for(w(),i==t&&(s.forward||[]).map((function(n){const[r]=e(n);delete t[r.split(".")[0]]})),n=0;n{let e=null;if(i){const{methodOrProperty:n,thisObject:r}=((t,e)=>{let n=t;for(let t=0;t0?n[e[e.length-1]]:void 0}})(t,o);"function"==typeof n&&(e=(...t)=>n.apply(r,...t))}return function(){let n;return e&&(n=e(arguments)),(t._ptf=t._ptf||[]).push(o,arguments),n}})()}))})),"complete"==r.readyState?h():(t.addEventListener("DOMContentLoaded",h),t.addEventListener("load",h))}(window,document,navigator,top,window.crossOriginIsolated); ``` -------------------------------- ### Partytown Initialization and Configuration Source: https://www.orma.digital/digitalservice/ Initializes the Partytown library, which allows running scripts like Google Analytics or Facebook Pixel in a separate web worker. This configuration sets up the library path, enables mainWindow accessors, defines a URL resolver, and forwards 'dataLayer.push' events. ```javascript ;(function(w,p,f,c){if(!window.crossOriginIsolated && !navigator.serviceWorker) return;c=w[p]=Object.assign(w[p]||{},{"lib":"/~partytown/","mainWindowAccessors":["scrollX","scrollY"],"resolveUrl":"(url) => {\n const publicPath = new URL('./public', import.meta.url).pathname;\n if (url.startsWith(publicPath)) {\n return url.replace(publicPath, '');\n }\n return url;\n }","debug":false});c[f]=(c[f]||[]).concat(["dataLayer.push"])})(window,'partytown','forward');/* Partytown 0.10.2 - MIT builder.io */ const t={preserveBehavior:!1},e=e=>{if("string"==typeof e)return[e,t];const[n,r=t]=e;return[n,{...t,...r}]},n=Object.freeze((t=>{const e=new Set;let n=[];do{Object.getOwnPropertyNames(n).forEach((t=>{"function"==typeof n[t]&&e.add(t)}))}while((n=Object.getPrototypeOf(n))!==Object.prototype);return Array.from(e)})());!function(t,r,o,i,a,s,c,d,l,p,u=t,f){function h(){f||(f=1,"/"==(c=(s.lib||"/~partytown/")+(s.debug?"debug/":""))[0]&&(l=r.querySelectorAll('script[type="text/partytown"]'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(v,1e4),r.addEventListener("pt0",w),a?y(1):o.serviceWorker?o.serviceWorker.register(c+(s.swPath||"partytown-sw.js"),{scope:c}).then((function(t){t.active?y():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&y()}))}),console.error):v())))}function y(e){p=r.createElement(e?"script":"iframe"),t._pttab=Date.now(),e||(p.style.display="block",p.style.width="0",p.style.height="0",p.style.border="0",p.style.visibility="hidden",p.setAttribute("aria-hidden",!0)),p.src=c+"partytown-"+(e?"atomics.js?v=0.10.2":"sandbox-sw.html?"+t._pttab),r.querySelector(s.sandboxParent||"body").appendChild(p)}function v(n,o){for(w(),i==t&&(s.forward||[]).map((function(n){const[r]=e(n);delete t[r.split(".")[0]]})),n=0;n{let e=null;if(i){const{methodOrProperty:n,thisObject:r}=((t,e)=>{let n=t;for(let t=0;t0?n[e[e.length-1]]:void 0}})(t,o);"function"==typeof n&&(e=(...t)=>n.apply(r,...t))}return function(){let n;return e&&(n=e(arguments)),(t._ptf=t._ptf||[]).push(o,arguments),n}})()}))})),"complete"==r.readyState?h():(t.addEventListener("DOMContentLoaded",h),t.addEventListener("load",h))}(window,document,navigator,top,window.crossOriginIsolated); ``` -------------------------------- ### Schema.org Organization Markup Source: https://www.orma.digital/ufficiostampa/ This JSON-LD block provides structured data for the organization 'Orma Strategie Digitali' according to schema.org. It includes details like name, description, URL, social media links, address, and contact information, which helps search engines understand the entity. ```json {"@context":"https://schema.org","@type":"Organization","name":"Orma Strategie Digitali","description":"Agenzia di marketing digitale e sviluppo web specializzata in soluzioni digitali innovative e personalizzate","url":"https://www.orma.digital","logo":"https://www.orma.digital/Logo.svg","sameAs":["https://www.linkedin.com/company/ormadigital","https://www.instagram.com/orma.digital"],"address":{"@type":"PostalAddress","streetAddress":"Via di Pietralata 571","addressLocality":"Roma","addressCountry":"IT","postalCode":"00158"},"contactPoint":{"@type":"ContactPoint","email":"info@orma.digital","contactType":"customer service"},"founder":{"@type":"Person","name":"Gian Lorenzo Comandini","jobTitle":"Fondatore"}} ``` -------------------------------- ### Partytown Initialization and Configuration Source: https://www.orma.digital/optimization-llms-generator/ Configures and initializes Partytown, a library for running third-party scripts in a web worker. It sets up library paths, accessors, and forwards specific events. ```javascript !(function(w,p,f,c){if(!window.crossOriginIsolated && !navigator.serviceWorker) return;c=w[p]=Object.assign(w[p]||{},{"lib":"/~partytown/","mainWindowAccessors":["scrollX","scrollY"],"resolveUrl":"(url) => {\n const publicPath = new URL('./public', import.meta.url).pathname;\n if (url.startsWith(publicPath)) {\n return url.replace(publicPath, '');\n }\n return url;\n }","debug":false});c[f]=(c[f]||[]).concat(["dataLayer.push"])})(window,'partytown','forward'); /* Partytown 0.10.2 - MIT builder.io */ const t={preserveBehavior:!1}, e=e=>{if("string"==typeof e)return[e,t];const[n,r=t]=e;return[n,{...t,...r}]}, n=Object.freeze((t=>{const e=new Set;let n=[];do{Object.getOwnPropertyNames(n).forEach((t=>{"function"==typeof n[t]&&e.add(t)}))}while((n=Object.getPrototypeOf(n))!==Object.prototype);return Array.from(e)})());!function(t,r,o,i,a,s,c,d,l,p,u=t,f){function h(){f||(f=1,"/"==(c=(s.lib||"/~partytown/")+(s.debug?"debug/":""))[0]&&(l=r.querySelectorAll('script[type="text/partytown"]'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(v,1e4),r.addEventListener("pt0",w),a?y(1):o.serviceWorker?o.serviceWorker.register(c+(s.swPath||"partytown-sw.js"),{scope:c}).then((function(t){t.active?y():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&y()}))}),console.error):v())))}function y(e){p=r.createElement(e?"script":"iframe"),t._pttab=Date.now(),e||(p.style.display="block",p.style.width="0",p.style.height="0",p.style.border="0",p.style.visibility="hidden",p.setAttribute("aria-hidden",!0)),p.src=c+"partytown-"+(e?"atomics.js?v=0.10.2":"sandbox-sw.html?"+t._pttab),r.querySelector(s.sandboxParent||"body").appendChild(p)}function v(n,o){for(w(),i==t&&(s.forward||[]).map((function(n){const[r]=e(n);delete t[r.split(".")[0]]})),n=0;n {\n const publicPath = new URL('./public', import.meta.url).pathname;\n if (url.startsWith(publicPath)) {\n return url.replace(publicPath, '');\n }\n return url;\n }","debug":false});c[f]=(c[f]||[]).concat(["dataLayer.push"])} )(window,'partytown','forward'); /* Partytown 0.10.2 - MIT builder.io */ const t={preserveBehavior:!1}, e=e=>{if("string"==typeof e)return[e,t];const[n,r=t]=e;return[n,{...t,...r}]}, n=Object.freeze((t=>{const e=new Set;let n=[];do{Object.getOwnPropertyNames(n).forEach((t=>{"function"==typeof n[t]&&e.add(t)}))}while((n=Object.getPrototypeOf(n))!==Object.prototype);return Array.from(e)})());!function(t,r,o,i,a,s,c,d,l,p,u=t,f){function h(){f||(f=1,"/"==(c=(s.lib||"/~partytown/")+(s.debug?"debug/":""))[0]&&(l=r.querySelectorAll('script[type="text/partytown"]'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(v,1e4),r.addEventListener("pt0",w),a?y(1):o.serviceWorker?o.serviceWorker.register(c+(s.swPath||"partytown-sw.js"),{scope:c}).then((function(t){t.active?y():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&y()}))}),console.error):v())))}function y(e){p=r.createElement(e?"script":"iframe"),t._pttab=Date.now(),e||(p.style.display="block",p.style.width="0",p.style.height="0",p.style.border="0",p.style.visibility="hidden",p.setAttribute("aria-hidden",!0)),p.src=c+"partytown-"+(e?"atomics.js?v=0.10.2":"sandbox-sw.html?"+t._pttab),r.querySelector(s.sandboxParent||"body").appendChild(p)}function v(n,o){for(w(),i==t&&(s.forward||[]).map((function(n){const[r]=e(n);delete t[r.split(".")[0]]})),n=0;n0&&"object"==typeof n[0]&&(e=n[0]),o=0;o0&&"object"==typeof n[0]?n[1]:null) }} function c(n){var o=t.document,e=o.createElement("iframe"); return e.style.width="0",e.style.height="0",e.style.border="0",e.style.visibility="hidden",e.setAttribute("aria-hidden",!0),e.src=n, e} function d(){clearTimeout(d)} var s=t.partytown||{},i=t,l=[],p=null; if(s.debug||(l.push(c(s.sandbox||"/~partytown/index.html")),p=l[0]),s.forward||[]).map((function(n){const[o,{preserveBehavior:i}]=e(n); var r=t,a=o.split(".");for(var u=0;u{let n=t;for(let t=0;t0?n[e[e.length-1]]:void 0}})(t,o); "function"==typeof n&&(e=(...t)=>n.apply(e,...t))} return function(){let n;return e&&(n=e(arguments)),(t._ptf=t._ptf||[]).push(o,arguments),n}})()})) "complete"==o.readyState?h():(t.addEventListener("DOMContentLoaded",h),t.addEventListener("load",h))}(window,document,navigator,top,window.crossOriginIsolated); ``` -------------------------------- ### UI Styling and Responsiveness (Astro) Source: https://www.orma.digital/golazzurri/ This CSS block contains styles likely generated by a framework like Astro, indicated by `data-astro-cid` attributes. It includes rules for dropdown menus, hover effects, responsive grids, image sliders, and transitions, targeting various UI components. ```css .dropdown-trigger[data-astro-cid-jp2pq5zm]:hover .dropdown-menu[data-astro-cid-jp2pq5zm]{display:block}.group[data-astro-cid-jp2pq5zm]:hover .group-hover\:rotate-180[data-astro-cid-jp2pq5zm]{transform:rotate(180deg)}.dropdown-trigger[data-astro-cid-jp2pq5zm]:after{content:"";position:absolute;top:100%;left:0;right:0;height:20px}.mobile-dropdown-toggle[data-astro-cid-jp2pq5zm][aria-expanded=true] svg[data-astro-cid-jp2pq5zm]{transform:rotate(180deg)}.hamburger-icon[data-astro-cid-jp2pq5zm],.close-icon[data-astro-cid-jp2pq5zm]{transition:opacity .3s ease-in-out}.[data-astro-cid-jp2pq5zm][aria-expanded=true] .hamburger-icon[data-astro-cid-jp2pq5zm]{display:none}.[data-astro-cid-jp2pq5zm][aria-expanded=true] .close-icon[data-astro-cid-jp2pq5zm]{display:block}#navbar-default[data-astro-cid-jp2pq5zm]{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;transition:box-shadow .3s ease-in-out}#navbar-default[data-astro-cid-jp2pq5zm]:not(.hidden){box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d} @media (max-width: 768px){.aspect-square[data-astro-cid-gx5ugnmk]{aspect-ratio:1/1}}.mobile-scroll-grid[data-astro-cid-bp4bfslc]{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;padding:.5rem}@media (max-width: 768px){.mobile-scroll-grid[data-astro-cid-bp4bfslc]{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:1rem;padding:1rem;gap:1rem;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}.mobile-scroll-grid[data-astro-cid-bp4bfslc]::-webkit-scrollbar{display:none}.mobile-scroll-grid[data-astro-cid-bp4bfslc]>*:not(style){scroll-snap-align:start;flex:0 0 85%;max-width:85%;margin-right:2rem}} .image-slider[data-astro-cid-gto3gzpn]{position:relative;overflow:hidden}.testimonial-image[data-astro-cid-gto3gzpn]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;transform:scale(1.05);transition:opacity .5s ease-in-out,transform .5s ease-in-out;-o-object-fit:cover;object-fit:cover;pointer-events:none}.testimonial-image[data-astro-cid-gto3gzpn].active{opacity:1;transform:scale(1);pointer-events:auto}.process-item[data-astro-cid-gto3gzpn]{opacity:0;transform:translateY(20px);transition:opacity .5s ease-in-out,transform .5s ease-in-out;pointer-events:none;position:absolute;width:100%}.process-item[data-astro-cid-gto3gzpn].active{opacity:1;transform:translateY(0);pointer-events:auto;position:relative}.process-dot[data-astro-cid-gto3gzpn]{transition:all .3s ease;cursor:pointer}.process-dot[data-astro-cid-gto3gzpn]:hover{transform:scale(1.2)}@media (max-width: 768px){.image-slider[data-astro-cid-gto3gzpn]{aspect-ratio:16/9}}.mobile-scroll-grid[data-astro-cid-w2nnr23v]{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;padding:1rem} ``` -------------------------------- ### Partytown Initialization and Configuration Source: https://www.orma.digital/innovativa-digital-agency-roma/ This snippet initializes Partytown, a library for running third-party scripts in a web worker. It configures Partytown with a library path, defines accessors for the main window, and sets up forwarding for specific functions like `dataLayer.push`. ```javascript !(function(w,p,f,c){if(!window.crossOriginIsolated && !navigator.serviceWorker) return;c=w[p]=Object.assign(w[p]||{},{"lib":"/~partytown/","mainWindowAccessors":["scrollX","scrollY"],"resolveUrl":"(url) => {\n const publicPath = new URL('./public', import.meta.url).pathname;\n if (url.startsWith(publicPath)) {\n return url.replace(publicPath, '');\n }\n return url;\n }","debug":false});c[f]=(c[f]||[]).concat(["dataLayer.push"])})(window,'partytown','forward');/* Partytown 0.10.2 - MIT builder.io */ const t={preserveBehavior:!1},e=e=>{if("string"==typeof e)return[e,t];const[n,r=t]=e;return[n,{...t,...r}]};n=Object.freeze((t=>{const e=new Set;let n=[];do{Object.getOwnPropertyNames(n).forEach((t=>{"function"==typeof n[t]&&e.add(t)}))}while((n=Object.getPrototypeOf(n))!==Object.prototype);return Array.from(e)})());!function(t,r,o,i,a,s,c,d,l,p,u=t,f){function h(){f||(f=1,"/"==(c=(s.lib||"/~partytown/")+(s.debug?"debug/":""))[0]&&(l=r.querySelectorAll('script[type="text/partytown"]'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(v,1e4),r.addEventListener("pt0",w),a?y(1):o.serviceWorker?o.serviceWorker.register(c+(s.swPath||"partytown-sw.js"),{scope:c}).then((function(t){t.active?y():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&y()}))}),console.error):v())))}function y(e){p=r.createElement(e?"script":"iframe"),t._pttab=Date.now(),e||(p.style.display="block",p.style.width="0",p.style.height="0",p.style.border="0",p.style.visibility="hidden",p.setAttribute("aria-hidden",!0)),p.src=c+"partytown-"+(e?"atomics.js?v=0.10.2":"sandbox-sw.html?"+t._pttab),r.querySelector(s.sandboxParent||"bo" ```