Update index.php

This commit is contained in:
James 2022-09-26 13:53:40 +02:00
parent 9a296088d5
commit d55929e7cf

View File

@ -35,6 +35,7 @@
<li class="tab col s3"><a href="#Party">Party Setup</a></li>
<li class="tab col s3"><a class="active" href="#Mobconfig">Mob Configuration</a></li>
<li class="tab col s3"><a href="#Results">Results</a></li>
<li class="tab col s3"><a href="#Bonus">Bonus Information</a></li>
</ul>
</div>
<div id="Party" class="col s12">
@ -779,32 +780,34 @@
</div>
</div>
</div>
<div class="row">
<div class="col s12">
<div class="card black">
<div class="card-content white-text">
<span class="card-title">[DEBUG] Set the current status! [DEBUG]</span> <br />
<label> <input name="debug_diff" type="radio" checked onchange="calcDiff()" /> <span>Calculation</span> </label>
<label> <input name="debug_diff" type="radio" onchange="setDiff('easy')" /> <span>Easy</span> </label>
<label> <input name="debug_diff" type="radio" onchange="setDiff('medium')" /> <span>Medium</span> </label>
<label> <input name="debug_diff" type="radio" onchange="setDiff('hard')" /> <span>Hard</span> </label>
<label> <input name="debug_diff" type="radio" onchange="setDiff('lunatic')" /> <span>Deadly</span> </label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col s12">
<div class="card black">
<div class="card-content white-text">
<span class="card-title"> Do you intend to wipe the party?</span> <label> <input name="danger" type="radio" checked /> <span>Yes</span> </label> <br />
<label>
<input name="danger" type="radio" /> <span class="red-text"> <b>Yes, but in red</b> </span>
</label>
</div>
</div>
</div>
</div>
</div>
<div id="Bonus" class="col s12">
<div class="row">
<div class="col s12">
<div class="card black">
<div class="card-content white-text">
<span class="card-title">[DEBUG] Set the current status! [DEBUG]</span> <br />
<label> <input name="debug_diff" type="radio" checked onchange="calcDiff()" /> <span>Calculation</span> </label>
<label> <input name="debug_diff" type="radio" onchange="setDiff('easy')" /> <span>Easy</span> </label>
<label> <input name="debug_diff" type="radio" onchange="setDiff('medium')" /> <span>Medium</span> </label>
<label> <input name="debug_diff" type="radio" onchange="setDiff('hard')" /> <span>Hard</span> </label>
<label> <input name="debug_diff" type="radio" onchange="setDiff('lunatic')" /> <span>Deadly</span> </label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col s12">
<div class="card black">
<div class="card-content white-text">
<span class="card-title"> Do you intend to wipe the party?</span> <label> <input name="danger" type="radio" checked /> <span>Yes</span> </label> <br />
<label>
<input name="danger" type="radio" /> <span class="red-text"> <b>Yes, but in red</b> </span>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
@ -812,6 +815,7 @@
</div>
</div>
</div>
<!-- START COLLECTION! -->
<div class="col s12 l2">
<div class="blurry">
<div class="card white">
@ -989,7 +993,15 @@
$("#diff_image").attr("src", "img/notfound.jpg");
$("#diff_description").html("I was unable to find a calculation with those parameters.... or any programming at all... give me some time, i'm still working on this app, after all.");
$("#diff_summary").html("#err_notfound");
}
function setDiff(difficulty) {
$("#diff_image").attr("src", "img/diff_" + difficulty.substring(3, 0) + ".jpg");
switch (difficulty) {