Changed allowed zone difficulty to 15-30.

pull/13/head
Revertron 4 years ago
parent e1d0df33d5
commit aa54e9fab6

@ -128,7 +128,7 @@
</span> </span>
</div> </div>
<div class="control has-icons-left"> <div class="control has-icons-left">
<input class="input" type="number" placeholder="Difficulty: 20-28" id="new_zone_difficulty" name="Just a name" oninput="onZoneChange()"> <input class="input" type="number" placeholder="Difficulty: 15-30" id="new_zone_difficulty" name="Just a name" oninput="onZoneChange()">
<span class="icon is-small is-left"> <span class="icon is-small is-left">
<i class="fas fa-fire"></i> <i class="fas fa-fire"></i>
</span> </span>

@ -206,7 +206,7 @@ function onZoneChange() {
var diff = document.getElementById("new_zone_difficulty"); var diff = document.getElementById("new_zone_difficulty");
d = parseInt(diff.value); d = parseInt(diff.value);
// Checking for NaN first // Checking for NaN first
if (d != d || d < 20 || d > 50) { if (d != d || d < 15 || d > 30) {
button.disabled = true; button.disabled = true;
diff.className = "input is-danger"; diff.className = "input is-danger";
} else { } else {
@ -225,7 +225,7 @@ function zoneAvailable(available) {
var diff = document.getElementById("new_zone_difficulty"); var diff = document.getElementById("new_zone_difficulty");
d = parseInt(diff.value); d = parseInt(diff.value);
// Checking for NaN first // Checking for NaN first
if (d != d || d < 20 || d > 50) { if (d != d || d < 15 || d > 30) {
button.disabled = true; button.disabled = true;
diff.className = "input is-danger"; diff.className = "input is-danger";
} }

Loading…
Cancel
Save