Changed allowed zone difficulty to 15-30.

This commit is contained in:
Revertron
2021-04-02 03:26:36 +02:00
parent e1d0df33d5
commit aa54e9fab6
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -128,7 +128,7 @@
</span>
</div>
<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">
<i class="fas fa-fire"></i>
</span>
+2 -2
View File
@@ -206,7 +206,7 @@ function onZoneChange() {
var diff = document.getElementById("new_zone_difficulty");
d = parseInt(diff.value);
// Checking for NaN first
if (d != d || d < 20 || d > 50) {
if (d != d || d < 15 || d > 30) {
button.disabled = true;
diff.className = "input is-danger";
} else {
@@ -225,7 +225,7 @@ function zoneAvailable(available) {
var diff = document.getElementById("new_zone_difficulty");
d = parseInt(diff.value);
// Checking for NaN first
if (d != d || d < 20 || d > 50) {
if (d != d || d < 15 || d > 30) {
button.disabled = true;
diff.className = "input is-danger";
}