An error has occurred

{{terminalError}}

Newsletter X'O
Tous les vendredis à 11h, vivez à 100 % les quinze dernières années de votre vie active, avec des infos inspirantes et des analyses pertinentes sur cette société.
Inscrit
S'inscrire
if (document.getElementById("mySpan")) { function myFunction() { var optin = this.getAttribute("optin"); var optinVal = false; var optinValStr = this.getAttribute("data-optin-value"); if (optinValStr && optinValStr.trim() !== "") { optinVal = JSON.parse(optinValStr); } var msgPost = JSON.parse( '{"optin":{"' + optin + '": ' + !optinVal + '},"ShowRegister":true}' ); window.parent.postMessage(msgPost, "*"); } // Get the span element by its id var spanElement = document.getElementById("mySpan"); // Add a click event listener to the span element if (spanElement != null) { spanElement.addEventListener("click", myFunction); } }
Newsletter X'O
Tous les vendredis à 11h, vivez à 100 % les quinze dernières années de votre vie active, avec des infos inspirantes et des analyses pertinentes sur cette société.
Inscrit
S'inscrire
document.onreadystatechange = () => { if (document.readyState === "complete") { if (!document.getElementById("mySpan")) { document.querySelectorAll("span[optin]").forEach(function (item) { item.addEventListener("click", function () { var optin = this.getAttribute("optin"); var optinVal = false; var optinValStr = this.getAttribute("data-optin-value"); if (optinValStr && optinValStr.trim() !== "") { optinVal = JSON.parse(optinValStr); } window.parent.postMessage( JSON.parse('{ "optin" : { "' + optin + '": ' + !optinVal + " } }"), "*" ); console.log("NL subscription action: " + optin + " -> " + !optinVal); this.querySelectorAll(".Button-text").forEach(function (btn) { btn.innerText = optinVal ? "S'inscrire" : "Inscrit"; }); this.setAttribute("data-optin-value", optinVal ? "false" : "true"); }); }); } } };