-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (41 loc) · 1.08 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="index.js" type="module"></script>
<script src="parser.js" type="module"></script>
<title>weather exercise</title>
</head>
<body>
<form id="location_input_form">
<label for="lat">Latitude:</label>
<input type="number" id="lat" name="latitude" value="45.544000">
<label for="lon">Longitude:</label>
<input type="number" id="lon" name="longitude" value="-122.866056">
</form>
<button id="location_input">Submit</button>
<table id="results">
<thead>
<tr>
<th colspan="1">
Measurements
</th>
<th colspan="2">
Results
</th>
</tr>
</thead>
<tbody>
<tr id="temp">
<td>Temp.</td>
<td id="temp_data"></td>
</tr>
<tr id="prcp">
<td>Rainfall</td>
<td id="rainfall_data"></td>
</tr>
</tbody>
</table>
</body>
</html>