-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
43 lines (42 loc) · 1.09 KB
/
script.js
File metadata and controls
43 lines (42 loc) · 1.09 KB
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
function newStyle() {
let newColor = '';
let newFont = '';
let x = Math.floor(Math.random()*8);
switch (x){
case 0:
newColor = '#020100';
newFont = 'Alegreya';
break;
case 1:
newColor = '#3B28CC';
newFont = 'Alegraya Sans';
break;
case 2:
newColor = '#8E0606';
newFont = 'Black Ops One';
break;
case 3:
newColor= '#1E6478';
newFont = 'Josefin Slab';
break
case 4:
newColor = '#4B6A12';
newFont = 'Junge';
break;
case 5:
newColor = '#451E71';
newFont = 'Lato';
break;
case 6:
newColor = '#A1005E';
newFont = 'Neucha';
break;
case 7:
newColor = "#941B0C";
newFont = "BioRhyme";
}
let elem = document.getElementById('topOfScreen');
elem.style.color = newColor;
elem.style.fontFamily = newFont;
}
// maybe make a dark mode with a button?