Tutorial fertig gestellt, Theme geupdated, Tests angepasst
This commit is contained in:
@@ -4085,7 +4085,7 @@ class DBTranslator extends Translator {
|
||||
}
|
||||
}
|
||||
|
||||
function applyPolyfills(){
|
||||
function applyPolyfills() {
|
||||
if (!String.prototype.format) {
|
||||
String.prototype["format"] = function (args) {
|
||||
return this.replace(/{(\d+)}/g, function (match, number) {
|
||||
@@ -4178,6 +4178,7 @@ function applyPolyfills(){
|
||||
elem.removeEventListener("transitioncancel", transCancelledLis);
|
||||
elem.style.opacity = null;
|
||||
elem.style.transition = null;
|
||||
console.log("transEnd");
|
||||
resolve(true, e);
|
||||
};
|
||||
|
||||
@@ -4186,16 +4187,26 @@ function applyPolyfills(){
|
||||
elem.removeEventListener("transitioncancel", transCancelledLis);
|
||||
elem.style.opacity = null;
|
||||
elem.style.transition = null;
|
||||
console.log("transCancelled");
|
||||
resolve(false, e);
|
||||
};
|
||||
elem.addEventListener("transitionend", transEndLis);
|
||||
elem.addEventListener("transitioncancel", transCancelledLis);
|
||||
});
|
||||
|
||||
//Nach Seitenneuzeichnen, damit chrome das immer macht (und FF auch)
|
||||
requestAnimationFrame(function () {
|
||||
console.log(getComputedStyle(elem).getPropertyValue("opacity"));
|
||||
if (getComputedStyle(elem).getPropertyValue("opacity") === "1"){
|
||||
resolve(false);
|
||||
}
|
||||
//Fallback
|
||||
setTimeout(() => {
|
||||
resolve(false);
|
||||
}, time*1000);
|
||||
|
||||
//Nach Seitenneuzeichnen, damit chrome das immer macht (und FF auch)
|
||||
requestAnimationFrame(function () {
|
||||
elem.style.opacity = 1;
|
||||
requestAnimationFrame(function () {
|
||||
elem.style.opacity = 1;
|
||||
});
|
||||
});
|
||||
});
|
||||
return animPromise;
|
||||
|
||||
Reference in New Issue
Block a user