diff --git a/dve.css b/dve.css index 5876ad9..27874c9 100644 --- a/dve.css +++ b/dve.css @@ -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; diff --git a/dve.js b/dve.js index 936bbcb..4c99de8 100644 --- a/dve.js +++ b/dve.js @@ -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); }); }