summaryrefslogtreecommitdiff
path: root/panel.js
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2024-08-09 21:29:42 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2024-08-09 21:29:42 -0400
commit0c9d727aefeee5efd16684b7beabdf30112f924d (patch)
treec00d6966c9b3b436eab6bd0dd988fa0f4f726752 /panel.js
parent3f0eec9bb4afcb2215f91ee5161d02428cee3e80 (diff)
downloadweb-0c9d727aefeee5efd16684b7beabdf30112f924d.tar.xz
Use a slightly less dumb way to display the toggle indicator.
Diffstat (limited to 'panel.js')
-rw-r--r--panel.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/panel.js b/panel.js
index 13444af..4136170 100644
--- a/panel.js
+++ b/panel.js
@@ -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?"»":"«";
}