Add a Deny all button on the middle bar
This commit is contained in:
parent
72e7a77a37
commit
da7272f60d
|
|
@ -514,12 +514,12 @@ div#tarteaucitronServices {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tarteaucitronAlertBig #tarteaucitronCloseAlert, #tarteaucitronAlertBig #tarteaucitronPersonalize, #tarteaucitron #tarteaucitronPrivacyUrl, #tarteaucitron #tarteaucitronPrivacyUrlDialog {
|
#tarteaucitronAlertBig #tarteaucitronCloseAlert, #tarteaucitronAlertBig #tarteaucitronPersonalize, .tarteaucitronCTAButton, #tarteaucitron #tarteaucitronPrivacyUrl, #tarteaucitron #tarteaucitronPrivacyUrlDialog {
|
||||||
background: #008300;
|
background: #008300;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: 16px;
|
font-size: 16px!important;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
margin-left: 7px;
|
margin-left: 7px;
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ var scripts = document.getElementsByTagName('script'),
|
||||||
|
|
||||||
|
|
||||||
var tarteaucitron = {
|
var tarteaucitron = {
|
||||||
"version": 20191031,
|
"version": 20200114,
|
||||||
"cdn": cdn,
|
"cdn": cdn,
|
||||||
"user": {},
|
"user": {},
|
||||||
"lang": {},
|
"lang": {},
|
||||||
|
|
@ -384,6 +384,15 @@ var tarteaucitron = {
|
||||||
html += ' <button type="button" id="tarteaucitronPersonalize" onclick="tarteaucitron.userInterface.respondAll(true);">';
|
html += ' <button type="button" id="tarteaucitronPersonalize" onclick="tarteaucitron.userInterface.respondAll(true);">';
|
||||||
html += ' ✓ ' + tarteaucitron.lang.acceptAll;
|
html += ' ✓ ' + tarteaucitron.lang.acceptAll;
|
||||||
html += ' </button>';
|
html += ' </button>';
|
||||||
|
|
||||||
|
|
||||||
|
if (tarteaucitron.parameters.orientation === 'middle') {
|
||||||
|
html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" onclick="tarteaucitron.userInterface.respondAll(false);">';
|
||||||
|
html += ' ✗ ' + tarteaucitron.lang.denyAll;
|
||||||
|
html += ' </button>';
|
||||||
|
html += ' <br/><br/>';
|
||||||
|
}
|
||||||
|
|
||||||
html += ' <button type="button" id="tarteaucitronCloseAlert" onclick="tarteaucitron.userInterface.openPanel();">';
|
html += ' <button type="button" id="tarteaucitronCloseAlert" onclick="tarteaucitron.userInterface.openPanel();">';
|
||||||
html += ' ' + tarteaucitron.lang.personalize;
|
html += ' ' + tarteaucitron.lang.personalize;
|
||||||
html += ' </button>';
|
html += ' </button>';
|
||||||
|
|
@ -507,7 +516,7 @@ var tarteaucitron = {
|
||||||
html += ' ' + tarteaucitron.lang.adblock + '<br/>';
|
html += ' ' + tarteaucitron.lang.adblock + '<br/>';
|
||||||
html += ' <strong>' + tarteaucitron.lang.adblock_call + '</strong>';
|
html += ' <strong>' + tarteaucitron.lang.adblock_call + '</strong>';
|
||||||
html += ' </p>';
|
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 += ' ' + tarteaucitron.lang.reload;
|
||||||
html += ' </button>';
|
html += ' </button>';
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue