Update reader.

This commit is contained in:
Bruce
2026-04-04 19:27:45 +08:00
parent f9f4db3f6c
commit bf54d5a531
22 changed files with 3405 additions and 21 deletions

View File

@@ -162,15 +162,16 @@
}
oldTags.push(k);
promises.push(
anime.runAsync(p.page, [
anime.Keyframes.Opacity.hidden
]).then((function(page, key) {
return function() {
page.style.display = "none";
page.style.opacity = 0;
emit("unload", key);
};
})(p.page, k))
(function(page, key) {
// 返回 anime.runAsync 产生的 Promise
return anime.runAsync(page, [anime.Keyframes.Opacity.hidden])
.then(function() {
page.style.display = "none";
page.style.opacity = 0;
page.style.height = 0;
emit("unload", key);
});
})(p.page, k)
);
p.guide.classList.remove("selected");
}