'; return html; } el.acceptCookieButton = function(value) { var form = this.remove(); if( value == 4 ){ this.createPopup(value); }else{ this.createPopup(form); } if(value == 1) { $.post(popup.settings.action, {"all" : value}); } else if(value == 2 || value == 3) { $.post(popup.settings.action, {"all" : value}); gdprCookies.closePopup(); } } el.infoCookieButton = function() { this.remove(); this.createPopup(1); } el.remove = function() { var form = 2; if($(".bannerCookiesActive").length > 0) { $("#cookieBanner").remove(); $(".bannerCookiesActive").removeClass("bannerCookiesActive"); } else { $("#cookiePopup").remove(); $(".popupCookiesActive").removeClass("popupCookiesActive"); } return form; } el.closePopup = function(item) { $("#cookiePopup").remove(); $(".popupCookiesActive").removeClass("popupCookiesActive"); if(item == 1) window.location.reload() } el.submitForm = function(form) { var action = $(form).attr("action"); $.post(action, $(form).serialize()); this.acceptCookieButton(); } el.readCookie = function(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } el.init(); return this; } })(jQuery); var gdprCookies = $("body").gdprCookies({ "action" : "/plugins/cookies_policy/action_cookies.php", "csrf" : "e0e0eff15848ee0de1158f8cd20791e6", "layout" : 3, "policy_page_id" : 3335, "exp" : { "terms" : "Politique de confidentialité", "buttons" : { "moreinfo" : "Plus d´informations", "banner" : "DE SUIVRE", "popupinfo" : "D´ACCORD ET DE SUIVRE", "popupform" : "SOUMETTRE DES PRÉFÉRENCES", "close" : "FERMER" }, "banner" : { "exp1" : "UTILISATION DE COOKIES", "exp2" : "En continuant votre navigation, vous consentez à l´utilisation de cookies qui permettent la présentation de services et d´offres adaptés à vos intérêts.