<div data-popup data-popup--id="popup" data-popup--expiration="604800" data-popup--delay="20" data-popup--dismiss="60" class="c-popup o-wrapper o-bg-base u-py-base u-px-xxsmall u-fixed u-bottom u-z-upside">
<div class="c-popup__container u-relative o-container u-break-word">
<input type="checkbox" id="open-pop-up" class="u-none" />
<label for="open-pop-up" class="u-cursor-pointer c-popup__icon c-popup__icon--chevron c-popup__icon--chevron-down">
<svg class="o-icon o-icon--md" data-dd-icon="">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-chevron-down"></use>
</svg>
</label>
<label for="open-pop-up" class="u-cursor-pointer c-popup__icon c-popup__icon--chevron c-popup__icon--chevron-up">
<svg class="o-icon o-icon--md" data-dd-icon="">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-chevron-down"></use>
</svg>
</label>
<input type="checkbox" id="close-pop-up" class="u-none" />
<label data-popup--close for="close-pop-up" class="u-cursor-pointer c-popup__icon c-popup__icon--close">
<svg class="o-icon o-icon--md" data-dd-icon="">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-x"></use>
</svg>
</label>
<div class="c-popup__logo c-popup__logo-- u-py-xxsmall">
<svg class="c-brand
c-brand--small
" viewBox="0 0 500 50" xmlns="http://www.w3.org/2000/svg">
<path d="M22.5 40.6l1.5 8.5h10.5L24.5.9H10L0 49.1h10.2l1.4-8.5h10.9zM278.3 0c11 0 17.7 6.6 17.7 25 0 18.3-6.6 25-17.7 25-11 0-17.7-6.5-17.7-25 0-18.3 6.6-25 17.7-25zM53.2 0c9.7 0 14.3 5.5 15.6 13.8l-9.6 2.6c-.7-3.7-2.2-6.8-6.4-6.8-4.6 0-6.8 4-6.8 14.5 0 11.9 2.5 16.3 7.8 16.3 4 0 5.8-2.2 6.3-4.3v-4.8h-7v-9.5h16.4V49h-9.2v-3h-.2a11 11 0 01-8.6 3.6c-8.3 0-15.9-5.7-15.9-25C35.6 6.2 42.6 0 53.2 0zm86.7 0c9.8 0 14.3 5.5 15.6 13.8l-9.6 2.6c-.7-3.7-2.2-6.8-6.3-6.8-4.7 0-7 4-7 14.5 0 11.9 2.6 16.3 8 16.3 3.9 0 5.7-2.2 6.3-4.3v-4.8h-7v-9.5h16.3V49h-9.1v-3h-.2a11 11 0 01-8.6 3.6c-8.4 0-16-5.7-16-25 0-18.6 7-24.7 17.6-24.7zM89.1.9c9.5 0 14.4 6.5 14.4 15.9 0 5.9-2.2 10.5-6.5 12.7l7.6 19.6H93.3l-6-17.4-1.4.1h-1.4v17.3h-10V.9zm29.1 0v48.2h-10V.9h10zm69.3 0v9.6h-16.3v9.3h12.2V29h-12.2v10.4H188V49h-26.7V.9h26.3zm15.2 0l12.9 28h.2V.9h9.6v48.2h-10.2l-12.9-27h-.2v27h-9.6V.9h10.2zm56.2 0v9.6h-9.8V49h-10V10.5h-9.8V.9h29.6zm19.4 8.7c-5 0-7.4 3.6-7.4 15.3 0 11.9 2.4 15.5 7.4 15.5s7.4-3.5 7.4-15.3c0-12-2.5-15.5-7.4-15.5zm-261.1.8l1.5 9 2.1 12h-7.5l2.1-12.1 1.5-8.9h.3zm71.2 0h-4v13h4.2c2.9 0 4.8-2 4.8-6.5 0-4-1.7-6.5-5-6.5z" class="c-brand__edition"></path>
<path d="M356.8 0c11 0 17.8 6.6 17.8 25 0 18.3-6.6 25-17.8 25-11 0-17.8-6.5-17.8-25 0-18.3 6.7-25 17.8-25zm-44.6.9l13 28h.1V.9h9.6v48.2h-10.2l-12.9-27h-.2v27H302V.9h10.2zm93.8 0v9.6h-10V49h-10V10.5h-9.9V.9H406zm14 0v48.2h-10.1V.9h10zm33 0V11l-13.4 22.2-3.7 6 .1.3h17.2v9.6h-28.7v-9.7L438.8 16l3.3-5.4-.1-.2h-17V.9h28zm14.9 0v48.2h-10.1V.9h10zm31.8 0v9.6h-16.4v9.3h12.2V29h-12.2v10.4H500V49h-26.8V.9h26.5zM356.8 9.6c-5 0-7.4 3.6-7.4 15.3 0 11.9 2.4 15.5 7.4 15.5s7.4-3.5 7.4-15.3c0-12-2.5-15.5-7.4-15.5z" class="c-brand__network"></path>
</svg>
</div>
<div class="c-popup__content">
<h2 class="c-popup__title c-popup__title-- u-heading-05 u-inline">
Lorem ipsum is simply dummy
</h2>
<p class="c-popup__paragraph u-body-04 u-mb-none">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
</div>
<a href="#" class="c-popup__cta c-popup__cta--primary c-btn c-btn--secondary u-relative u-flex u-cursor-pointer u-items-center u-nowrap u-label-04 u-justify-center u-no-underline">
Continua
</a>
<button data-popup--close class="c-popup__cta c-popup__cta--secondary c-btn c-btn--naked u-relative u-flex u-cursor-pointer u-items-center u-nowrap u-label-04 u-justify-center">
Forse dopo
</button>
</div>
</div>
<script>
~ function() {
if (
!document.querySelectorAll ||
!window.NodeList ||
!NodeList.prototype.forEach
)
return;
var fDialog = function() {
var fHash = function(sString) {
sString = "" + sString;
var iHash = 0;
var iString = 0;
for (; iString < sString.length; ++iString) {
iHash = (iHash << 5) - iHash + sString.charCodeAt(iString);
iHash = iHash | 0;
}
return (iHash >>> 0).toString(36);
};
document
.querySelectorAll("[data-popup]")
.forEach(function(oNodeDialog) {
{
if (oNodeDialog.hasAttribute("data-popup--internal-processed"))
return;
oNodeDialog.setAttribute("data-popup--internal-processed", "");
}
var bDialog = false;
var sDialog = fHash(
(oNodeDialog.getAttribute("data-popup--id") || "").trim()
);
var fDelay = (
oNodeDialog.getAttribute("data-popup--delay") || ""
).trim();
fDelay = parseFloat(fDelay.replace(/,/g, ".")) || 0;
fDelay = Math.max(0, fDelay);
setTimeout(function() {
{
var aCookie = document.cookie.match(
new RegExp("\\b__popup~" + sDialog + "=([^;]*)", "i")
);
if (aCookie && aCookie[1]) return;
} {
var hTimeOut = null;
var fDismiss = (
oNodeDialog.getAttribute("data-popup--dismiss") || ""
).trim();
fDismiss = parseFloat(fDismiss.replace(/,/g, ".")) || 0;
fDismiss = Math.max(0, fDismiss);
if (fDismiss)
hTimeOut = setTimeout(function() {
hTimeOut = false;
oNodeDialog.removeAttribute("data-popup--state-opened");
oNodeDialog.classList.remove("popup--state-opened");
bDialog = false;
if ("open" in oNodeDialog && !oNodeDialog.open) return;
try {
oNodeDialog.close && oNodeDialog.close();
} catch (_) {}
}, Math.round(fDismiss * 1e3));
}
oNodeDialog.addEventListener("close", function() {
if (hTimeOut) {
clearTimeout(hTimeOut);
hTimeOut = null;
}
if (bDialog) {
var fExpiration = (
oNodeDialog.getAttribute("data-popup--expiration") || ""
).trim();
fExpiration = parseFloat(fExpiration.replace(/,/g, ".")) || 0;
if (fExpiration > 0) {
var oDate = new Date();
oDate.setTime(
oDate.getTime() + Math.round(fExpiration * 1e3)
);
document.cookie =
"__popup~" +
sDialog +
"=-1; path=/; expires=" +
oDate.toGMTString();
} else if (fExpiration < 0)
document.cookie = "__popup~" + sDialog + "=-1; path=/";
}
oNodeDialog.removeAttribute("data-popup--state-opened");
oNodeDialog.classList.remove("popup--state-opened");
bDialog = false;
});
oNodeDialog
.querySelectorAll("[data-popup--close]")
.forEach(function(oNodeClose) {
var fEvent = function() {
if (hTimeOut) {
clearTimeout(hTimeOut);
hTimeOut = null;
}
if (bDialog) {
var fExpiration =
(
oNodeClose.getAttribute("data-popup--close") || ""
).trim() ||
(
oNodeDialog.getAttribute("data-popup--expiration") ||
""
).trim();
fExpiration =
parseFloat(fExpiration.replace(/,/g, ".")) || 0;
if (fExpiration > 0) {
var oDate = new Date();
oDate.setTime(
oDate.getTime() + Math.round(fExpiration * 1e3)
);
document.cookie =
"__popup~" +
sDialog +
"=1; path=/; expires=" +
oDate.toGMTString();
} else if (fExpiration < 0)
document.cookie = "__popup~" + sDialog + "=1; path=/";
}
oNodeDialog.removeAttribute("data-popup--state-opened");
oNodeDialog.classList.remove("popup--state-opened");
bDialog = false;
if ("open" in oNodeDialog && !oNodeDialog.open) return;
try {
oNodeDialog.close && oNodeDialog.close();
} catch (_) {}
};
if (("" + oNodeClose.nodeName).toUpperCase() == "FORM")
oNodeClose.addEventListener("submit", fEvent);
else oNodeClose.addEventListener("click", fEvent);
});
bDialog = true;
oNodeDialog.setAttribute("data-popup--state-opened", "");
oNodeDialog.classList.add("popup--state-opened");
try {
if (oNodeDialog.hasAttribute("data-popup--modal"))
oNodeDialog.showModal && oNodeDialog.showModal();
else oNodeDialog.show && oNodeDialog.show();
} catch (_) {}
}, Math.round(fDelay * 1e3) || 1);
});
};
{
var bReady = false;
var fReady = function() {
{
if (bReady) return;
bReady = true;
}
fDialog();
};
if (
document.readyState == "complete" ||
document.readyState == "interactive"
) {
setTimeout(fReady, 1);
return;
}
document.addEventListener("DOMContentLoaded", fReady);
window.addEventListener("load", fReady);
}
do {
var popUpCheckbox = document.getElementById("open-pop-up");
if (!popUpCheckbox) break;
var popUpParagraph = document.querySelector(".c-popup__paragraph")
if (!popUpParagraph) break;
window.addEventListener('DOMContentLoaded', function() {
var popupChecked = localStorage.getItem("popup-checked");
if (popupChecked === 'true') {
popUpCheckbox.checked = true;
popUpParagraph.classList.add("c-popup_closed")
}
})
popUpCheckbox.addEventListener('change', function() {
localStorage.setItem('popup-checked', !!popUpCheckbox.checked)
if (popUpCheckbox.checked)
popUpParagraph.classList.add('c-popup_closed')
else
popUpParagraph.classList.remove('c-popup_closed')
})
} while (false);
{
var reviveLabels = document.querySelectorAll(".revive-track");
if (reviveLabels) {
reviveLabels.forEach(function(el) {
el.addEventListener('click', function() {
var trackUrl = this.getAttribute('data-revive-url')
if (trackUrl) {
if (navigator.sendBeacon) {
navigator.sendBeacon(trackUrl)
} else {
fetch(trackUrl, {
mode: 'no-cors',
cache: 'no-cache'
})
}
console.log("Click di Revive")
}
})
})
}
}
}();
</script>
<div
data-popup
data-popup--id="popup"
data-popup--expiration="604800"
data-popup--delay="20"
data-popup--dismiss="60"
class= "c-popup o-wrapper o-bg-base u-py-base u-px-xxsmall u-fixed u-bottom u-z-upside">
<div class="c-popup__container u-relative o-container u-break-word">
<input type="checkbox" id="open-pop-up" class="u-none" />
<label for="open-pop-up" class="u-cursor-pointer c-popup__icon c-popup__icon--chevron c-popup__icon--chevron-down">
<svg class="o-icon o-icon--md" data-dd-icon="">
<use
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="#icon-chevron-down"
></use>
</svg>
</label>
<label for="open-pop-up" class="u-cursor-pointer c-popup__icon c-popup__icon--chevron c-popup__icon--chevron-up">
<svg class="o-icon o-icon--md" data-dd-icon="">
<use
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="#icon-chevron-down"
></use>
</svg>
</label>
<input type="checkbox" id="close-pop-up" class="u-none" />
<label data-popup--close for="close-pop-up" class="u-cursor-pointer c-popup__icon c-popup__icon--close">
<svg class="o-icon o-icon--md" data-dd-icon="">
<use
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="#icon-x"
></use>
</svg>
</label>
<div class="c-popup__logo c-popup__logo--{{modifier}} u-py-xxsmall">
{% if modifier=='dossier' %}
<svg xmlns="http://www.w3.org/2000/svg" class="u-size-full" fill="none" viewBox="0 0 111 24">
<path fill="currentColor" d="{{ path }}"/>
</svg>
{% else %}
{% render "@brand",{local: true, logo: true, modifier: "small"},true %}
{% endif %}
</div>
<div class="c-popup__content">
<h2 class="c-popup__title c-popup__title--{{modifier}} u-heading-05 u-inline">
{{ title }}
</h2>
<p class="c-popup__paragraph u-body-04 u-mb-none">
{{ content }}
</p>
</div>
<a href="#" class="c-popup__cta c-popup__cta--primary c-btn c-btn--secondary u-relative u-flex u-cursor-pointer u-items-center u-nowrap u-label-04 u-justify-center u-no-underline">
{{ primarycta }}
</a>
<button data-popup--close class="c-popup__cta c-popup__cta--secondary c-btn c-btn--naked u-relative u-flex u-cursor-pointer u-items-center u-nowrap u-label-04 u-justify-center">
{{ secondarycta }}
</button>
</div>
</div>
{# <script>
~function () {
if (
!document.querySelectorAll ||
!window.NodeList ||
!NodeList.prototype.forEach
)
return;
var fDialog = function () {
var fHash = function (sString) {
sString = "" + sString;
var iHash = 0;
var iString = 0;
for (; iString < sString.length; ++iString) {
iHash = (iHash << 5) - iHash + sString.charCodeAt(iString);
iHash = iHash | 0;
}
return (iHash >>> 0).toString(36);
};
document
.querySelectorAll("[data-popup]")
.forEach(function (oNodeDialog) {
{
if (oNodeDialog.hasAttribute("data-popup--internal-processed"))
return;
oNodeDialog.setAttribute("data-popup--internal-processed", "");
}
var bDialog = false;
var sDialog = fHash(
(oNodeDialog.getAttribute("data-popup--id") || "").trim()
);
var fDelay = (
oNodeDialog.getAttribute("data-popup--delay") || ""
).trim();
fDelay = parseFloat(fDelay.replace(/,/g, ".")) || 0;
fDelay = Math.max(0, fDelay);
setTimeout(function () {
{
var aCookie = document.cookie.match(
new RegExp("\\b__dialog~" + sDialog + "=([^;]*)", "i")
);
if (aCookie && aCookie[1]) return;
}
{
var hTimeOut = null;
var fDismiss = (
oNodeDialog.getAttribute("data-popup--dismiss") || ""
).trim();
fDismiss = parseFloat(fDismiss.replace(/,/g, ".")) || 0;
fDismiss = Math.max(0, fDismiss);
if (fDismiss)
hTimeOut = setTimeout(function () {
hTimeOut = false;
oNodeDialog.removeAttribute("data-popup--state-opened");
oNodeDialog.classList.remove("popup--state-opened");
bDialog = false;
if ("open" in oNodeDialog && !oNodeDialog.open) return;
try {
oNodeDialog.close && oNodeDialog.close();
} catch (_) {}
}, Math.round(fDismiss * 1e3));
}
oNodeDialog.addEventListener("close", function () {
if (hTimeOut) {
clearTimeout(hTimeOut);
hTimeOut = null;
}
if (bDialog) {
var fExpiration = (
oNodeDialog.getAttribute("data-popup--expiration") || ""
).trim();
fExpiration = parseFloat(fExpiration.replace(/,/g, ".")) || 0;
if (fExpiration > 0) {
var oDate = new Date();
oDate.setTime(
oDate.getTime() + Math.round(fExpiration * 1e3)
);
document.cookie =
"__dialog~" +
sDialog +
"=-1; path=/; expires=" +
oDate.toGMTString();
} else if (fExpiration < 0)
document.cookie = "__dialog~" + sDialog + "=-1; path=/";
}
oNodeDialog.removeAttribute("data-popup--state-opened");
oNodeDialog.classList.remove("popup--state-opened");
bDialog = false;
});
oNodeDialog
.querySelectorAll("[data-popup--close]")
.forEach(function (oNodeClose) {
var fEvent = function () {
if (hTimeOut) {
clearTimeout(hTimeOut);
hTimeOut = null;
}
if (bDialog) {
var fExpiration =
(
oNodeClose.getAttribute("data-popup--close") || ""
).trim() ||
(
oNodeDialog.getAttribute("data-popup--expiration") ||
""
).trim();
fExpiration =
parseFloat(fExpiration.replace(/,/g, ".")) || 0;
if (fExpiration > 0) {
var oDate = new Date();
oDate.setTime(
oDate.getTime() + Math.round(fExpiration * 1e3)
);
document.cookie =
"__dialog~" +
sDialog +
"=1; path=/; expires=" +
oDate.toGMTString();
} else if (fExpiration < 0)
document.cookie = "__dialog~" + sDialog + "=1; path=/";
}
oNodeDialog.removeAttribute("data-popup--state-opened");
oNodeDialog.classList.remove("popup--state-opened");
bDialog = false;
if ("open" in oNodeDialog && !oNodeDialog.open) return;
try {
oNodeDialog.close && oNodeDialog.close();
} catch (_) {}
};
if (("" + oNodeClose.nodeName).toUpperCase() == "FORM")
oNodeClose.addEventListener("submit", fEvent);
else oNodeClose.addEventListener("click", fEvent);
});
bDialog = true;
oNodeDialog.setAttribute("data-popup--state-opened", "");
oNodeDialog.classList.add("popup--state-opened");
try {
if (oNodeDialog.hasAttribute("data-popup--modal"))
oNodeDialog.showModal && oNodeDialog.showModal();
else oNodeDialog.show && oNodeDialog.show();
} catch (_) {}
}, Math.round(fDelay * 1e3) || 1);
});
};
{
var bReady = false;
var fReady = function () {
{
if (bReady) return;
bReady = true;
}
fDialog();
};
if (
document.readyState == "complete" ||
document.readyState == "interactive"
) {
setTimeout(fReady, 1);
return;
}
document.addEventListener("DOMContentLoaded", fReady);
window.addEventListener("load", fReady);
}
}();
</script> #}
<script>
~function () {
if (
!document.querySelectorAll ||
!window.NodeList ||
!NodeList.prototype.forEach
)
return;
var fDialog = function () {
var fHash = function (sString) {
sString = "" + sString;
var iHash = 0;
var iString = 0;
for (; iString < sString.length; ++iString) {
iHash = (iHash << 5) - iHash + sString.charCodeAt(iString);
iHash = iHash | 0;
}
return (iHash >>> 0).toString(36);
};
document
.querySelectorAll("[data-popup]")
.forEach(function (oNodeDialog) {
{
if (oNodeDialog.hasAttribute("data-popup--internal-processed"))
return;
oNodeDialog.setAttribute("data-popup--internal-processed", "");
}
var bDialog = false;
var sDialog = fHash(
(oNodeDialog.getAttribute("data-popup--id") || "").trim()
);
var fDelay = (
oNodeDialog.getAttribute("data-popup--delay") || ""
).trim();
fDelay = parseFloat(fDelay.replace(/,/g, ".")) || 0;
fDelay = Math.max(0, fDelay);
setTimeout(function () {
{
var aCookie = document.cookie.match(
new RegExp("\\b__popup~" + sDialog + "=([^;]*)", "i")
);
if (aCookie && aCookie[1]) return;
}
{
var hTimeOut = null;
var fDismiss = (
oNodeDialog.getAttribute("data-popup--dismiss") || ""
).trim();
fDismiss = parseFloat(fDismiss.replace(/,/g, ".")) || 0;
fDismiss = Math.max(0, fDismiss);
if (fDismiss)
hTimeOut = setTimeout(function () {
hTimeOut = false;
oNodeDialog.removeAttribute("data-popup--state-opened");
oNodeDialog.classList.remove("popup--state-opened");
bDialog = false;
if ("open" in oNodeDialog && !oNodeDialog.open) return;
try {
oNodeDialog.close && oNodeDialog.close();
} catch (_) {}
}, Math.round(fDismiss * 1e3));
}
oNodeDialog.addEventListener("close", function () {
if (hTimeOut) {
clearTimeout(hTimeOut);
hTimeOut = null;
}
if (bDialog) {
var fExpiration = (
oNodeDialog.getAttribute("data-popup--expiration") || ""
).trim();
fExpiration = parseFloat(fExpiration.replace(/,/g, ".")) || 0;
if (fExpiration > 0) {
var oDate = new Date();
oDate.setTime(
oDate.getTime() + Math.round(fExpiration * 1e3)
);
document.cookie =
"__popup~" +
sDialog +
"=-1; path=/; expires=" +
oDate.toGMTString();
} else if (fExpiration < 0)
document.cookie = "__popup~" + sDialog + "=-1; path=/";
}
oNodeDialog.removeAttribute("data-popup--state-opened");
oNodeDialog.classList.remove("popup--state-opened");
bDialog = false;
});
oNodeDialog
.querySelectorAll("[data-popup--close]")
.forEach(function (oNodeClose) {
var fEvent = function () {
if (hTimeOut) {
clearTimeout(hTimeOut);
hTimeOut = null;
}
if (bDialog) {
var fExpiration =
(
oNodeClose.getAttribute("data-popup--close") || ""
).trim() ||
(
oNodeDialog.getAttribute("data-popup--expiration") ||
""
).trim();
fExpiration =
parseFloat(fExpiration.replace(/,/g, ".")) || 0;
if (fExpiration > 0) {
var oDate = new Date();
oDate.setTime(
oDate.getTime() + Math.round(fExpiration * 1e3)
);
document.cookie =
"__popup~" +
sDialog +
"=1; path=/; expires=" +
oDate.toGMTString();
} else if (fExpiration < 0)
document.cookie = "__popup~" + sDialog + "=1; path=/";
}
oNodeDialog.removeAttribute("data-popup--state-opened");
oNodeDialog.classList.remove("popup--state-opened");
bDialog = false;
if ("open" in oNodeDialog && !oNodeDialog.open) return;
try {
oNodeDialog.close && oNodeDialog.close();
} catch (_) {}
};
if (("" + oNodeClose.nodeName).toUpperCase() == "FORM")
oNodeClose.addEventListener("submit", fEvent);
else oNodeClose.addEventListener("click", fEvent);
});
bDialog = true;
oNodeDialog.setAttribute("data-popup--state-opened", "");
oNodeDialog.classList.add("popup--state-opened");
try {
if (oNodeDialog.hasAttribute("data-popup--modal"))
oNodeDialog.showModal && oNodeDialog.showModal();
else oNodeDialog.show && oNodeDialog.show();
} catch (_) {}
}, Math.round(fDelay * 1e3) || 1);
});
};
{
var bReady = false;
var fReady = function () {
{
if (bReady) return;
bReady = true;
}
fDialog();
};
if (
document.readyState == "complete" ||
document.readyState == "interactive"
) {
setTimeout(fReady, 1);
return;
}
document.addEventListener("DOMContentLoaded", fReady);
window.addEventListener("load", fReady);
}
do
{
var popUpCheckbox = document.getElementById("open-pop-up");
if ( !popUpCheckbox ) break;
var popUpParagraph= document.querySelector(".c-popup__paragraph")
if ( !popUpParagraph ) break;
window.addEventListener('DOMContentLoaded', function(){
var popupChecked= localStorage.getItem("popup-checked");
if(popupChecked==='true'){
popUpCheckbox.checked=true;
popUpParagraph.classList.add("c-popup_closed")
}
})
popUpCheckbox.addEventListener('change', function(){
localStorage.setItem('popup-checked', !!popUpCheckbox.checked)
if( popUpCheckbox.checked )
popUpParagraph.classList.add('c-popup_closed')
else
popUpParagraph.classList.remove('c-popup_closed')
})
} while ( false );
{
var reviveLabels = document.querySelectorAll(".revive-track");
if(reviveLabels){
reviveLabels.forEach(function(el) {
el.addEventListener('click', function(){
var trackUrl= this.getAttribute('data-revive-url')
if(trackUrl){
if(navigator.sendBeacon){
navigator.sendBeacon(trackUrl)
}else{
fetch(trackUrl, { mode: 'no-cors', cache: 'no-cache' })
}
console.log("Click di Revive")
}
})
})
}
}
}();
</script>
{
"title": "Lorem ipsum is simply dummy ",
"content": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"primarycta": "Continua",
"secondarycta": "Forse dopo"
}
No notes defined.