-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
112 lines (98 loc) · 4.18 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
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
<html>
<head>
<meta charset="UTP-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie-edge" />
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto&effect=shadow-multiple|3d-float">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<title>Weather App</title>
</head>
<body onload="getCurrentWeatherByGeo()">
<div class="search">
<input id="searchbox" type="text" placeholder="Enter a city">
<button id="search-button" onclick="getCurrentWeatherBySearch()">Search</button>
<button id="location-button" onclick="getCurrentWeatherByGeo()"><span class="material-icons">location_on</span></button>
</div>
<div>
<span id="error-message"></span>
<br><br><br>
</div>
<div class="location">
<h1 id="weather-title">Live Weather</h1>
<h2 id="location-city">City</h2>
<h3 id="location-country">Country</h3>
</div>
<div class="weather">
<div id="weather-icon">
<canvas id="icon" width="200" height="200"></canvas>
</div>
</div>
<div class="temperature">
<div class="degree-section">
<h1 id="temperature-degree">--</h1><h1>°</h1><span>F</span>
</div>
<div id="weather-description">Weather Description</div>
</div>
<div class="weather-conditions">
<table id="weather-table">
<tr>
<td id="wind-speed">Wind Speed</td>
<td id="high-temp">High Temp</td>
<td id="sunrise">Sunrise</td>
</tr>
<tr>
<td id="humidity">Humidity</td>
<td id="low-temp">Low Temp</td>
<td id="sunset">Sunset</td>
</tr>
</table>
</div>
<div class="five-day-forecast-title">
<h1 id="forecase-title">5 Day Forecast</h1>
<br>
<br>
</div>
<div class="five-day-forecast">
<table id="forecast-table">
<tr>
<td id="weekday-01">First Day</td>
<td id="weekday-02">Second Day</td>
<td id="weekday-03">Third Day</td>
<td id="weekday-04">Fourth Day</td>
<td id="weekday-05">Fifth Day</td>
</tr>
<tr>
<td id="weekday-icon-01"><canvas id="icon-01" width="100" height="100"></canvas></td>
<td id="weekday-icon-02"><canvas id="icon-02" width="100" height="100"></canvas></td>
<td id="weekday-icon-03"><canvas id="icon-03" width="100" height="100"></canvas></td>
<td id="weekday-icon-04"><canvas id="icon-04" width="100" height="100"></canvas></td>
<td id="weekday-icon-05"><canvas id="icon-05" width="100" height="100"></canvas></td>
</tr>
<tr>
<td id="high-01">High --</td>
<td id="high-02">High --</td>
<td id="high-03">High --</td>
<td id="high-04">High --</td>
<td id="high-05">High --</td>
</tr>
<tr>
<td id="low-01">Low --</td>
<td id="low-02">Low --</td>
<td id="low-03">Low --</td>
<td id="low-04">Low --</td>
<td id="low-05">Low --</td>
</tr>
</table>
</div>
<div id="footer-space">
</div>
<script src='https://kit.fontawesome.com/a076d05399.js'></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="skycons.js"></script>
<script src="app.js"></script>
</body>
<footer>
© <span id="year"></span> VC
</footer>
</html>