-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (63 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no
initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<title>Microbit LED</title>
<style>
@import 'ui/css/evothings-app.css';
</style>
<script>
// Redirect console.log to Evothings Workbench.
if (window.hyper && window.hyper.log) {
console.log = hyper.log
}
</script>
<script src="cordova.js"></script>
<script src="libs/evothings/evothings.js"></script>
<script src="libs/evothings/ui/ui.js"></script>
<script src="libs/evothings/easyble/easyble.js"></script>
<script src="libs/evothings/util/util.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB11ORtcd_UAUPfwS7d_3qPj6GLBj2_1EY&libraries=geometry"></script>
<script src="microbit.js"></script>
<script src="google_maps_api_script.js"></script>
</head>
<body ontouchstart="">
<!-- ontouchstart="" enables low-delay CSS transitions. -->
<header>
<button class="back" onclick="history.back()">
<img src="ui/images/arrow-left.svg" />
</button>
<img class="logotype" src="ui/images/logo.png" alt="Evothings" />
</header>
<h1>BT-LED APP</h1>
<button onclick="app.onStartButton()" class="green">
Connect
</button>
<button onclick="app.onStopButton()" class="charcoal">
Disconnect
</button>
<p>
<strong>Status:</strong> <span id="Status">Press Connect to find the nearest Microbit</span>
</p>
<p>
<button onclick="app.printLeft()" class="charcoal">Go Left</button>
</p>
<p>
<button onclick="app.printRight()" class="charcoal">Go Right</button>
</p>
<!--
<p>
<button onclick="app.printUp()" class="charcoal">Print Up</button>
</p>
-->
<p>
<button onclick="geocodeAddress(),
createDirections()" class="charcoal" id="btnMap">Calculate Directions</button>
</p>
<input id="address" type="textbox" value="">
<div id="map"></div>
<div id="right-panel"></div>
</body>
</html>