-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
54 lines (47 loc) · 1.03 KB
/
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
<html>
<head>
<meta charset="UTF-8" />
<title>Chess</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
margin: 0;
background: linear-gradient(-45deg, #a6a6a6, #5ac05a, #262626, #a6a6a6);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
canvas {
background-color: white;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
</style>
</head>
<script type="module">
import init from './out/chess.js'
if (window.innerWidth > 500) {
document.getElementById("msg").style.display = "none"
init()
} else {
}
</script>
<body>
<div id="msg">
Please use desktop or laptop to access this website.
Touch and responsiveness is not supported
</div>
</body>
</html>