EyeTrackVR-Docs/docs/_includes/js/custom.js

10 lines
235 B
JavaScript

async function switchScheme(isClicked) {
if (isClicked == true) {
jtd.setTheme("eyetrackvr");
switch_scheme.textContent = "Light Mode";
} else {
jtd.setTheme("light");
switch_scheme.textContent = "Dark Mode";
}
}