mirror of
https://github.com/EyeTrackVR/EyeTrackVR-Docs.git
synced 2025-11-04 14:49:44 +08:00
10 lines
235 B
JavaScript
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";
|
|
}
|
|
}
|