Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alfakhori
M4labplatform
Commits
e4c7ce8b
Commit
e4c7ce8b
authored
Nov 03, 2020
by
Patrick
Browse files
index.html, History.md und 7 weitere dateien aktualisiert...
parent
4f048d21
Changes
2
Hide whitespace changes
Inline
Side-by-side
vcm/index.html
View file @
e4c7ce8b
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
<!-- Drop down menu starts here -->
<!-- Drop down menu starts here -->
<div
class=
"dropdown hidden"
id=
"dropdownMain"
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"
id=
"dropdownContent"
>
<button
class=
"accordion"
>
Kartenauswahl
</button>
<button
class=
"accordion"
>
Kartenauswahl
</button>
<div
class=
"sub-menu"
>
<div
class=
"sub-menu"
>
<!-- <a href="#" onclick="">Luftbilder</a> -->
<!-- <a href="#" onclick="">Luftbilder</a> -->
...
...
vcm/templates/cus_Menu.js
View file @
e4c7ce8b
...
@@ -21,4 +21,16 @@ document.addEventListener('touchstart', function addtouchclass(e){ // first time
...
@@ -21,4 +21,16 @@ document.addEventListener('touchstart', function addtouchclass(e){ // first time
var
drop
=
document
.
getElementById
(
"
dropdownMain
"
)
var
drop
=
document
.
getElementById
(
"
dropdownMain
"
)
drop
.
classList
.
add
(
'
can-touch
'
)
// add "can-touch" class to document root using classList API
drop
.
classList
.
add
(
'
can-touch
'
)
// add "can-touch" class to document root using classList API
document
.
removeEventListener
(
'
touchstart
'
,
addtouchclass
,
false
)
// de-register touchstart event
document
.
removeEventListener
(
'
touchstart
'
,
addtouchclass
,
false
)
// de-register touchstart event
},
false
)
},
false
)
\ No newline at end of file
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment