forked from RandomityGuy/MBHaxe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (72 loc) · 2.12 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE>
<html>
<head>
<meta charset="utf-8" />
<title>Marble Blast Platinum Haxe Port</title>
<link rel="shortcut icon" href="./data/icon.png" id="favicon">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="manifest" href="/data/manifest.json">
<style>
body {
margin: 0;
padding: 0;
background-color: black;
}
canvas#webgl {
width: 100%;
height: 100%;
}
#pointercontainer {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
#fullscreen-enforcer {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 69420;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(5px);
display: flex;
justify-content: center;
align-items: center;
color: white;
font-family: 'Marker Felt';
font-size: 24px;
text-align: center;
flex-direction: column;
}
#enter-fullscreen {
position: absolute;
display: block;
left: 0px;
top: 50%;
transform: translateY(-50%);
z-index: 5;
width: 50px;
padding: 5px;
background: #00000031;
border-bottom-right-radius: 10px;
border-top-right-radius: 10px;
}
.hidden {
display: none !important;
pointer-events: none !important;
}
</style>
<canvas id="webgl"></canvas>
</head>
<body>
<div id="fullscreen-enforcer" class="hidden">
Tap to enter fullscreen<br><span style="opacity: 0.5; font-size: 18px;">(recommended for touch devices)</span>
</div>
<div id="enter-fullscreen" class="hidden"></div>
<div id="pointercontainer" tabindex="0"></div>
<script type="text/javascript" src="marblegame.js"></script>
</body>
</html>