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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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