Skip to content

Commit 74f6ff3

Browse files
committed
feat: obfuscate splash text
1 parent 7b6d59f commit 74f6ff3

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

static/assets/js/home.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,20 @@ const SplashT = [
6161
let SplashI = Math.floor(Math.random() * SplashT.length);
6262
const SplashE = document.getElementById("splash");
6363

64+
const laceSplash = window.laceTitle || (s => s);
65+
function paintSplash() {
66+
SplashE.innerText = laceSplash(SplashT[SplashI]);
67+
}
68+
6469
function US() {
6570
SplashI = (SplashI + 1) % SplashT.length;
66-
SplashE.innerText = SplashT[SplashI];
71+
paintSplash();
6772
SplashE.style.animation = "none";
6873
void SplashE.offsetWidth;
6974
SplashE.style.animation = "";
7075
}
7176

72-
SplashE.innerText = SplashT[SplashI];
77+
paintSplash();
7378
SplashE.addEventListener("click", US);
7479

7580
function getRandomUrl() {

0 commit comments

Comments
 (0)