-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.html
131 lines (121 loc) · 2.67 KB
/
index2.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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<CTYPE html>
<html lang="en">
<head>
<title>Hello, world!</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="description" content="" />
<link rel="stylesheet" type="text/css" href="style.css" />
<meta name="theme-color" content="">
</head>
<body>
<h1>Hello, world!</h1>
</body>
</html>
<!-- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jason's testing ground</title>
<style>
body {
width: 100vw;
height: 95vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#main {
color: #fa8072;
display: none;
flex-direction: row;
justify-content: center;
align-items: center;
}
.left,
.right {
margin: 20px;
}
.error {
display: none;
}
.errorMessage {
color : #ff0000;
}
.actions {
display: inline-block;
}
.btn {
background-color: #ff6e4a;
padding: 8px 16px;
border: none;
margin: 5px;
width: 120px;
height: 48px;
font-weight: 600;
color: #cc6666;
letter-spacing: 1px;
border-radius: 5px;
}
.stopBtn {
background: #f08080;
display: none;
}
</style>
</head>
<body>
<div id="main" align="center">
<div class="left">
<div>
<h4>Latitude</h4>
<p id="latitude">NA</p>
</div>
<div>
<h4>Accuracy</h4>
<p id= "accuracy">NA</p>
</div>
<div>
<h4>Heading</h4>
<p id="heading">NA</p>
</div>
<div>
<h4>Altitude Accuracy</h4>
<p id="altitudeAccuracy">NA</p>
</div>
</div>
<div class="right">
<div>
<h4>Longitude</h4>
<p id="longitude">NA</p>
</div>
<div>
<h4>Altitude</h4>
<p id="altitude">NA</p>
</div>
<div>
<h4>Speed</h4>
<p id="speed">NA</p>
</div>
<div>
<h4>Last Updated</h4>
<p id="time">NA</p>
</div>
</div>
</div>
<div class="actions" id="actions">
<button class="btn" id="currentLocationBtn">
Current</br>Location
</button>
<button class="btn stopBtn" id="cancelLiveLocationBtn">
Stop live</br>Location
</button>
</div>
<div align="center" id="error" class="error">
<h4 id="errorMessage" class="errorMessage"> No Browser Support geo-location </h4>
</div>
<script src="./location_script.js"></script>
</body>
</html> -->