EyeTrackVR-Docs/docs/_includes/js/custom.js
2022-05-15 21:23:11 +02:00

12 lines
335 B
JavaScript

async function switchScheme(isClicked) {
if (isClicked == true) {
jtd.setTheme("eyetrackvr");
var color_scheme = "dark";
} else {
jtd.setTheme("light");
var color_scheme = "light";
}
document.getElementById("discord-widget").src =
"https://discord.com/widget?id=946212245187199026&theme=" + color_scheme;
}