-
Notifications
You must be signed in to change notification settings - Fork 0
/
css.js
34 lines (24 loc) · 717 Bytes
/
css.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
var body = document.body
// body.style.backgroundColor = '#000';
// body.style.color = '#FFF';
setTimeout(function () {
// body.style.backgroundColor = '#000';
// body.style.color = '#FFF';
}, 2000);
var title = document.getElementById('title');
title.style.border = "2px solid #999";
title.style.padding = "10px";
function setBackground (color) {
body.style.color = '#FFF';
body.style.backgroundColor = color;
};
var piscaPisca = document.getElementsByClassName('pisca-pisca')[0];
// pisca();
function pisca () {
piscaPisca.style.backgroundColor = 'red';
setTimeout(pisca2, 1000);
}
function pisca2 () {
piscaPisca.style.backgroundColor = 'blue';
setTimeout(pisca, 1000);
}