-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (73 loc) · 3.16 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
<!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-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor"
crossorigin="anonymous"
/>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<link rel="stylesheet" href="src/style.css" />
<title>Weather App</title>
</head>
<body>
<div class="container">
<div class="weather-app">
<form class="search-form" id="search-form">
<div class="row">
<div class="col-2">
<input type="submit" value="📍" id="current-location-button" class="current-location form-control btn shadow-none"/>
</div>
<div class="col-8">
<input type="search" placeholder="Type a city..." autofocus="on" autocomplete="off" id="city-input" class="city-name form-control shadow-sm border-0"/>
</div>
<div class="col-2">
<input type="submit" value="Go! 🔍" id="search-button" class="search-button form-control btn shadow-none border-0"/>
</div>
</div>
</form>
<h1 id="city">
</h1>
<span class="date">Updated: </span> <span class = "date" id="date"></span>
</br>
<p>Today's Forecast</p>
<div class="row">
<div class="col-6">
<div class="weather-temperature">
</br>
<span class="temperature" id="temperature"></span>
<span class="units"> <a href="#" id="fahrenheit-link" class="active">°F</a> |
<a href="#" id="celsius-link">°C</a></span>
</div>
</div>
<div class ="col-1"> </div>
<div class="col-4">
<img src="" alt="Clear" id="icon" width=130/>
</div>
<div class="row">
<div class="col-6">
<ul>
<li class="weather-elements">Real Feel <span class="make-bold"><span id="real-feel"></span>°F</span> </li>
<li class="weather-elements">High <span class="make-bold"><span id="todays-high"></span>°F</span> </li>
<li class="weather-elements">Low <span class="make-bold"><span id="todays-low"></span>°F</span> </li>
</ul>
</div>
<div class="col-6">
<ul>
<li class="weather-elements"><span class="make-bold" id="description"></span> </li>
<li class="weather-elements">Humidity <span class="make-bold"><span id="humidity"></span>%</span> </li>
<li class="weather-elements">Wind <span class="make-bold"><span id="wind"></span> mph</span> </li>
</ul>
</div>
</div>
<div class="weather-forecast forecast" id="forecast">
</div>
</div>
<footer><a href="https://github.com/sngillard/vanilla-weather-app" id="git-link">Open-source code </a>by Sarah Gillard</footer>
<script src="src/app.js"></script>
</body>
</html>