Repository navigation
Expand file tree
/
Copy pathapp.html
More file actions
66 lines (59 loc) · 1.68 KB
/
Copy pathapp.html
File metadata and controls
66 lines (59 loc) · 1.68 KB
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
<head>
<title>Meteor-Cordova-Background-Geolocation-Example</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
</body>
<template name="masterLayout">
<div class="container">
{{> yield}}
</div>
<div class="container">
<footer>
{{> footer}}
</footer>
</div>
</template>
<template name="footer">
<small>
Geolocation Example
{{> loginButtons}}
<button class="btn btn-primary" id="getNow">Get Now</button>
{{#if isCordova}}
<button class="btn btn-primary" id="getBackground">Start Background</button>
{{else}}
<em>(client not Cordova)</em>
{{/if}}
<span id="btnFeedback" class="muted"> </span>
<button class="btn btn-link" id="clear">Clear</button>
</small>
</template>
<template name="geolog">
<h1>Geolocation Example</h1>
<table class="table table-condensed table-striped table-bordered">
<tbody>
<tr>
<th class="text-right">longitude</th>
<th class="text-right">latitude</th>
<th class="text-right">speed</th>
<th class="text-right">accuracy</th>
<th>device</th>
<th>uuid</th>
<th>userId</th>
<th>timestamp</th>
</tr>
{{#each geologs}}
<tr>
<td class="text-right">{{location.longitude}} </td>
<td class="text-right">{{location.latitude}} </td>
<td class="text-right">{{location.speed}} </td>
<td class="text-right">{{location.accuracy}} </td>
<td>{{device}} </td>
<td>{{uuid}} </td>
<td>{{userId}} </td>
<td>{{location.recorded_at}}</td>
</tr>
{{/each}}
</tbody>
</table>
</template>