mirror of
https://github.com/yuzu-emu/yuzu-emu.github.io.git
synced 2025-06-08 13:27:25 +00:00
Enforce unique colors (#5)
This commit is contained in:
parent
8c4b06759b
commit
09a8db963a
|
@ -15,6 +15,6 @@ if (navbar) {
|
|||
}
|
||||
|
||||
// Handle random switch colors
|
||||
const colors = ["orangered", "deepskyblue", "yellow", "deeppink", "lime", "gray"];
|
||||
document.body.classList.add("switch-left-" + colors[Math.floor(Math.random() * colors.length)]);
|
||||
let colors = ["orangered", "deepskyblue", "yellow", "deeppink", "lime", "gray"];
|
||||
document.body.classList.add("switch-left-" + colors.splice(Math.floor(Math.random() * colors.length), 1)[0]);
|
||||
document.body.classList.add("switch-right-" + colors[Math.floor(Math.random() * colors.length)]);
|
||||
|
|
Loading…
Reference in a new issue