selecting more compatible icons
This commit is contained in:
@@ -19,6 +19,10 @@ function hidetoggle(name) {
|
|||||||
} else {
|
} else {
|
||||||
document.getElementById(name).style.display='inline-block';
|
document.getElementById(name).style.display='inline-block';
|
||||||
}
|
}
|
||||||
|
hideOthers(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
function hideOthers(name) {
|
||||||
var allElements = document.getElementsByTagName("*");
|
var allElements = document.getElementsByTagName("*");
|
||||||
for (var i = 0, n = allElements.length; i < n; ++i) {
|
for (var i = 0, n = allElements.length; i < n; ++i) {
|
||||||
var el = allElements[i];
|
var el = allElements[i];
|
||||||
@@ -30,6 +34,7 @@ function hidetoggle(name) {
|
|||||||
}
|
}
|
||||||
function dropDown(name) {
|
function dropDown(name) {
|
||||||
document.getElementById(name).classList.toggle("show");
|
document.getElementById(name).classList.toggle("show");
|
||||||
|
hideOthers('foo');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close the dropdown menu if the user clicks outside of it
|
// Close the dropdown menu if the user clicks outside of it
|
||||||
|
|||||||
@@ -20,17 +20,17 @@
|
|||||||
<p onclick="dropDown('userAct')" class="dropbtn">⊆⊇</p>
|
<p onclick="dropDown('userAct')" class="dropbtn">⊆⊇</p>
|
||||||
<div id="userAct" class="dropdown-content">
|
<div id="userAct" class="dropdown-content">
|
||||||
<a href="#" onclick="reload();">↻ Reload</a>
|
<a href="#" onclick="reload();">↻ Reload</a>
|
||||||
<a href="{{ url_for('profile') }}">☺ Profile</a>
|
<a href="{{ url_for('profile') }}">♙ Profile</a>
|
||||||
<a href="{{ url_for('logout') }}">➲ Logout</a>
|
<a href="{{ url_for('logout') }}">➲ Logout</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if shop %}
|
{% if shop %}
|
||||||
<span class="hspacer"></span>
|
<span class="hspacer"></span>
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<p onclick="dropDown('shopAct')" class="dropbtn">⚙⚒</p>
|
<p onclick="dropDown('shopAct')" class="dropbtn">☝☔</p>
|
||||||
<div id="shopAct" class="dropdown-content">
|
<div id="shopAct" class="dropdown-content">
|
||||||
<a id="h2_edit" onclick="hidetoggle('disp_edit');growTextarea('edit_md');" class=pointer>✎ Edit items</a>
|
<a id="h2_edit" onclick="hidetoggle('disp_edit');growTextarea('edit_md');" class=pointer>✎ Edit items</a>
|
||||||
<a id="h2_share" onclick="hidetoggle('disp_share')" class=pointer>☺ Share shop</a>
|
<a id="h2_share" onclick="hidetoggle('disp_share')" class=pointer>♟ Share shop</a>
|
||||||
<a id="h2_restore" onclick="hidetoggle('disp_restore')" class=pointer>♻ Restore backup</a>
|
<a id="h2_restore" onclick="hidetoggle('disp_restore')" class=pointer>♻ Restore backup</a>
|
||||||
<a id="h2_delete" onclick="hidetoggle('disp_delete')" class=pointer>⊗ Delete shop</a>
|
<a id="h2_delete" onclick="hidetoggle('disp_delete')" class=pointer>⊗ Delete shop</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user