Changed allowed zone difficulty to 15-30.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user