-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
148 lines (144 loc) · 4.8 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!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>Weather Forecast App</title>
<!--Fonts-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/808afd20ec.js" crossorigin="anonymous"></script>
<!--Style-->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<link rel="stylesheet" href="src/style.css">
<!--Axios-->
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<!--Chart-->
<script src="https://code.jscharting.com/latest/jscharting.js"></script>
</head>
<body>
<body>
<div class="container-body">
<form id="search-form">
<h1 class="city">
<input type="text" id="search-engine" placeholder="Search for city" autocomplete="off" autofocus="on" />
<input type="submit" class="fas fa-chevron-down" value="">
<button id="current-location-button">
<i class="fas fa-search-location"></i>
</button>
</h1>
</form>
<h2 class="hour">
11:50 am
</h2>
<!--Current weather information-->
<div class="row row-top">
<div class="col-sm-3">
<div class="row row-1">
<div class="today col-sm-12">
<h3 class="date">
Monday
</h3>
<p class="description">
Partly Cloud
</p>
</div>
</div>
<div class="row">
<div class="icon1 col-sm-6">
<img src="https://ssl.gstatic.com/onebox/weather/64/cloudy.png" alt="Clear" id="icon" />
</div>
<div class="col-sm-6 temp">
<strong class="now-temperature">
15
</strong>
</div>
<div class="col-sm-6 degree">
<span class="units">
<a href="#" id="celsius-link" class="active">ºC</a> |
<a href="#" id="fahrenheit-link">ºF</a>
</span>
</div>
</div>
<div class="row">
<div class="feelslike col-sm-12">
<p class="feelstext">
Feels like
<span class="feels">
13ºC
</span>
</p>
</div>
</div>
<div class="row">
<div class="pressure col-sm-6">
<p class="precipitation-description">
Pressure:
</p>
</div>
<div class="precipitationwhole col-sm-6">
<p class="pressure-value">
30
</p>
</div>
</div>
<div class="row">
<div class="humidity col-sm-6">
<p class="humidity-description">
Humidity:
</p>
</div>
<div class="humiditywhole col-sm-6">
<p id="humidity">
40%
</p>
</div>
</div>
<div class="row">
<div class="visibilityclass col-sm-6">
<p id="winddescription">
Wind:
</p>
</div>
<div class="visibilitynumber col-sm-6">
<p id="wind">
6
</p>
</div>
</div>
<div class="row">
<div class="cloudsclass col-sm-6">
<p class="visibility-description">
Visibility:
</p>
</div>
<div class="col-sm-6">
<p class="visibility">
20
</p>
</div>
</div>
</div>
<!---
Added bar chart from JSCharting library comparing minimum and maximum forecast temperatures
JSdocs: https://jscharting.com/documentation/#node=Tutorials.legend
--->
<div id="chartDiv" style="max-width: 380px;height: 380px"></div>
<div class="weather-forecast " id="forecast">
</div>
</div>
<br />
<!--Hourly Forecast-->
<div class="weather-forecast-hourly" id="hourly">
</div>
</div>
<h6>
<a href="https://github.com/tsdamas/Weather-Forecast-app" class="source">Open Source code</a> by Thais Damasceno
</h6>
</body>
<script src="src/index.js"></script>
<script src="https://code.jscharting.com/2.9.0/jscharting.js"></script>
</html>