From 47b99a28bade04638ed083df017320480d7b4e5d Mon Sep 17 00:00:00 2001 From: zyl Date: Thu, 4 Jul 2024 12:58:07 -0700 Subject: [PATCH] fix advance button being there when it shouldn't! --- site/root/js/pet.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/site/root/js/pet.js b/site/root/js/pet.js index 931f4ea..b8f6ba3 100644 --- a/site/root/js/pet.js +++ b/site/root/js/pet.js @@ -253,6 +253,9 @@ statusMessy2.classList.add("hidden"); statusMessy3.classList.add("hidden"); + adultInfo.classList.add("hidden"); + elderInfo.classList.add("hidden"); + let width = 0; let height = 0; @@ -510,8 +513,10 @@ }); const advance = () => { + console.log(pet); pet.needsAdvancement = false; pet.updateDom(); + console.log(pet); }; for (let btn of document.querySelectorAll("button.advance")) { btn.addEventListener("click", advance);