diff --git a/docs/_includes/header_custom.html b/docs/_includes/header_custom.html index 03380af..f4e8626 100644 --- a/docs/_includes/header_custom.html +++ b/docs/_includes/header_custom.html @@ -1,25 +1,4 @@ - \ 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 e69de29..3ba67b3 100644 --- a/docs/_includes/js/custom.js +++ b/docs/_includes/js/custom.js @@ -0,0 +1,17 @@ +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"); + } else { + jtd.setTheme("light"); + } +}