forked from kerblooee/ganzflicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (54 loc) · 978 Bytes
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Ganzflicker: Do not view if you have photosensitive epilepsy!</title>
</head>
<body width="100%" height="100%" id="pmBox">
<script language="JavaScript">
<!-- Begin
pmBox.bgColor='#FFFFFF';
setInterval("Timer()", 16.6666);
// Set initial flash state
// x controls ON/OFF state. set controls execution state.
// order controls the sequence of color shift for each flash
x=1;
order=1;
function Timer() {
set=1;
if(x==0 && set==1 && order==1) {
pmBox.bgColor='#800000';
order=order+1;
set=0;
}
if(x==0 && set==1 && order==2) {
pmBox.bgColor='#FF0000';
order=order+1;
set=0;
}
if(x==0 && set==1 && order==3) {
pmBox.bgColor='#800000';
order=order+1;
set=0;
}
if(x==0 && set==1 && order==4) {
pmBox.bgColor='#00000';
x=1;
set=0;
order=1;
}
if(x==1 && set==1) {
pmBox.bgColor='#00000';
set=0;
x=0;
if(order == 4){
x=0;
}
else{
order=order + 1;
}
}
}
// End -->
</script>
</body>
</html>