forked from B4CON4LIFE/Clack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoofy.js
60 lines (56 loc) · 2.21 KB
/
goofy.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
function getRandomInt(max) {
return Math.floor(Math.random() * max);
}
function goofyFunnyFeelingDotOrg() {
let maths = getRandomInt(10);
console.log(maths);
if (maths == 0) {
alert("Bro got 0");
document.getElementById("showN").style.display = "none";
}
if (maths == 1) {
document.documentElement.setAttribute('data-theme', 'light');
localStorage.setItem('theme', 'light');
document.getElementById("showN").style.display = "block";
}
if (maths == 2) {
document.documentElement.setAttribute('data-theme', 'dark');
localStorage.setItem('theme', 'dark');
document.getElementById("showN").style.display = "block";
}
if (maths == 3) {
document.documentElement.setAttribute('data-theme', 'pink');
localStorage.setItem('theme', 'pink');
document.getElementById("showN").style.display = "none";
}
if (maths == 4) {
document.documentElement.setAttribute('data-theme', 'green');
localStorage.setItem('theme', 'green');
document.getElementById("showN").style.display = "block";
}
if (maths == 5) {
document.documentElement.setAttribute('data-theme', 'dark-green');
localStorage.setItem('theme', 'dark-green');
document.getElementById("showN").style.display = "none";
}
if (maths == 6) {
document.documentElement.setAttribute('data-theme', 'black-white');
localStorage.setItem('theme', 'black-white');
document.getElementById("showN").style.display = "block";
}
if (maths == 7) {
document.documentElement.setAttribute('data-theme', 'blue-pink');
localStorage.setItem('theme', 'blue-pink');
document.getElementById("showN").style.display = "none";
}
if (maths == 8) {
document.documentElement.setAttribute('data-theme', 'charcoal-yellow');
localStorage.setItem('theme', 'charcoal-yellow');
document.getElementById("showN").style.display = "block";
}
if (maths == 9) {
document.documentElement.setAttribute('data-theme', 'hotpink-cyan');
localStorage.setItem('theme', 'hotpink-cyan');
document.getElementById("showN").style.display = "none";
}
}