-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (93 loc) · 3.15 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
<!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" />
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD"
crossorigin="anonymous"
/>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/axios.min.js"></script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="src/styles.css" />
<title>Search Engine</title>
</head>
<body>
<div class="container">
<div class="wrapper">
<div class="weather-container">
<div class="header">
<div class="weather-header">
<h2>Weather</h2>
</div>
<form class="search-form" id="search-form">
<div class="row">
<div class="col-6">
<input
type="search"
class="city-input"
id="city-input"
autofocus="on"
autocomplete="off"
placeholder="Type a city..."
/>
</div>
<div class="col-3">
<input type="submit" value="Search" class="btn btn-primary" />
</div>
<div class="col-3">
<input
type="submit"
value="Current"
class="btn btn-success"
id="current-button"
/>
</div>
</div>
</form>
<h3 class="mt-4" id="city"></h3>
<ul>
<li>Last Updated: <span id="time"></span></li>
<li class="mt-10 status" id="description"></li>
</ul>
<div class="row">
<div class="col-6">
<h3>
<img src="" alt="" id="icon" />
<span id="temperature"></span>
<span class="units"> °C </span>
</h3>
</div>
<div class="col-6">
<ul>
<li>Pressure:<span id="pressure"></span>hPa</li>
<li>Humidity:<span id="humidity"></span>%</li>
<li>Wind:<span id="wind"></span>km/h</li>
</ul>
</div>
</div>
</div>
<div class="weather-forecast" id="forecast"></div>
</div>
<small>
<a
href="https://github.com/EniolaCodes/weather-check.git"
target="_blank"
>Open-source code by</a
>
Fatimah Adebimpe
</small>
</div>
</div>
<script src="src/index.js"></script>
</body>
</html>