feat: started with bonus hp feature
This commit is contained in:
@@ -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;
|
||||
// }
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user