fixed logic
This commit is contained in:
parent
07e4e7efa6
commit
59ec0c4022
12
index.php
12
index.php
@ -205,8 +205,8 @@
|
||||
<div class="card-content white-text">
|
||||
<span class="card-title">Health kind</span>
|
||||
<span>Are we using Average Health or HP Dice?</span><br />
|
||||
<label> <input id="mob_hp_type_averages" name="mob_hp_type" type="radio" checked onchange="usingHPDice(true)" /> <span>Averages</span> </label>
|
||||
<label> <input id="mob_hp_type_rolled" name="mob_hp_type" type="radio" onchange="usingHPDice(false)" /> <span>Hit Dice</span> </label>
|
||||
<label> <input id="mob_hp_type_averages" name="mob_hp_type" type="radio" checked onchange="usingHPDice(false)" /> <span>Averages</span> </label>
|
||||
<label> <input id="mob_hp_type_rolled" name="mob_hp_type" type="radio" onchange="usingHPDice(true)" /> <span>Hit Dice</span> </label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card black">
|
||||
@ -970,14 +970,14 @@
|
||||
|
||||
function usingHPDice(e) {
|
||||
if (e) {
|
||||
$("#HP_hitdice").hide("fast");
|
||||
$("#mob_hp_avg").val("");
|
||||
$("#HP_average").show("fast");
|
||||
} else {
|
||||
$("#HP_average").hide("fast");
|
||||
$("#mob_hp_dice_ammount").val("");
|
||||
$("#mob_hp_dice_type").val("");
|
||||
$("#HP_hitdice").show("fast");
|
||||
} else {
|
||||
$("#HP_hitdice").hide("fast");
|
||||
$("#mob_hp_avg").val("");
|
||||
$("#HP_average").show("fast");
|
||||
}
|
||||
calcDiff();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user