mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
fixed menu and moved variables so they are setup first and then all the others will have access to them
This commit is contained in:
parent
c82e0a69f7
commit
3a4779e102
5 changed files with 129 additions and 174 deletions
|
|
@ -3297,6 +3297,8 @@ function editBurg() {
|
|||
|
||||
// Toggle Options pane
|
||||
$("#optionsTrigger").on("click", function() {
|
||||
console.log("open menu")
|
||||
|
||||
if (tooltip.getAttribute("data-main") === "Сlick the arrow button to open options") {
|
||||
tooltip.setAttribute("data-main", "");
|
||||
tooltip.innerHTML = "";
|
||||
|
|
@ -3311,7 +3313,9 @@ function editBurg() {
|
|||
$("#options").fadeOut();
|
||||
$("#optionsTrigger").removeClass("icon-left-open").addClass("icon-right-open");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$("#collapsible").hover(function() {
|
||||
if ($("#optionsTrigger").hasClass("glow")) return;
|
||||
if ($("#options").css("display") === "none") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue