Commit e4c7ce8b authored by Patrick's avatar Patrick
Browse files

index.html, History.md und 7 weitere dateien aktualisiert...

parent 4f048d21
......@@ -167,7 +167,7 @@
<!-- Drop down menu starts here -->
<div class="dropdown hidden" id="dropdownMain" style="float: right; right:20px">
<i class="fa fa-bars" id="dropdownMenu" style="font-size:1.8rem;color: white !important; margin-top:1rem;"></i>
<div class="dropdown-content">
<div class="dropdown-content" id="dropdownContent">
<button class="accordion">Kartenauswahl</button>
<div class="sub-menu">
<!-- <a href="#" onclick="">Luftbilder</a> -->
......
......@@ -21,4 +21,16 @@ document.addEventListener('touchstart', function addtouchclass(e){ // first time
var drop = document.getElementById("dropdownMain")
drop.classList.add('can-touch') // add "can-touch" class to document root using classList API
document.removeEventListener('touchstart', addtouchclass, false) // de-register touchstart event
}, false)
\ No newline at end of file
}, false)
var dropD = document.getElementById("dropdownMain")
var dropC = document.getElementById("dropdownContent")
dropD.onclick = function(){
if (dropD.className == "can-touch"){
if (dropC.style.display === "none"){
dropC.style.display = "block";
} else if (dropC.style.display === "block"){
dropC.style.display = "none";
}
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment