feat: switch between map and list

This commit is contained in:
relikd
2024-07-22 20:35:55 +02:00
parent 968e46d3db
commit 63af94ab0d
3 changed files with 61 additions and 17 deletions

View File

@@ -115,6 +115,12 @@ function showNotice(id) {
return false;
}
function hideTab(tab) {
document.getElementById('map-container').classList.remove('hidden-tab');
document.getElementById('list-container').classList.remove('hidden-tab');
document.getElementById(tab + '-container').classList.add('hidden-tab');
}
// ---------------------
// Initializer
// ---------------------