-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (76 loc) · 2.84 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script src="https://unpkg.com/[email protected]/dist/axios.min.js"></script>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Weather</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<meta name="description" content="weather-app" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://kit.fontawesome.com/6fab3a0556.css"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="src/styles.css" />
</head>
<body>
<main>
<div class="container p-4">
<form method="#" class="row">
<input
id="search-input"
class="col-8 form-control form-control-lg ml-4 mr-3"
type="text"
placeholder="Search for a city..."
autocomplete="off"
/>
<button
id="searchButton"
class="btn btn-primary btn-lg ml-2 pl-4 pr-4"
type="submit"
>
search
</button>
</form>
<div class="row city-temp mb-2">
<div class="col-7">
<h1 id="city-to-change" class="display-5 ml-2 mt-4 text-capitalize"></h1>
<p class="h4 ml-2">Last updated at<br/><span id="datetime-to-change"></span</p>
<p id="description" class="d-inline text-capitalize ml-2" id="description"></p>
<img id="weather-icon" src="#" alt="weather icon">
</div>
<div class="col-5">
<!--<p class=" mt-4 ">
<a href="#" class="text-dark" id="fahrenheit">ºF</a> |
<a href="#" class="text-primary" id="celsius">ºC</a>
</p>-->
<p class="mt-4 celsius" id="temp-display"><span class="celsius" id="temperature"></span> ºC</p>
</div>
</div>
<div class="row bg-light ml-1 mr-1 rounded">
<div class="col-6 text-center">
Humidity: <span id="humidity"></span>%
</div>
<div class="col-6 text-center">Wind: <span id="wind"></span> km/h</div>
</div>
<div class="weather-forecast" id="forecast"></div>
</div>
<div>
<p class="mt-3 "><a id="repo-link" href="https://github.com/neew18/weather-app" target="_blank">Open-source code</a>, by <a id="coder" class="text-uppercase" href="https://neew18.github.io/neew-links-tree" target="_blank">Nann Ei Ei Win</a></p>
</div>
</main>
<footer></footer>
<script
src="https://kit.fontawesome.com/6fab3a0556.js"
crossorigin="anonymous"
></script>
<script src="src/index.js"></script>
</body>
</html>