From f300ae8b5211867e5c96fe447418239e221f5618 Mon Sep 17 00:00:00 2001 From: James <9213561+Gensokian@users.noreply.github.com> Date: Mon, 26 Sep 2022 15:24:38 +0200 Subject: [PATCH] Update index.php --- index.php | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/index.php b/index.php index cadee1e..4d9d99f 100644 --- a/index.php +++ b/index.php @@ -210,9 +210,9 @@ -
+
- Health definition + Health Rolls How many Dice are used for the calculation?
@@ -224,6 +224,7 @@
+ Health Averages
What's the average HP of the Enemy?
@@ -232,6 +233,7 @@
+ Health Maxes
What's the max rolled HP of all enemies?
@@ -986,28 +988,35 @@ function usingHPDice(e) { if (e) { - $("#HP_max").hide("fast"); - $("#HP_average").hide("fast"); + $("#HP_max_card").hide("fast"); + $("#HP_average_card").hide("fast"); + $("#HP_hitdice_card").show("fast"); + + $("#mob_hp_avg").val(""); $("#mob_hp_dice_ammount").val(""); $("#mob_hp_dice_type").val(""); - $("#HP_hitdice").show("fast"); $("#mob_hp_max").val(""); - } else if (e == false) { - $("#HP_max").hide("fast"); - $("#HP_hitdice").hide("fast"); - $("#mob_hp_avg").val(""); - $("#HP_average").show("fast"); - $("#mob_hp_max").val(""); - } else if (e == "max") { - console.log("hello"); - $("#HP_average").hide("fast"); - $("#HP_hitdice").hide("fast"); - $("#HP_max").show("fast"); + } else if (e == false) { + $("#HP_max_card").hide("fast"); + $("#HP_hitdice_card").hide("fast"); + $("#HP_average_card").show("fast"); + $("#mob_hp_avg").val(""); $("#mob_hp_dice_ammount").val(""); $("#mob_hp_dice_type").val(""); + $("#mob_hp_max").val(""); + } else if (e == "max") { + + $("#HP_max_card").show("fast"); + $("#HP_hitdice_card").hide("fast"); + $("#HP_average_card").hide("fast"); + + $("#mob_hp_avg").val(""); + $("#mob_hp_dice_ammount").val(""); + $("#mob_hp_dice_type").val(""); + $("#mob_hp_max").val(""); } calcDiff(); }