(function() { var documentScript = document.currentScript; var documentScriptId = documentScript.id; var tagId = "#" + documentScriptId; // Load the script //Add jquery var script = document.createElement("SCRIPT"); script.src = 'http://cdn.gipco-adns.com/file/MailAdns/formListRegisterJs/V1/js/vendor/jquery-3.3.1.min.js'; script.type = 'text/javascript'; script.onload = function() { jQuery.noConflict(); //when jquery is load add $ function window.jQuery(document).ready(function($) { //Add required CSS if (!$("head link[rel='stylesheet'][href='http://cdn.gipco-adns.com/file/MailAdns/formListRegisterJs/V1/css/jquery.modal.min.css']").length) { $('head').append(''); }; if (!$("head link[rel='stylesheet'][href='http://cdn.gipco-adns.com/file/MailAdns/formListRegisterJs/V1/css/form.css']").length) { $('head').append(''); }; // ID de la liste var ListId = $(tagId).data().mailadnsListeId; // nom de la liste var listName = $(tagId).data().mailadnsListeName; if (ListId != "") { //$.getScript("http://cdn.gipco-adns.com/file/MailAdns/formListRegisterJs/V1/js/vendor/js.cookie.js", function( data, textStatus, jqxhr ){ $.ajax({ url: "http://cdn.gipco-adns.com/file/MailAdns/formListRegisterJs/V1/js/vendor/js.cookie.js", dataType: "script", cache: true }).done(function(data, textStatus, jqxhr) { // if missing cookie, false else cooking value var dontShowModal = (Cookies.getJSON(ListId) && Cookies.getJSON(ListId).mail_adns_second_pageView) ? Cookies.getJSON(ListId).mail_adns_second_pageView : false; if (!dontShowModal) { // attente 7 jours avant de re-afficher Cookies.set(ListId, { mail_adns_second_pageView: true }, { expires: 7 }); // commantaire si dispo var listComment = ""; if ($(tagId).data().mailadnsListeComment) { listComment = $(tagId).data().mailadnsListeComment } //$.getScript( "http://cdn.gipco-adns.com/file/MailAdns/formListRegisterJs/V1/js/vendor/jquery.modal.min.js", function( data, textStatus, jqxhr ) { $.ajax({ url: "http://cdn.gipco-adns.com/file/MailAdns/formListRegisterJs/V1/js/vendor/jquery.modal.min.js", dataType: "script", cache: true }).done(function(data, textStatus, jqxhr) { // formulaire debut $('
' + listComment + '
\