-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (77 loc) · 3.68 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
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"
/>
<title>Three</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<canvas class="webgl"></canvas>
<div class="title-div" id="start-menu">
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<h1 class="title">Welcome to the Game</h1>
<p class="subtitle">
Objective: Have fun!
</p>
<p class="subtitle">
This game was designed for use on mobile devices. If you are using a desktop, please use the keyboard controls.
</p>
<button
class="btn btn-primary"
id="using_mobile"
>
Mobile Mode (Recommended)
</button>
<br>
<button
class="btn btn-primary"
id="using_keyboard"
>
Keyboard Controls
</button>
</div>
</div>
</div>
</div>
<div style="display:none;" "class="scorecard" id="scorecard">
<p2>Score: <span id="score">0</span></p2>
</div>
<!-- <main id="popover2" role="main" class="container">
<p style="margin-top:1rem;">Score: <span class="badge badge-warning" id="score">0</span></p>
</main>
<main id="popover" role="main" class="container">
<div class="p-3 mb-2 bg-secondary" id="demo-div">
<a id="using_mobile" class="btn btn-lg btn-success py-1" href="#" role="button">Mobile Device</a>
<a id="using_keyboard" class="btn btn-lg btn-success py-1" href="#" role="button">Use Keyboard</a>
<p style="margin-top:1rem;">Num. of datapoints: <span class="badge badge-warning" id="num-observed-events">0</span></p>
<ul>
<li>X-axis: <span id="Accelerometer_gx">0</span><span> m/s<sup>2</sup></span></li>
<li>Y-axis: <span id="Accelerometer_gy">0</span><span> m/s<sup>2</sup></span></li>
<li>Z-axis: <span id="Accelerometer_gz">0</span><span> m/s<sup>2</sup></span></li>
</ul>
</div>
</main> -->
<!-- CDN Link to Three.js -->
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"
></script>
<script type="module" src="index.js"></script>
<!-- <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> -->
</body>
</html>