Add a Deny all button on the middle bar

This commit is contained in:
Amauri CHAMPEAUX 2020-01-20 16:54:22 +01:00
parent 72e7a77a37
commit da7272f60d
3 changed files with 13 additions and 4 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -514,12 +514,12 @@ div#tarteaucitronServices {
cursor: pointer;
}
#tarteaucitronAlertBig #tarteaucitronCloseAlert, #tarteaucitronAlertBig #tarteaucitronPersonalize, #tarteaucitron #tarteaucitronPrivacyUrl, #tarteaucitron #tarteaucitronPrivacyUrlDialog {
#tarteaucitronAlertBig #tarteaucitronCloseAlert, #tarteaucitronAlertBig #tarteaucitronPersonalize, .tarteaucitronCTAButton, #tarteaucitron #tarteaucitronPrivacyUrl, #tarteaucitron #tarteaucitronPrivacyUrlDialog {
background: #008300;
color: #fff;
cursor: pointer;
display: inline-block;
font-size: 16px;
font-size: 16px!important;
padding: 5px 10px;
text-decoration: none;
margin-left: 7px;

View File

@ -18,7 +18,7 @@ var scripts = document.getElementsByTagName('script'),
var tarteaucitron = {
"version": 20191031,
"version": 20200114,
"cdn": cdn,
"user": {},
"lang": {},
@ -384,6 +384,15 @@ var tarteaucitron = {
html += ' <button type="button" id="tarteaucitronPersonalize" onclick="tarteaucitron.userInterface.respondAll(true);">';
html += ' &#10003; ' + tarteaucitron.lang.acceptAll;
html += ' </button>';
if (tarteaucitron.parameters.orientation === 'middle') {
html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" onclick="tarteaucitron.userInterface.respondAll(false);">';
html += ' &#10007; ' + tarteaucitron.lang.denyAll;
html += ' </button>';
html += ' <br/><br/>';
}
html += ' <button type="button" id="tarteaucitronCloseAlert" onclick="tarteaucitron.userInterface.openPanel();">';
html += ' ' + tarteaucitron.lang.personalize;
html += ' </button>';
@ -507,7 +516,7 @@ var tarteaucitron = {
html += ' ' + tarteaucitron.lang.adblock + '<br/>';
html += ' <strong>' + tarteaucitron.lang.adblock_call + '</strong>';
html += ' </p>';
html += ' <button type="button" id="tarteaucitronPersonalize" onclick="location.reload();">';
html += ' <button type="button" class="tarteaucitronCTAButton" onclick="location.reload();">';
html += ' ' + tarteaucitron.lang.reload;
html += ' </button>';
html += '</div>';