simplify
This commit is contained in:
parent
477b6dafd5
commit
16b78150a8
@ -219,14 +219,8 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
$('#game').on('change', function () {
|
$('#game').on('change', function () {
|
||||||
var map_list = [];
|
var map_list = [];
|
||||||
|
|
||||||
console.log(`reseting maps`);
|
|
||||||
|
|
||||||
var e = document.getElementById("game");
|
var e = document.getElementById("game");
|
||||||
|
if (e.value == "1" || e.value == "2" || e.value == "3" || e.value == "4") { // casual or competitive
|
||||||
console.log(`checking ` + e.value);
|
|
||||||
|
|
||||||
if (e.value == "1") {
|
|
||||||
map_list.push("cs_italy");
|
map_list.push("cs_italy");
|
||||||
map_list.push("cs_office");
|
map_list.push("cs_office");
|
||||||
map_list.push("de_ancient");
|
map_list.push("de_ancient");
|
||||||
@ -242,55 +236,7 @@ $(document).ready(function () {
|
|||||||
map_list.push("de_train");
|
map_list.push("de_train");
|
||||||
//map_list.push("de_thera");
|
//map_list.push("de_thera");
|
||||||
map_list.push("de_vertigo");
|
map_list.push("de_vertigo");
|
||||||
} else if (e.value == "2") {
|
} else if (e.value == "5") { // wingman
|
||||||
map_list.push("cs_italy");
|
|
||||||
map_list.push("cs_office");
|
|
||||||
map_list.push("de_ancient");
|
|
||||||
map_list.push("de_anubis");
|
|
||||||
map_list.push("de_basalt");
|
|
||||||
map_list.push("de_dust2");
|
|
||||||
map_list.push("de_edin");
|
|
||||||
map_list.push("de_inferno");
|
|
||||||
//map_list.push("de_mills");
|
|
||||||
map_list.push("de_mirage");
|
|
||||||
map_list.push("de_nuke");
|
|
||||||
map_list.push("de_overpass");
|
|
||||||
map_list.push("de_train");
|
|
||||||
//map_list.push("de_thera");
|
|
||||||
map_list.push("de_vertigo");
|
|
||||||
} else if (e.value == "3") {
|
|
||||||
map_list.push("cs_italy");
|
|
||||||
map_list.push("cs_office");
|
|
||||||
map_list.push("de_ancient");
|
|
||||||
map_list.push("de_anubis");
|
|
||||||
map_list.push("de_basalt");
|
|
||||||
map_list.push("de_dust2");
|
|
||||||
map_list.push("de_edin");
|
|
||||||
map_list.push("de_inferno");
|
|
||||||
//map_list.push("de_mills");
|
|
||||||
map_list.push("de_mirage");
|
|
||||||
map_list.push("de_nuke");
|
|
||||||
map_list.push("de_overpass");
|
|
||||||
map_list.push("de_train");
|
|
||||||
//map_list.push("de_thera");
|
|
||||||
map_list.push("de_vertigo");
|
|
||||||
} else if (e.value == "4") {
|
|
||||||
map_list.push("cs_italy");
|
|
||||||
map_list.push("cs_office");
|
|
||||||
map_list.push("de_ancient");
|
|
||||||
map_list.push("de_anubis");
|
|
||||||
map_list.push("de_basalt");
|
|
||||||
map_list.push("de_dust2");
|
|
||||||
map_list.push("de_edin");
|
|
||||||
map_list.push("de_inferno");
|
|
||||||
//map_list.push("de_mills");
|
|
||||||
map_list.push("de_mirage");
|
|
||||||
map_list.push("de_nuke");
|
|
||||||
map_list.push("de_overpass");
|
|
||||||
map_list.push("de_train");
|
|
||||||
//map_list.push("de_thera");
|
|
||||||
map_list.push("de_vertigo");
|
|
||||||
} else if (e.value == "5") {
|
|
||||||
//map_list.push("de_assembly");
|
//map_list.push("de_assembly");
|
||||||
map_list.push("de_inferno");
|
map_list.push("de_inferno");
|
||||||
//map_list.push("de_memento");
|
//map_list.push("de_memento");
|
||||||
|
@ -96,7 +96,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="game" class="form-label">Game Selection:</label>
|
<label for="game" class="form-label">Game Selection:</label>
|
||||||
<select id="game" name="game" class="form-select" onchange="update_maps(this.value)">
|
<select id="game" name="game" class="form-select">
|
||||||
<option value="1">Competitive Short</option>
|
<option value="1">Competitive Short</option>
|
||||||
<option value="2">Competitive Long</option>
|
<option value="2">Competitive Long</option>
|
||||||
<option value="3">Casual Short</option>
|
<option value="3">Casual Short</option>
|
||||||
|
Loading…
Reference in New Issue
Block a user