-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (40 loc) · 1.31 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no,
shrink-to-fit=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<title>Cordova Basic</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/jquery/jquery.js"></script>
<script src="libs/evothings/evothings.js"></script>
<script src="libs/evothings/ui/ui.js"></script>
<script src="app.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="images/logo.png" />
</header>
<h1> Cordova</h1>
<p>This app demonstrates basic Cordova functionality.</p>
<button class="blue" onclick="messagebox('Hello Evothings!')">
NATIVE DIALOG
</button>
<button class="yellow" onclick="navigator.notification.vibrate(1000)">
VIBRATE
</button>
<h2 class="panel-title">Compass</h2>
<p id="compass-heading">Status: Waiting for compass.</p>
<p id="compass-direction"></p>
</body>
</html>