selecting more compatible icons
This commit is contained in:
@@ -19,6 +19,10 @@ function hidetoggle(name) {
|
||||
} else {
|
||||
document.getElementById(name).style.display='inline-block';
|
||||
}
|
||||
hideOthers(name);
|
||||
}
|
||||
|
||||
function hideOthers(name) {
|
||||
var allElements = document.getElementsByTagName("*");
|
||||
for (var i = 0, n = allElements.length; i < n; ++i) {
|
||||
var el = allElements[i];
|
||||
@@ -30,6 +34,7 @@ function hidetoggle(name) {
|
||||
}
|
||||
function dropDown(name) {
|
||||
document.getElementById(name).classList.toggle("show");
|
||||
hideOthers('foo');
|
||||
}
|
||||
|
||||
// Close the dropdown menu if the user clicks outside of it
|
||||
|
||||
Reference in New Issue
Block a user