// Paramètres et fonctions perso tarteaucitron.init({ "privacyUrl": "https://www.setnag.com/fr/mentions-legales/", /* Privacy policy url */ "hashtag": "#tarteaucitron", /* Open the panel with this hashtag */ "cookieName": "tarteaucitron", /* Cookie name */ "orientation": "middle", /* Banner position (top - bottom - middle) */ "groupServices": false, /* Group services by category */ "showAlertSmall": false, /* Show the small banner on bottom right */ "cookieslist": false, /* Show the cookie list */ "closePopup": false, /* Show a close X on the banner */ "showIcon": true, /* Show cookie icon to manage cookies */ "iconSrc": "./images/cookie2.png", /* Optionnal: URL or base64 encoded image */ "iconPosition": "BottomLeft", /* BottomRight, BottomLeft, TopRight and TopLeft */ "adblocker": false, /* Show a Warning if an adblocker is detected */ "DenyAllCta" : false, /* Show the deny all button */ "AcceptAllCta" : true, /* Show the accept all button when highPrivacy on */ "highPrivacy": true, /* HIGHLY RECOMMANDED Disable auto consent */ "handleBrowserDNTRequest": false, /* If Do Not Track == 1, disallow all */ "removeCredit": true, /* Remove credit link */ "moreInfoLink": true, /* Show more info link */ "useExternalCss": false, /* If false, the tarteaucitron.css file will be loaded */ "useExternalJs": false, /* If false, the tarteaucitron.js file will be loaded */ //"cookieDomain": ".my-multisite-domaine.fr", /* Shared cookie for multisite */ "readmoreLink": "", /* Change the default readmore link */ "mandatory": true, /* Show a message about mandatory cookies */ }); tarteaucitron.user.gtagUa = 'UA-62382114-1'; tarteaucitron.user.analyticsMore = function () { ga('set', 'anonymizeIp', true);ga('set', 'forceSSL', true); }; (tarteaucitron.job = tarteaucitron.job || []).push('gtag'); $(document).ready("#tarteaucitronManager").click(function() { console.log('OK'); setTimeout( function() { if($('#tarteaucitron').css('display') == 'block') { $('#tarteaucitronManager').children("img").attr("src",'images/cookie.png'); } else { $('#tarteaucitronManager').children("img").attr("src",'images/cookie2.png'); } },500); });