Skip to content
Snippets Groups Projects
Commit 1a6a3335 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Remove legend toggler

parent 37e26cfe
No related branches found
No related tags found
No related merge requests found
...@@ -201,10 +201,6 @@ ...@@ -201,10 +201,6 @@
#legend { #legend {
display: none; display: none;
} }
#legendToggler {
display: block;
}
} }
/* For finger pointing aka touch screen */ /* For finger pointing aka touch screen */
...@@ -300,11 +296,7 @@ ...@@ -300,11 +296,7 @@
</select> </select>
</div> </div>
<div id="legendContainer"> <div id="legend">
<div id="legendToggler" style="display:none;">
<button type="button" onclick="toggleLegendVisibility();">Toggle legend visibility</button>
</div>
<div id="legend">
<h3>Registreringer</h3> <h3>Registreringer</h3>
<ul> <ul>
<li class="bulk">Bulkemispel</li> <li class="bulk">Bulkemispel</li>
...@@ -337,8 +329,6 @@ ...@@ -337,8 +329,6 @@
<li class="utenforSone">Ingen tiltak</li> <li class="utenforSone">Ingen tiltak</li>
</ul> </ul>
</div> </div>
</div>
<!-- Bootstrap core JavaScript <!-- Bootstrap core JavaScript
...@@ -363,18 +353,7 @@ ...@@ -363,18 +353,7 @@
// Dette fordi vi må finne databaseId til pærebrann dynamisk først // Dette fordi vi må finne databaseId til pærebrann dynamisk først
initPaerebrann(); 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) function showResults(inputField)
{ {
var phrase = inputField.value; var phrase = inputField.value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment