]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/wiki/wiki-contents.js
editors.cudatext: cleanup using
[factor.git] / extra / webapps / wiki / wiki-contents.js
1 function toggleSidebar() {
2     var l = document.getElementById("left");
3     var m = document.getElementById("menu");
4     if (l.style.display === "") {
5         l.style.display = "inline";
6         var darkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
7         if (!darkMode) {
8             m.style.backgroundColor = "#f3f2ea";
9         }
10     } else {
11         l.style.display = "";
12         m.style.backgroundColor = "";
13     }
14 }