From 77489438274a77912567ee5ee3daaf00a56c53eb Mon Sep 17 00:00:00 2001 From: Sylry Date: Tue, 7 Jul 2020 16:08:56 +0200 Subject: [PATCH] Add option for the Deny All button --- README.md | 1 + tarteaucitron.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c05151..a04d447 100644 --- a/README.md +++ b/README.md @@ -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 */ diff --git a/tarteaucitron.js b/tarteaucitron.js index 6acfabb..bcbdc20 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -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 += ' '; - if (tarteaucitron.parameters.orientation === 'middle') { + if (tarteaucitron.parameters.DenyAllCta) { html += ' ';