-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (61 loc) · 2.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Talya's Weather App</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@300&family=Zilla+Slab:wght@300&display=swap"
rel="stylesheet">
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<link rel="stylesheet" href="src/style.css">
</head>
<body>
<div class="App">
<div class="container">
<div class="Weather">
<h4>
Talya's Weather App
</h4>
<div class="row">
<div class="col-9">
<form action="" id="search-form">
<input type="search" class="form-control" placeholder="Type a city..." id="cityInput" autocomplete="off">
</div>
<div class="col-3">
<button type="submit" class="btn btn-primary" id="searchWeather">Search</button>
</div>
</form>
</div>
<div class="row">
<div class="col-6">
<h1 id="city"> </h1>
<ul>
<li> Humidity: <span id="humidity"></span>%</li>
<li> Wind: <span id="wind"></span> km/h </li>
</ul>
</div>
<div class="col-6">
<div class="temperature-container">
<img src="" alt="" id="weatherImage" class="crop"/>
<strong id="temperature"></strong>
<span class="units"><a href="#" id="celsius-link" class="active">ºC</a> | <a href="#" id="fahrenheit-link">ºF</a>
</span>
<div id="description"></div>
</div>
</div>
</div>
<div class="weather-forecast">
</div>
<em>
<small>Last updated: <span id="date"></span></small>
</em>
</div>
<footer>Open-source code by <a href="https://github.com/talya19/WeatherAppProject">talya19</a></footer>
</div>
</div>
<script src = "src/app.js"> </script>
</body>
</html>