diff --git a/_layouts/default.html b/_layouts/default.html index 4b22e49..5c76c9f 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -40,7 +40,7 @@ - + diff --git a/main.css b/main.css index 4c08995..765415e 100644 --- a/main.css +++ b/main.css @@ -224,6 +224,7 @@ body:not(.sidebar-opened) > #sider-outer > #sider > img { right: 0px; top: 50%; width: 20px; + z-index: 100000000000; } .hidden { diff --git a/main.js b/main.js index 420b7f2..a4b9060 100644 --- a/main.js +++ b/main.js @@ -6,6 +6,7 @@ if (window.location.hash == "#TCAS_sc1") { left: 0, behavior: "smooth" }); + sidebar_off(); } else if (window.location.hash.startsWith("#TCAS_fya:")) { document.getElementById("content").innerHTML = "

" + decodeURI(window.location.hash.substring(10)) + "

"; @@ -205,6 +206,6 @@ function toggle_sidebar() { } function sidebar_off() { - //document.body.classList.remove("sidebar-opened"); - //el.src = "res/arrow-none.svg"; + document.body.classList.remove("sidebar-opened"); + document.querySelector("#sider > img").src = "res/arrow-right.svg"; } \ No newline at end of file