Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
109 lines (104 loc) · 4.06 KB
/
Copy pathindex.html
File metadata and controls
109 lines (104 loc) · 4.06 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<meta charset="utf-8" />
<title>Geolocation Debug</title>
<link rel="stylesheet" type="text/css" href="shared/style/buttons.css" />
<link rel="stylesheet" type="text/css" href="shared/style/headers.css" />
<link rel="stylesheet" type="text/css" href="shared/style/switches.css" />
<link rel="stylesheet" type="text/css" href="shared/style/input_areas.css" />
<link rel="stylesheet" type="text/css" href="style/geoloc.css" />
<script type="application/javascript" src="js/geoloc.js"></script>
<!-- localization -->
<link rel="resource" type="application/l10n" href="locales/locales.ini">
<link rel="resource" type="application/l10n" href="shared/locales/date.ini">
<script src="shared/js/l10n.js" type="text/javascript" charset="utf-8"></script>
<script src="shared/js/l10n_date.js" type="text/javascript" charset="utf-8"></script>
</head>
<body role="application">
<section role="region">
<header>
<h1 data-l10n-id="geolocation-tracker">Geolocation tracker</h1>
</header>
</section>
<section role="region">
<div class="bb-docs">
<button id="btnStart" data-l10n-id="geoloc-start">Start</button>
<button id="btnStop" data-l10n-id="geoloc-stop">Stop</button>
<button id="btnClear" data-l10n-id="geoloc-clear">Clear</button>
<button id="btnSave" data-l10n-id="geoloc-save">Save as a file</button>
</div>
</section>
<section role="region">
<header>
<h1 data-l10n-id="geoloc-parameters" id="h1-parameters" data-hide="parameters" class="bb-docs">Parameters</h1>
</header>
<div class="bb-docs" id="parameters">
<fieldset>
<legend data-l10n-id="geoloc-timeout">Timeout</legend>
<section>
<input type="number" id="geoloc-timeout" value="0" />
</section>
</fieldset>
<fieldset>
<legend data-l10n-id="geoloc-maxage">Max. age</legend>
<section>
<input type="number" id="geoloc-maxage" value="0" />
</section>
</fieldset>
<span class="desc" data-l10n-id="geoloc-msecs">Timeout and Max. age are specified in miliseconds.</span>
<ul>
<li>
<span data-l10n-id="geoloc-highaccuracy">High accuracy</span>
<label class="pack-switch">
<input type="checkbox" id="geoloc-highaccuracy" checked="checked"/>
<span></span>
</label>
</li>
<li>
<span data-l10n-id="geoloc-debug">Show debug traces</span>
<label class="pack-switch">
<input type="checkbox" id="geoloc-debug" checked="checked"/>
<span></span>
</label>
</li>
<li>
<span data-l10n-id="geoloc-keep">Keep locations</span>
<label class="pack-switch">
<input type="checkbox" id="geoloc-keep" checked="checked"/>
<span></span>
</label>
</li>
</ul>
</div>
</section>
<section role="region">
<header>
<h1 data-l10n-id="geoloc-status" id="h1-status" data-hide="status">Status</h1>
</header>
<div class="bb-docs" id="status">
<fieldset>
<legend data-l10n-id="gps-fixes">Fixes</legend>
<section>
<input type="text" disabled="disabled" id="nbr-gps-fixes" placeholder="0" />
</section>
</fieldset>
<fieldset>
<legend data-l10n-id="last-fix">Last</legend>
<section>
<input type="text" disabled="disabled" data-l10n-id="date-last-fix" id="date-last-fix" placeholder="None" />
</section>
</fieldset>
</div>
</section>
<section role="region">
<header>
<h1 data-l10n-id="geoloc-debug-log" id="h1-debuglog" data-hide="debuglog">Debug log</h1>
</header>
<div class="bb-docs" id="debuglog">
<span id="log"></span>
</div>
</section>
</body>
</html>