-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
56 lines (49 loc) · 1.08 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
55
56
<!DOCTYPE html>
<html>
<head>
<title>flappyBox by towc</title>
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/> <!--320-->
<style>
body {
background-color:#333;
}
#c {
position: absolute;
left:0;
top:calc(50% - 75vw);
width: 100%;
}
#error {
position: absolute;
top: calc(50% - 20px );
left: 0;
width: 100%;
color: white;
text-align: center;
font: 40px Verdana;
display: none;
}
@media screen and (min-width: 66.6vh){
#c {
position:absolute;
top:0;
left:calc(50% - 33.3vh);
height:100%;
width: auto;
}
}
@media screen and (orientation: landscape) and (max-height: 500px ){
#error {
display: inline-block;
}
#c {
display: none;
}
}</style>
</head>
<body>
<canvas id=c></canvas>
<p id=error>Please don't use landscape mode</p>
<script src=index.js></script>
</body>
</html>