-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathWeatherWarning.html
66 lines (53 loc) · 1.22 KB
/
WeatherWarning.html
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
61
62
63
64
65
66
<!DOCTYPE html>
<html>
<head></head>
<style>
.blink_text {
animation:1s blinker linear infinite;
-webkit-animation:1s blinker linear infinite;
-moz-animation:1s blinker linear infinite;
color: red;
transition: background-color 2s;
font-family:monospace;
text-align:center;
background-color:white;
font-size:48px;
text-
}
@-moz-keyframes blinker {
0% { opacity: 1.0; }
50% { opacity: 0.0; }
100% { opacity: 1.0; }
}
@-webkit-keyframes blinker {
0% { opacity: 1.0; }
50% { opacity: 0.0; }
100% { opacity: 1.0; }
}
@keyframes blinker {
0% { opacity: 1.0; }
50% { opacity: 0.0; }
100% { opacity: 1.0; }
}
.text { color: red;
transition: background-color 2s;
font-family:monospace;
text-align:center;
}
</style>
<body>
<script type="text/javascript">
var colors = ["red", "white"];
var i = 1;
window.setInterval(function(){
document.body.style.backgroundColor = colors[i];
i++;
if (i === colors.length){
i=0;}
}, 1000);
</script>
<div class="blink_text">
<h1>Weather Warning</h1>
</div>
</body>
</html>