-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
161 lines (158 loc) · 5.37 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
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<!-- CSS only -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1"
crossorigin="anonymous"
/>
<script
src="https://kit.fontawesome.com/eb42c3a17f.js"
crossorigin="anonymous"
></script>
<link rel="stylesheet" href="src/styles.css" />
<title>Weather App</title>
</head>
<body id="background">
<div class="container">
<div class="weather-page">
<div class="weather-app">
<!--List of cities -->
<div class="row">
<div class="col">
<div class="card">
<div class="card-body">
<ul class="cities">
<li id="jakarta">Jakarta</li>
|
<li id="london">London</li>
|
<li id="paris">Paris</li>
|
<li id="newyork">New York</li>
|
<li id="sanfrancisco">San Francisco</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Search Form -->
<div class="row">
<div class="col">
<div class="card">
<div class="card-body">
<form id="search-form">
<input
type="search"
id="input-city"
class="form-control shadow-sm"
placeholder="Enter a city"
autofocus="on"
autocomplete="off"
/>
<input
type="submit"
class="btn btn-secondary shadow"
value="Search"
/>
<i class="fas fa-map-marker-alt" id="currentLocation"></i>
</form>
</div>
</div>
</div>
</div>
<!-- Main body -->
<div class="row">
<!-- Left side -->
<div class="col">
<div class="card">
<div class="card-body">
<h1 id="city"></h1>
<ul class="datetime">
<li id="last-update">Last updated:</li>
<li id="day"></li>
<li id="date"></li>
<li><span id="clock"></span> <span id="amPm"></span></li>
</ul>
</div>
</div>
</div>
<!-- Right side -->
<div class="col">
<div class="card">
<div class="card-body">
<!-- upper part-->
<div class="row">
<div class="col temperature-section">
<div class="clearfix">
<img src="" alt="" id="icon" class="float-left" />
<div class="temperature-part">
<span id="temperature"></span>
<span class="units"
><a href="#" id="toCelcius" class="active">°C</a> |
<a href="#" id="toFahrenheit">°F</a></span
>
</div>
</div>
</div>
</div>
<!--lower part-->
<div class="row">
<div class="col">
<p id="description"></p>
<ul class="weather">
<li>Cloudines: <span id="cloudines"></span>%</li>
<li>Feels like: <span id="feels-like"></span>°</li>
<li>Humidity: <span id="humidity"></span>%</li>
<li>Wind: <span id="wind"></span>km/h</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- weather prediction-->
<div class="row week-prediction">
<div class="col">
<div class="card">
<div class="card-body">
<div class="row" id="forecast"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer>
<small>
<i class="fas fa-mobile-alt"></i> Responsive Design
<a
href="https://github.com/irSilviana/Vanilla-Weather-App"
target="_blank"
>Open-source Code</a
>
<br />
Created by
<a href="https://www.linkedin.com/in/irsilviana/" target="_blank"
>IrSilviana</a
>
from
<a
href="https://www.shecodes.io/students/273-irsilviana-irsilviana"
target="_blank"
>SheCodes</a
>
</small>
</footer>
</div>
</div>
<script src="src/app.js"></script>
</body>
</html>