-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (66 loc) · 2.4 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
<!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 App</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi"
crossorigin="anonymous"
/>
<script src="https://unpkg.com/axios@1.1.2/dist/axios.min.js"></script>
<link rel="stylesheet" href="src/style.css" />
</head>
<body>
<div class="container">
<form id="search-city" class="city">
<input
type="text"
class="form-control"
placeholder="Enter a city"
autofocus="on"
autocomplete="off"
id="city-text-input"
/>
<input type="submit" class="btn btn-success" value="Search" />
<button type="submit" class="btn btn-primary">Current</button>
</form>
<h1 class="city-name" id="city-change">Kyiv</h1>
<div class="row" id="current-city-temp">
<div class="col-6">
<ul>
<li><div id="current-day"> Sunday 14:30</div></li>
<li><div id="city-description">Partly cloudy</div></li>
</ul>
<img
src="https://ssl.gstatic.com/onebox/weather/64/partly_cloudy.png"
alt=""
id="icon"
>
<span id="current-unit-temp">5</span>
<a href="#" id="celsius-link" class="active">°C</a><span class="slash">|</span>
<a href="#" id="fahrenheit-link">°F</a>
</div>
<div class="col-6" id="win-hum">
<ul>
<li><div id="city-humidity">Humidity: 32%</div></li>
<li><div id="city-wind">Wind: 5km/h</div></li>
</ul>
</div>
</div>
<div class="weather-forecast" id="forecast"></div>
</div>
<div class="author">
<a
class="source-code"
href="https://github.com/Tasha852209/Vanilla-Weather-App"
target="_blank"
>Open-source code</a
><span> by Tetiana Dub</span>
</div>
<script src="src/index.js"></script>
</body>
</html>