-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
136 lines (126 loc) · 5 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Weather Dashboard</title>
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400&family=Merriweather:wght@700&display=swap"
rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<header class="container-fluid">
<h1>Weather Dashboard</h1>
</header>
<span id="currentDay">00:00:00</span>
<section class=container id="sidebar">
<form class="d-flex" id="search-form">
<input class="form-control me-2" id="city-input" name="city" type="search" placeholder="Search...">
<button class="btn btn-primary" id="search-button" type="submit">Search</button>
</form>
<ul class="list-group" id="city-search-list">
<button class="list-group-item" id="city1"></button>
<button class="list-group-item" id="city2"></button>
<button class="list-group-item" id="city3"></button>
<button class="list-group-item" id="city4"></button>
<!-- <button class="list-group-item" id="city5"></button>
<button class="list-group-item" id="city6"></button>
<button class="list-group-item" id="city7"></button>
<button class="list-group-item" id="city8"></button>
<button class="list-group-item" id="city9"></button> -->
</ul>
<a href="index.html" class="btn btn-block btn-danger btn-lg" id="back-button">←Refresh.</a>
<br>
<br>
<br>
<br>
<br>
<button><a href="https://openweathermap.org/api" class="btn btn-block btn-btn-lg" id="openWeather">Visit OpenWeather Map</a></button>
</section>
<section>
<h2><strong>Displaying results for...</strong></h2>
</section>
<main class="card card-rounded" id="result-content">
<div>
<h2>City: <span id=currentDate></span></h2>
<ul class="list-group" id="result-list">
<br>
<li>Forecast:</li>
<br>
<li>Temperature:</li>
<br>
<li>Humidity:</li>
<br>
<li>Wind Speed:</li>
<br>
<li>UV Index:</li>
</ul>
<div id="#weather-icon"></div>
</div>
</main>
<section>
<h2><strong>5-Day Forecast:</strong></h2>
</section>
<div class="container" id="forecast-results">
<div class="column">
<div class="box" id="dayOne">
<h3>Date:</h3>
<br>
<p>Temp:</p>
<p>Humidity:</p>
<p>UV index:</p>
</div>
</div>
<div class="column">
<div class="box" id="dayTwo">
<h3>Date:</h3>
<br>
<p>Temp:</p>
<p>Humidity:</p>
<p>UV index:</p>
</div>
</div>
<div class="column">
<div class="box" id="dayThree">
<h3>Date:</h3>
<br>
<p>Temp:</p>
<p>Humidity:</p>
<p>UV index:</p>
</div>
</div>
<div class="column">
<div class="box" id="dayFour">
<h3>Date:</h3>
<br>
<p>Temp:</p>
<p>Humidity:</p>
<p>UV index:</p>
</div>
</div>
<div class="column">
<div class="box" id="dayFive">
<h3>Date:</h3>
<br>
<p>Temp:</p>
<p>Humidity:</p>
<p>UV index:</p>
</div>
</div>
</div>
<footer>
<br>
<br>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"
integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"
integrity="sha512-qTXRIMyZIFb8iQcfjXWCO8+M5Tbc38Qi5WzdPOYZHIlZpzBHG3L3by84BBBOiRGiEb7KKtAOAs5qYdUiZiQNNQ==" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0"
crossorigin="anonymous"></script>
<script src="assets/js/script.js"></script>
</body>
</html>