From 1a6a33355c1a5ce21cdd8a10ab24eb8f783ecbef Mon Sep 17 00:00:00 2001 From: Tor-Einar Skog <tor-einar.skog@nibio.no> Date: Tue, 1 Jul 2025 09:32:39 +0200 Subject: [PATCH] Remove legend toggler --- .../map_applications/fireblight/index.html | 25 ++----------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/src/main/webapp/map_applications/fireblight/index.html b/src/main/webapp/map_applications/fireblight/index.html index b56c3793..95ea264f 100755 --- a/src/main/webapp/map_applications/fireblight/index.html +++ b/src/main/webapp/map_applications/fireblight/index.html @@ -201,10 +201,6 @@ #legend { display: none; } - #legendToggler { - display: block; - } - } /* For finger pointing aka touch screen */ @@ -300,11 +296,7 @@ </select> </div> - <div id="legendContainer"> - <div id="legendToggler" style="display:none;"> - <button type="button" onclick="toggleLegendVisibility();">Toggle legend visibility</button> - </div> - <div id="legend"> + <div id="legend"> <h3>Registreringer</h3> <ul> <li class="bulk">Bulkemispel</li> @@ -337,8 +329,6 @@ <li class="utenforSone">Ingen tiltak</li> </ul> </div> - - </div> <!-- Bootstrap core JavaScript @@ -363,18 +353,7 @@ // Dette fordi vi må finne databaseId til pærebrann dynamisk først initPaerebrann(); }); - - function toggleLegendVisibility(){ - const legendDiv = document.getElementById("legend"); - if(legendDiv.style.display=="block") - { - legendDiv.style.display="none"; - } - else{ - legendDiv.style.display="block"; - } - } - + function showResults(inputField) { var phrase = inputField.value; -- GitLab