-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (43 loc) · 1.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>LEGO Mario</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
margin: 0px;
overflow: hidden;
}
.header {
display: flex;
margin: 10px;
justify-content: center;
text-shadow: -1px 0 #fff, 0 1px #fff, 1px 0 #fff, 0 -1px #fff;
}
</style>
</head>
<body>
<h1 class="header">mario.js</h1>
<h3 class="header">Connect your LEGO® Super Mario™ figure with your browser</h3>
<div style="display: flex; justify-content: center; align-items: center;">
<button onclick="legoMario.scan()">scan</button>
<input id="message" type="text" list="example-messages">
<datalist id="example-messages">
<option value="060001120100">mute</option>
<option value="060001120116">volume 1</option>
<option value="060001120132">volume 2</option>
<option value="060001120148">volume 3</option>
<option value="060001120164">volume 4</option>
</datalist>
<button onclick="legoMario.send('#message')">send</button>
<button onclick="legoMario.setVolume(0)">mute</button>
</div>
<script src="js/3rdparty/three.min.js"></script>
<script src="js/3rdparty/OBJLoader.js"></script>
<script src="js/3rdparty/MTLLoader.js"></script>
<script src="js/model.js"></script>
<script src="js/mario.js"></script>
<script src="js/mario-events.js"></script>
</body>
</html>