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 @@ ...@@ -165,7 +165,7 @@
</div> </div>
<div class="title-box vcm_copyright_headerTitle"></div> <div class="title-box vcm_copyright_headerTitle"></div>
<!-- Drop down menu starts here --> <!-- 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> <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">
<button class="accordion">Kartenauswahl</button> <button class="accordion">Kartenauswahl</button>
......
...@@ -68,9 +68,13 @@ ...@@ -68,9 +68,13 @@
} }
/* Show the dropdown menu on hover */ /* Show the dropdown menu on hover */
.dropdown:hover .dropdown:active .dropdown-content { .dropdown:hover .dropdown-content {
display: block; display: block;
} }
#dropdownMenu{ #dropdownMenu{
cursor: pointer; cursor: pointer;
} }
.can-touch .dropdown-content{
display: block;
}
\ No newline at end of file
...@@ -16,3 +16,9 @@ function nordbahnview(){ ...@@ -16,3 +16,9 @@ function nordbahnview(){
var viewp = vcs.vcm.Framework.getInstance().viewpoints.NordBView var viewp = vcs.vcm.Framework.getInstance().viewpoints.NordBView
vcs.vcm.Framework.getInstance().getActiveMap().gotoViewPoint(viewp); vcs.vcm.Framework.getInstance().getActiveMap().gotoViewPoint(viewp);
} }
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