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