This repository has been archived by the owner on Nov 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathboard.html
71 lines (71 loc) · 1.67 KB
/
board.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
67
68
69
70
71
<!DOCTYPE html>
<html>
<head>
<title>CompactChess Board</title>
<style>body{margin:0;background:#000;overflow:hidden}</style>
</head>
<body>
<img id="i1" style="display:none">
<img id="i2" style="display:none">
<img id="i3" style="display:none">
<script>
var i1=document.getElementById("i1"),
i2=document.getElementById("i2"),
i3=document.getElementById("i3"),
lup=new Date().getTime();
i1.onload=function()
{
lup=new Date().getTime();
setTimeout(function()
{
i3.style.display="none";
i1.style.display="block";
i2.src="board.svg?t="+new Date().getTime()+"&r="+Math.random()
},100)
};
i1.onerror=function()
{
i1.src="board.svg?t="+new Date().getTime()+"&r="+Math.random()
};
i1.src="board.svg?t="+new Date().getTime()+"&r="+Math.random();
i2.onload=function()
{
lup=new Date().getTime();
setTimeout(function()
{
i1.style.display="none";
i2.style.display="block";
i3.src="board.svg?t="+new Date().getTime()+"&r="+Math.random()
},100)
};
i2.onerror=function()
{
i2.src="board.svg?t="+new Date().getTime()+"&r="+Math.random()
};
i3.onload=function()
{
lup=new Date().getTime();
setTimeout(function()
{
i2.style.display="none";
i3.style.display="block";
i1.src="board.svg?t="+new Date().getTime()+"&r="+Math.random()
},100)
};
i3.onerror=function()
{
i3.src="board.svg?t="+new Date().getTime()+"&r="+Math.random()
};
setInterval(function()
{
if(lup<(new Date().getTime()-300))
{
i1.style.display="none";
i2.style.display="none";
i3.style.display="none";
i1.src="board.svg?t="+new Date().getTime()+"&r="+Math.random()
}
},100)
</script>
</body>
</html>