diff --git a/docs/_includes/header_custom.html b/docs/_includes/header_custom.html index f4e8626..f80a11f 100644 --- a/docs/_includes/header_custom.html +++ b/docs/_includes/header_custom.html @@ -1,4 +1,18 @@ \ No newline at end of file + + \ No newline at end of file diff --git a/docs/_includes/js/custom.js b/docs/_includes/js/custom.js index 3ba67b3..48faee4 100644 --- a/docs/_includes/js/custom.js +++ b/docs/_includes/js/custom.js @@ -1,17 +1,9 @@ -var isClicked = false; -async function toggleDetect() { - if (isClicked == false) { - isClicked = true; - } else { - isClicked = false; - } - await switchScheme(isClicked); -} - async function switchScheme(isClicked) { if (isClicked == true) { jtd.setTheme("eyetrackvr"); + switch_scheme.textContent = "Light Mode"; } else { jtd.setTheme("light"); + switch_scheme.textContent = "Dark Mode"; } }