add noscript to the pet me counter and make noscript on the virtual pet bigger

This commit is contained in:
zyl 2024-10-10 11:10:38 -07:00
parent 4ed52b0a35
commit e20d28bc4d
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
4 changed files with 22 additions and 15 deletions

View file

@ -9,7 +9,7 @@ embed:
---
<div id="pet">
<noscript><p>javascript is required for the pet game!!</p></noscript>
<noscript><h1>javascript is required for the pet game!!</h1></noscript>
<div id="pet-display">
<h2 class="pet-name"></h2>
<div class="the-pet"></div>

View file

@ -6,6 +6,7 @@
: "https://cf.zyllian.workers.dev/api/pet";
const petCounter = document.querySelector("#pet-counter");
const internal = petCounter.querySelector(".internal");
const count = petCounter.querySelector(".count");
const petButton = petCounter.querySelector("button");
@ -24,5 +25,5 @@
}
});
petCounter.style.display = "block";
internal.style.display = "block";
})();

View file

@ -191,8 +191,11 @@ abbr {
}
#pet-counter {
display: none;
position: fixed;
bottom: 4px;
right: 4px;
.internal {
display: none;
}
}

View file

@ -36,9 +36,12 @@
</div>
<div id="pet-counter">
<noscript>enable js to pet me :3</noscript>
<div class="internal">
<span class="count">???</span> pets
<button>pet me :3</button>
</div>
</div>
</body>
</html>