-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (52 loc) · 1.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stack Ball 3D</title>
<style>
* {
user-select: none;
-webkit-user-select: none;
margin: 0;
padding: 0;
}
.FlexColumn {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.GameScene {
width: 100%;
height: 100%;
}
#gameArea {
width: 100%;
height: 100%;
max-width: 400px;
max-height: 620px;
}
body {
width: 100vw;
height: 100vh;
position: fixed;
}
#gl {
position: relative;
top: -100%;
}
#cvs {
background-image: linear-gradient(to bottom, purple, orange);
}
</style>
<script src="./StackBall3D.js"></script>
<script src="./src/Module.js" type="module"></script>
</head>
<body class="FlexColumn">
<div id="gameArea">
<canvas id="cvs" class="GameScene"></canvas>
<canvas id="gl" class="GameScene"></canvas>
</div>
</body>
</html>