Bug fix on the opacity management
This commit is contained in:
parent
744f31d4f4
commit
aa9f222eb0
|
|
@ -1,3 +1,5 @@
|
||||||
|
div#tarteaucitronMainLineOffset,.tarteaucitronBorder {border:0!important;}
|
||||||
|
|
||||||
#tarteaucitron [aria-pressed="true"] {
|
#tarteaucitron [aria-pressed="true"] {
|
||||||
font-weight:700;
|
font-weight:700;
|
||||||
}
|
}
|
||||||
|
|
@ -1013,4 +1015,4 @@ span.tarteaucitronTitle.tarteaucitronH3 {
|
||||||
|
|
||||||
.tarteaucitron-display-none {
|
.tarteaucitron-display-none {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -819,7 +819,7 @@ var tarteaucitron = {
|
||||||
if (tarteaucitron.parameters.readmoreLink !== undefined && tarteaucitron.parameters.readmoreLink !== '') {
|
if (tarteaucitron.parameters.readmoreLink !== undefined && tarteaucitron.parameters.readmoreLink !== '') {
|
||||||
link = tarteaucitron.parameters.readmoreLink;
|
link = tarteaucitron.parameters.readmoreLink;
|
||||||
}
|
}
|
||||||
html += ' <a href="' + link + '" target="_blank" rel="noreferrer noopener nofollow" title="' + tarteaucitron.lang.more + ' : ' + tarteaucitron.lang.cookieDetail + ' ' + service.name + ' ' + tarteaucitron.lang.ourSite + ' ' + tarteaucitron.lang.newWindow +'" class="tarteaucitronReadmoreInfo">';
|
html += ' <a href="' + link + '" target="_blank" rel="noreferrer noopener nofollow" title="' + tarteaucitron.lang.more + ' : '+ tarteaucitron.lang.cookieDetail + ' ' + service.name + ' ' + tarteaucitron.lang.ourSite + ' ' + tarteaucitron.lang.newWindow +'" class="tarteaucitronReadmoreInfo">';
|
||||||
html += ' ' + tarteaucitron.lang.more;
|
html += ' ' + tarteaucitron.lang.more;
|
||||||
html += ' </a>';
|
html += ' </a>';
|
||||||
html += ' <span class="tarteaucitronReadmoreSeparator"> - </span>';
|
html += ' <span class="tarteaucitronReadmoreSeparator"> - </span>';
|
||||||
|
|
@ -958,19 +958,19 @@ var tarteaucitron = {
|
||||||
if (property == "display" && value == "none" && (id == "tarteaucitron" || id == "tarteaucitronBack" || id == "tarteaucitronAlertBig")) {
|
if (property == "display" && value == "none" && (id == "tarteaucitron" || id == "tarteaucitronBack" || id == "tarteaucitronAlertBig")) {
|
||||||
document.getElementById(id).style["opacity"] = "0";
|
document.getElementById(id).style["opacity"] = "0";
|
||||||
|
|
||||||
setTimeout(function() {document.getElementById(id).style[property] = value;}, 200);
|
/*setTimeout(function() {*/document.getElementById(id).style[property] = value;/*}, 200);*/
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
document.getElementById(id).style[property] = value;
|
document.getElementById(id).style[property] = value;
|
||||||
|
|
||||||
if (property == "display" && value == "block" && (id == "tarteaucitron" || id == "tarteaucitronAlertBig")) {
|
if (property == "display" && value == "block" && (id == "tarteaucitron" || id == "tarteaucitronAlertBig")) {
|
||||||
document.getElementById(id).style["opacity"] = "0";
|
document.getElementById(id).style["opacity"] = "0";
|
||||||
setTimeout(function() {document.getElementById(id).style["opacity"] = "1";}, 1);
|
/*setTimeout(function() {*/document.getElementById(id).style["opacity"] = "1";/*}, 1);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
if (property == "display" && value == "block" && id == "tarteaucitronBack") {
|
if (property == "display" && value == "block" && id == "tarteaucitronBack") {
|
||||||
document.getElementById(id).style["opacity"] = "0";
|
document.getElementById(id).style["opacity"] = "0";
|
||||||
setTimeout(function() {document.getElementById(id).style["opacity"] = "0.7";}, 1);
|
/*setTimeout(function() {*/document.getElementById(id).style["opacity"] = "0.7";/*}, 1);*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2033,13 +2033,13 @@ var tarteaucitron = {
|
||||||
"proTemp": '',
|
"proTemp": '',
|
||||||
"proTimer": function () {
|
"proTimer": function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
setTimeout(tarteaucitron.proPing, 500);
|
setTimeout(tarteaucitron.proPing, (Math.floor(Math.random() * (1200 - 500 + 1)) + 500));
|
||||||
},
|
},
|
||||||
"pro": function (list) {
|
"pro": function (list) {
|
||||||
"use strict";
|
"use strict";
|
||||||
tarteaucitron.proTemp += list;
|
tarteaucitron.proTemp += list;
|
||||||
clearTimeout(tarteaucitron.proTimer);
|
clearTimeout(tarteaucitron.proTimer);
|
||||||
tarteaucitron.proTimer = setTimeout(tarteaucitron.proPing, 500);
|
tarteaucitron.proTimer = setTimeout(tarteaucitron.proPing, (Math.floor(Math.random() * (1200 - 500 + 1)) + 500));
|
||||||
},
|
},
|
||||||
"proPing": function () {
|
"proPing": function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue