EyeTrackVR-Docs/docs/_includes/js/custom.js
ZanzyTHEbar c1a9c4336c update
- fixed window size issue with FAQ horizontal scrolling
- Added link support to FAQ
2022-06-04 14:35:07 +02:00

11 lines
334 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;
}