This commit is contained in:
Amauri CHAMPEAUX 2020-10-31 09:32:40 +01:00
commit a2daf1a33b
2 changed files with 30 additions and 11 deletions

View File

@ -617,6 +617,25 @@ div#tarteaucitronServices {
height: 50px; height: 50px;
} }
#tarteaucitronRoot .tarteaucitronCross::before {
content: '\2717';
display: inline-block;
color: white;
}
#tarteaucitronRoot .tarteaucitronCheck::before {
content: '\2713';
display: inline-block;
color: white;
}
#tarteaucitronRoot .tarteaucitronPlus::before {
content: '\271b';
display: inline-block;
color: white;
}
/*** /***
* Small alert * Small alert
*/ */

View File

@ -316,10 +316,10 @@ var tarteaucitron = {
html += ' </div>'; html += ' </div>';
html += ' <div class="tarteaucitronAsk" id="tarteaucitronScrollbarAdjust">'; html += ' <div class="tarteaucitronAsk" id="tarteaucitronScrollbarAdjust">';
html += ' <button type="button" id="tarteaucitronAllAllowed" class="tarteaucitronAllow">'; html += ' <button type="button" id="tarteaucitronAllAllowed" class="tarteaucitronAllow">';
html += ' &#10003; ' + tarteaucitron.lang.allowAll; html += ' <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allowAll;
html += ' </button> '; html += ' </button> ';
html += ' <button type="button" id="tarteaucitronAllDenied" class="tarteaucitronDeny">'; html += ' <button type="button" id="tarteaucitronAllDenied" class="tarteaucitronDeny">';
html += ' &#10007; ' + tarteaucitron.lang.denyAll; html += ' <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.denyAll;
html += ' </button>'; html += ' </button>';
html += ' </div>'; html += ' </div>';
html += ' </div>'; html += ' </div>';
@ -330,7 +330,7 @@ var tarteaucitron = {
if (tarteaucitron.parameters.mandatory == true) { if (tarteaucitron.parameters.mandatory == true) {
html += '<li id="tarteaucitronServicesTitle_mandatory">'; html += '<li id="tarteaucitronServicesTitle_mandatory">';
html += '<div class="tarteaucitronTitle">'; html += '<div class="tarteaucitronTitle">';
html += ' <button type="button">&nbsp; ' + tarteaucitron.lang.mandatoryTitle + '</button>'; html += ' <button type="button" tabindex="-1">&nbsp; ' + tarteaucitron.lang.mandatoryTitle + '</button>';
html += '</div>'; html += '</div>';
html += '<ul id="tarteaucitronServices_mandatory">'; html += '<ul id="tarteaucitronServices_mandatory">';
html += '<li class="tarteaucitronLine">'; html += '<li class="tarteaucitronLine">';
@ -340,10 +340,10 @@ var tarteaucitron = {
html += ' </div>'; html += ' </div>';
html += ' <div class="tarteaucitronAsk">'; html += ' <div class="tarteaucitronAsk">';
html += ' <button type="button" class="tarteaucitronAllow">'; html += ' <button type="button" class="tarteaucitronAllow">';
html += ' &#10003; ' + tarteaucitron.lang.allow; html += ' <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allow;
html += ' </button> '; html += ' </button> ';
html += ' <button type="button" class="tarteaucitronDeny" style="visibility:hidden">'; html += ' <button type="button" class="tarteaucitronDeny" style="visibility:hidden">';
html += ' &#10007; ' + tarteaucitron.lang.deny; html += ' <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.deny;
html += ' </button> '; html += ' </button> ';
html += ' </div>'; html += ' </div>';
html += '</li>'; html += '</li>';
@ -353,7 +353,7 @@ var tarteaucitron = {
for (i = 0; i < cat.length; i += 1) { for (i = 0; i < cat.length; i += 1) {
html += ' <li id="tarteaucitronServicesTitle_' + cat[i] + '" class="tarteaucitronHidden">'; html += ' <li id="tarteaucitronServicesTitle_' + cat[i] + '" class="tarteaucitronHidden">';
html += ' <div class="tarteaucitronTitle">'; html += ' <div class="tarteaucitronTitle">';
html += ' <button type="button" class="catToggleBtn" data-cat="tarteaucitronDetails' + cat[i] + '">&#10011; ' + tarteaucitron.lang[cat[i]].title + '</button>'; html += ' <button type="button" class="catToggleBtn" data-cat="tarteaucitronDetails' + cat[i] + '"><span class="tarteaucitronPlus"></span> ' + tarteaucitron.lang[cat[i]].title + '</button>';
html += ' </div>'; html += ' </div>';
html += ' <div id="tarteaucitronDetails' + cat[i] + '" class="tarteaucitronDetails tarteaucitronInfoBox">'; html += ' <div id="tarteaucitronDetails' + cat[i] + '" class="tarteaucitronDetails tarteaucitronInfoBox">';
html += ' ' + tarteaucitron.lang[cat[i]].details; html += ' ' + tarteaucitron.lang[cat[i]].details;
@ -408,13 +408,13 @@ var tarteaucitron = {
html += ' </span>'; html += ' </span>';
//html += ' <span class="tarteaucitronAlertBigBtnWrapper">'; //html += ' <span class="tarteaucitronAlertBigBtnWrapper">';
html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronAllow" id="tarteaucitronPersonalize2">'; html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronAllow" id="tarteaucitronPersonalize2">';
html += ' &#10003; ' + tarteaucitron.lang.acceptAll; html += ' <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.acceptAll;
html += ' </button>'; html += ' </button>';
if (tarteaucitron.parameters.DenyAllCta) { if (tarteaucitron.parameters.DenyAllCta) {
html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" id="tarteaucitronAllDenied2">'; html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" id="tarteaucitronAllDenied2">';
html += ' &#10007; ' + tarteaucitron.lang.denyAll; html += ' <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.denyAll;
html += ' </button>'; html += ' </button>';
//html += ' <br/><br/>'; //html += ' <br/><br/>';
} }
@ -698,10 +698,10 @@ var tarteaucitron = {
html += ' </div>'; html += ' </div>';
html += ' <div class="tarteaucitronAsk">'; html += ' <div class="tarteaucitronAsk">';
html += ' <button type="button" id="' + service.key + 'Allowed" class="tarteaucitronAllow">'; html += ' <button type="button" id="' + service.key + 'Allowed" class="tarteaucitronAllow">';
html += ' &#10003; ' + tarteaucitron.lang.allow; html += ' <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allow;
html += ' </button> '; html += ' </button> ';
html += ' <button type="button" id="' + service.key + 'Denied" class="tarteaucitronDeny">'; html += ' <button type="button" id="' + service.key + 'Denied" class="tarteaucitronDeny">';
html += ' &#10007; ' + tarteaucitron.lang.deny; html += ' <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.deny;
html += ' </button>'; html += ' </button>';
html += ' </div>'; html += ' </div>';
html += '</li>'; html += '</li>';
@ -1709,7 +1709,7 @@ var tarteaucitron = {
html += ' <div class="tac_float">'; html += ' <div class="tac_float">';
html += ' ' + engage; html += ' ' + engage;
html += ' <button type="button" class="tarteaucitronAllow" id="Eng' + r + 'ed' + id + '">'; html += ' <button type="button" class="tarteaucitronAllow" id="Eng' + r + 'ed' + id + '">';
html += ' &#10003; ' + tarteaucitron.lang.allow; html += ' <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allow;
html += ' </button>'; html += ' </button>';
html += ' </div>'; html += ' </div>';
html += '</div>'; html += '</div>';