Fix colors of button #213
This commit is contained in:
parent
a5bf32ea72
commit
096065c0bb
|
|
@ -16,7 +16,7 @@ var scripts = document.getElementsByTagName('script'),
|
|||
|
||||
|
||||
var tarteaucitron = {
|
||||
"version": 20180911002,
|
||||
"version": 20180914,
|
||||
"cdn": cdn,
|
||||
"user": {},
|
||||
"lang": {},
|
||||
|
|
@ -333,7 +333,13 @@ var tarteaucitron = {
|
|||
} else {
|
||||
html += '<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + '">';
|
||||
html += ' <span id="tarteaucitronDisclaimerAlert">';
|
||||
html += ' ' + tarteaucitron.lang.alertBigClick + ' ' + tarteaucitron.lang.alertBig;
|
||||
|
||||
if (tarteaucitron.parameters.highPrivacy) {
|
||||
html += ' ' + tarteaucitron.lang.alertBigPrivacy;
|
||||
} else {
|
||||
html += ' ' + tarteaucitron.lang.alertBigClick + ' ' + tarteaucitron.lang.alertBig;
|
||||
}
|
||||
|
||||
html += ' </span>';
|
||||
html += ' <button id="tarteaucitronPersonalize" onclick="tarteaucitron.userInterface.respondAll(true);">';
|
||||
html += ' ✓ ' + tarteaucitron.lang.acceptAll;
|
||||
|
|
@ -703,8 +709,8 @@ var tarteaucitron = {
|
|||
tarteaucitron.userInterface.css(c + 'AllDenied', 'opacity', '1');
|
||||
tarteaucitron.userInterface.css(c + 'AllDenied', 'backgroundColor', redDark);
|
||||
} else {
|
||||
tarteaucitron.userInterface.css(c + 'AllAllowed', 'opacity', '1');
|
||||
tarteaucitron.userInterface.css(c + 'AllDenied', 'opacity', '1');
|
||||
tarteaucitron.userInterface.css(c + 'AllAllowed', 'opacity', '0.4');
|
||||
tarteaucitron.userInterface.css(c + 'AllDenied', 'opacity', '0.4');
|
||||
}
|
||||
|
||||
// close the alert if all service have been reviewed
|
||||
|
|
@ -879,11 +885,9 @@ var tarteaucitron = {
|
|||
allDivs = main.childNodes;
|
||||
|
||||
if (typeof Array.prototype.map === 'function') {
|
||||
|
||||
Array.prototype.map.call(main.children, Object).sort(function (a, b) {
|
||||
//var mainChildren = Array.from(main.children);
|
||||
//mainChildren.sort(function (a, b) {
|
||||
|
||||
Array.prototype.map.call(main.children, Object).sort(function (a, b) {
|
||||
//var mainChildren = Array.from(main.children);
|
||||
//mainChildren.sort(function (a, b) {
|
||||
if (tarteaucitron.services[a.id.replace(/Line/g, '')].name > tarteaucitron.services[b.id.replace(/Line/g, '')].name) { return 1; }
|
||||
if (tarteaucitron.services[a.id.replace(/Line/g, '')].name < tarteaucitron.services[b.id.replace(/Line/g, '')].name) { return -1; }
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue