diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2024-01-31 23:49:27 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2024-01-31 23:56:52 +0100 |
commit | 2dda892451fdc6cab3d4c8f394c597cb957f9e12 (patch) | |
tree | cd1995bad5ec9fb7df9e6f2f3a67af7e0ad7d415 /main.js | |
parent | 672c48dba68da16b6698673a47f8d7488f5f9dbd (diff) |
CSS: Improve rules for mobile devices.
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -247,7 +247,7 @@ if (window.location !== window.parent.location) { } /* layer selection button and legend */ -(function() { +if (window.location === window.parent.location) { const btn = (function() { const div = document.createElement('div'); menu.appendChild(div); @@ -321,10 +321,10 @@ if (window.location !== window.parent.location) { btn2.classList.replace('btn-light', 'btn-dark'); } }; -})(); +} /* fullscreen control */ -(function() { +if (window.location === window.parent.location) { const label = document.createElement('i'); label.classList.add('bi', 'bi-fullscreen'); @@ -385,10 +385,10 @@ if (window.location !== window.parent.location) { exp.classList.remove('d-none'); } }) -})(); +} /* export/download button */ -(function() { +if (window.location === window.parent.location) { const div = document.createElement('div'); div.classList.add('ol-unselectable', 'ol-control'); div.id = 'export-to-image'; @@ -436,7 +436,7 @@ if (window.location !== window.parent.location) { map.renderSync(); }; -})(); +} /* info button */ (function() { |