option for 1 map only
All checks were successful
Deploy / deploy (push) Successful in 1s

Signed-off-by: K1 <git@karoh.net>
This commit is contained in:
K1 2026-05-03 12:44:18 +02:00
parent 3acd0398e9
commit ae0497c4c5
2 changed files with 6 additions and 2 deletions

View file

@ -10,6 +10,10 @@ html, body {
height: 100vh;
width: 100vw;
}
#container[data-count="1"] {
grid-template-columns: 1fr;
grid-template-rows: 1fr;
}
#container[data-count="2"] {
grid-template-columns: repeat(2, 1fr);
grid-template-rows: 1fr;

4
dve.js
View file

@ -6,7 +6,7 @@ const json_files = [
const center = [50.08804, 14.42076];
const zoom = 14;
const mapCounts = [2, 4, 6, 9];
const mapCounts = [1, 2, 4, 6, 9];
let syncing = false;
let urlUpdateTimer = null;
@ -138,7 +138,7 @@ function fillMapCountDropdown(select) {
mapCounts.forEach(count => {
const opt = document.createElement("option");
opt.value = count;
opt.textContent = count + (count === 2 || count === 4 ? " mapy" : " map");
opt.textContent = count + (count === 1 ? " mapa" : count === 2 || count === 4 ? " mapy" : " map");
select.appendChild(opt);
});
}