selecting more compatible icons

This commit is contained in:
ville rantanen
2016-07-04 21:44:27 +03:00
parent a92d1fb16a
commit ab7798a290
2 changed files with 8 additions and 3 deletions

View File

@@ -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