Commit b596a639 authored by Patrick's avatar Patrick
Browse files

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

parent b61c1020
......@@ -165,7 +165,7 @@
</div>
<div class="title-box vcm_copyright_headerTitle"></div>
<!-- Drop down menu starts here -->
<div class="dropdown hidden" style="float: right; right:20px">
<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">
<button class="accordion">Kartenauswahl</button>
......
......@@ -68,9 +68,13 @@
}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown:active .dropdown-content {
.dropdown:hover .dropdown-content {
display: block;
}
#dropdownMenu{
cursor: pointer;
}
.can-touch .dropdown-content{
display: block;
}
\ No newline at end of file
......@@ -15,4 +15,10 @@ var acc = document.getElementsByClassName("accordion");
function nordbahnview(){
var viewp = vcs.vcm.Framework.getInstance().viewpoints.NordBView
vcs.vcm.Framework.getInstance().getActiveMap().gotoViewPoint(viewp);
}
\ No newline at end of file
}
document.addEventListener('touchstart', function addtouchclass(e){ // first time user touches the screen
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
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