Merge pull request #480 from Sylry/feature/DenyAllCtaOption

Add option for the Deny All button
This commit is contained in:
Amauri CHAMPEAUX 2020-08-10 17:20:18 +02:00 committed by GitHub
commit bb24488a02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -41,6 +41,7 @@ tarteaucitron.init({
"cookieslist": true, /* Show the cookie list */
"adblocker": false, /* Show a Warning if an adblocker is detected */
"DenyAllCta" : true, /* Show the deny all button */
"AcceptAllCta" : true, /* Show the accept all button when highPrivacy on */
"highPrivacy": true, /* Disable auto consent */
"handleBrowserDNTRequest": false, /* If Do Not Track == 1, disallow all */

View File

@ -210,6 +210,7 @@ var tarteaucitron = {
"showAlertSmall": true,
"cookieslist": true,
"handleBrowserDNTRequest": false,
"DenyAllCta": true,
"AcceptAllCta" : true,
"moreInfoLink": true,
"privacyUrl": "",
@ -406,7 +407,7 @@ var tarteaucitron = {
html += ' </button>';
if (tarteaucitron.parameters.orientation === 'middle') {
if (tarteaucitron.parameters.DenyAllCta) {
html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" onclick="tarteaucitron.userInterface.respondAll(false);">';
html += ' &#10007; ' + tarteaucitron.lang.denyAll;
html += ' </button>';