summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorUser Mms <mms@voyager.local>2024-10-19 23:39:50 +0200
committerUser Mms <mms@voyager.local>2024-10-19 23:39:50 +0200
commitea5367066b89053a4e32ba0df5905fbe358e699b (patch)
treef7aab9f2e82b6bf9b5f805aaf52d6fbddeac49da /layouts
parent84b53106a7e0e8041925e4eac098e25cb8e8cd3a (diff)
feat: flame on
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/blog/face-game.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/layouts/partials/blog/face-game.html b/layouts/partials/blog/face-game.html
index df54451..714ceff 100644
--- a/layouts/partials/blog/face-game.html
+++ b/layouts/partials/blog/face-game.html
@@ -105,6 +105,7 @@
let inAnimation = false;
const faceImg = document.getElementById('face');
+ const faceBg = document.getElementById('faceBg');
document.addEventListener('DOMContentLoaded', function() {
const moneyLink = document.getElementById('moneyLink');
@@ -133,13 +134,13 @@
updateState();
if(state !== "state3") {
- document.body.style.background = "#ff0000";
+ faceBg.style.background = "#ff0000";
state = "state5";
updateFace(getStateFaces().front);
setTimeout(
() => {
- document.body.style.background = null
+ faceBg.style.background = null
}, 10)
if(!inAnimation) {
@@ -154,7 +155,7 @@
}
else {
- document.body.style.background = "#000";
+ faceBg.style.background = "#000";
}
console.log(`state: ${state}; health: ${health}`);