Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
agb@immerda.ch
ipick
Commits
010fae9e
Commit
010fae9e
authored
Mar 28, 2020
by
o@immerda.ch
Browse files
add feature to use external buttons for opening the menu
parent
4536ed54
Changes
1
Show whitespace changes
Inline
Side-by-side
ipick.js
View file @
010fae9e
...
...
@@ -140,6 +140,11 @@
toggle
.
appendChild
(
image
);
menu
.
appendChild
(
toggle
);
// search for external menu triggers
var
trgs
=
document
.
getElementsByClassName
(
"
ipick-trigger-button
"
);
for
(
var
i
in
trgs
)
trgs
[
i
].
onclick
=
openMenu
;
// add menu to the dom
document
.
body
.
appendChild
(
menu
);
document
.
body
.
appendChild
(
backdrop
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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