mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Add missing dark_theme.js (oops)
This commit is contained in:
parent
e9d4bff7d0
commit
58a1581b96
9
js/dark_theme.js
Normal file
9
js/dark_theme.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
function toggleDarkMode() {
|
||||||
|
document.body.classList.toggle("dark");
|
||||||
|
var currentCSS = document.getElementById("highlight-css");
|
||||||
|
if (currentCSS.getAttribute("href") === "file/css/highlightjs/github-dark.min.css") {
|
||||||
|
currentCSS.setAttribute("href", "file/css/highlightjs/github.min.css");
|
||||||
|
} else {
|
||||||
|
currentCSS.setAttribute("href", "file/css/highlightjs/github-dark.min.css");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user