feat: started with bonus hp feature

This commit is contained in:
Itsigo
2024-09-01 18:31:01 +02:00
parent dd548e36a3
commit 1d4c46214c
6 changed files with 218 additions and 72 deletions

View File

@@ -19,6 +19,13 @@ document.addEventListener("DOMContentLoaded", (event) => {
var savingthrow = document.getElementById("savingthrow");
savingthrow.checked = false;
var bonushp = document.getElementById("bonushp");
var bonusInput = document.getElementById("bonusInput");
bonusInput.classList.add("hidden");
bonusInput.disabled = true;
bonusInput.value = "";
bonushp.checked = false;
});
document.body.addEventListener("ManaUpdated", function() {
@@ -71,3 +78,16 @@ function setTheme(theme) {
localStorage.setItem(atr, theme)
}
// round toggle
//function toggleRounds() {
// let box = document.getElementById("bonushp");
// let inp = document.getElementById("bonusInput");
// if (box.checked == true) {
// inp.classList.remove("hidden");
// inp.disabled = false;
// } else {
// inp.classList.add("hidden");
// inp.disabled = true;
// }
//}