diff options
author | Chris Xiong <chirs241097@gmail.com> | 2024-08-09 21:29:42 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2024-08-09 21:29:42 -0400 |
commit | 0c9d727aefeee5efd16684b7beabdf30112f924d (patch) | |
tree | c00d6966c9b3b436eab6bd0dd988fa0f4f726752 /panel.js | |
parent | 3f0eec9bb4afcb2215f91ee5161d02428cee3e80 (diff) | |
download | web-0c9d727aefeee5efd16684b7beabdf30112f924d.tar.xz |
Use a slightly less dumb way to display the toggle indicator.
Diffstat (limited to 'panel.js')
-rw-r--r-- | panel.js | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -51,13 +51,10 @@ function unsetevents() p.onmouseenter=undefined; p.onmouseleave=undefined; p.style.left=null; - if (!p.classList.contains("collapsed")) - document.getElementById("paneltoggle").innerHTML="«"; } function togglepanel() { let c = document.getElementById("panel").classList.toggle("collapsed"); if (c) document.getElementById("content").classList.add("expanded"); else document.getElementById("content").classList.remove("expanded"); - document.getElementById("paneltoggle").innerHTML=c?"»":"«"; } |