-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
37 lines (34 loc) · 821 Bytes
/
Copy pathapp.js
File metadata and controls
37 lines (34 loc) · 821 Bytes
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
function changeStyling() {
var element = document.getElementsByClassName("mero");
for (var x = 0; x < element.length; x++) {
element[x].style.color =
"rgb(" +
Math.round(Math.random() * 255) +
"," +
Math.round(Math.random() * 255) +
"," +
Math.round(Math.random() * 255) +
")";
}
{
document.body.style.backgroundColor =
"rgb(" +
Math.round(Math.random() * 255) +
"," +
Math.round(Math.random() * 255) +
"," +
Math.round(Math.random() * 255) +
")";
}
}
/* function changeBg() {
document.body.style.backgroundColor =
"rgb(" +
Math.round(Math.random() * 255) +
"," +
Math.round(Math.random() * 255) +
"," +
Math.round(Math.random() * 255) +
")";
}
*/