There was an error while loading. Please reload this page.
1 parent 7b6d59f commit 74f6ff3Copy full SHA for 74f6ff3
1 file changed
static/assets/js/home.js
@@ -61,15 +61,20 @@ const SplashT = [
61
let SplashI = Math.floor(Math.random() * SplashT.length);
62
const SplashE = document.getElementById("splash");
63
64
+const laceSplash = window.laceTitle || (s => s);
65
+function paintSplash() {
66
+ SplashE.innerText = laceSplash(SplashT[SplashI]);
67
+}
68
+
69
function US() {
70
SplashI = (SplashI + 1) % SplashT.length;
- SplashE.innerText = SplashT[SplashI];
71
+ paintSplash();
72
SplashE.style.animation = "none";
73
void SplashE.offsetWidth;
74
SplashE.style.animation = "";
75
}
76
-SplashE.innerText = SplashT[SplashI];
77
+paintSplash();
78
SplashE.addEventListener("click", US);
79
80
function getRandomUrl() {
0 commit comments