Signed-off-by: K1 <git@karoh.net>
This commit is contained in:
parent
3acd0398e9
commit
ae0497c4c5
2 changed files with 6 additions and 2 deletions
4
dve.css
4
dve.css
|
|
@ -10,6 +10,10 @@ html, body {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
}
|
}
|
||||||
|
#container[data-count="1"] {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
grid-template-rows: 1fr;
|
||||||
|
}
|
||||||
#container[data-count="2"] {
|
#container[data-count="2"] {
|
||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
grid-template-rows: 1fr;
|
grid-template-rows: 1fr;
|
||||||
|
|
|
||||||
4
dve.js
4
dve.js
|
|
@ -6,7 +6,7 @@ const json_files = [
|
||||||
|
|
||||||
const center = [50.08804, 14.42076];
|
const center = [50.08804, 14.42076];
|
||||||
const zoom = 14;
|
const zoom = 14;
|
||||||
const mapCounts = [2, 4, 6, 9];
|
const mapCounts = [1, 2, 4, 6, 9];
|
||||||
|
|
||||||
let syncing = false;
|
let syncing = false;
|
||||||
let urlUpdateTimer = null;
|
let urlUpdateTimer = null;
|
||||||
|
|
@ -138,7 +138,7 @@ function fillMapCountDropdown(select) {
|
||||||
mapCounts.forEach(count => {
|
mapCounts.forEach(count => {
|
||||||
const opt = document.createElement("option");
|
const opt = document.createElement("option");
|
||||||
opt.value = count;
|
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);
|
select.appendChild(opt);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue