Tutorial fertig gestellt, Theme geupdated, Tests angepasst

This commit is contained in:
silas
2018-09-27 22:08:07 +02:00
parent 9678354c92
commit e34a3e865f
35 changed files with 481 additions and 6680 deletions

View File

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