2024-11-16 12:01:58 +01:00
|
|
|
$(document).ready(function () {
|
|
|
|
var map_list = [];
|
|
|
|
|
|
|
|
function update_maps() {
|
2024-11-16 12:26:19 +01:00
|
|
|
|
|
|
|
console.log(`reseting maps`);
|
|
|
|
|
2024-11-16 12:01:58 +01:00
|
|
|
map_list = [];
|
|
|
|
map_list.push("cs_italy");
|
|
|
|
map_list.push("cs_office");
|
|
|
|
map_list.push("de_ancient");
|
|
|
|
map_list.push("de_anubis");
|
|
|
|
map_list.push("de_assembly");
|
|
|
|
map_list.push("de_dust2");
|
|
|
|
map_list.push("de_inferno");
|
|
|
|
map_list.push("de_memento");
|
|
|
|
map_list.push("de_mills");
|
|
|
|
map_list.push("de_mirage");
|
|
|
|
map_list.push("de_nuke");
|
|
|
|
map_list.push("de_overpass");
|
|
|
|
map_list.push("de_thera");
|
|
|
|
map_list.push("de_vertigo");
|
2024-11-16 12:17:41 +01:00
|
|
|
|
|
|
|
$('#map').empty();
|
|
|
|
|
|
|
|
for (var i = 0; i < map_list.length; i++) {
|
|
|
|
const opt = '<option value="' + map_list[i] + '">' + map_list[i] + '</option>'
|
|
|
|
$('#map').append(opt);
|
2024-11-16 12:26:19 +01:00
|
|
|
console.log(`adding ` + map_list[i]);
|
2024-11-16 12:17:41 +01:00
|
|
|
}
|
2024-11-16 12:01:58 +01:00
|
|
|
}
|
|
|
|
});
|