-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (88 loc) · 3.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<!-- Bootstrap CSS CDN Link -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
/>
<!-- Google Fonts CDN Link -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Sofia+Sans+Condensed:wght@300&family=Ysabeau+Infant:wght@300&family=Ysabeau+Office&family=Ysabeau+SC:wght@300&display=swap"
rel="stylesheet"
/>
<!-- Custom CSS Link -->
<link rel="stylesheet" href="style.css" />
<title>Weather Dashboard</title>
</head>
<body>
<header
class="custom-bg p-3 rounded-bottom text-center"
>
<h1 class="mb-3">Weather Dashboard</h1>
<p class="subheader frost">
Todays Date: <span id="currentDate"></span>
</p>
</header>
<main class="container my-5">
<div class="row d-flex justify-content-between">
<div id="search-style" class="my-3 col-lg-3 col-md-11 d-block rounded">
<form class="frost my-3 p-3 rounded">
<h3 class="my-3 w-100 border-bottom border-2 border-light">
Search for City:
</h3>
<input
id="cityname"
class="my-2 py-2 w-100 rounded"
type="text"
placeholder="Enter City Name"
/>
<input
id="searchBtn"
class="my-2 btn"
type="button"
value="Search"
/>
<input id="clearBtn" class="my-3 btn" type="button" value="Clear" />
</form>
<div class="recent frost my-3 p-3 rounded">
<h3 class="my-3 w-100 border-bottom border-2 border-light">
Recent Searches:
</h3>
<section id="history">
<!-- JavaScript Appended User's History -->
</section>
</div>
</div>
<aside id="all-weather" class="col-lg-8 col-md-11 my-3 rounded">
<div id="weather-container" class="frost w-90 p-4 mb-4 rounded">
<!-- JavaScript Appended City's Current Weather Goes Here -->
</div>
<h3
id="weather-board"
class="my-2 py-1 px-5 w-100"
></h3>
<div
id="forecast-container"
class="d-flex flex-wrap justify-content-around"
>
<!-- JavaScript Appended 5-Day Forecast Goes Here -->
</div>
</aside>
</div>
</main>
<!-- jQuery CDN Link -->
<script
src="https://code.jquery.com/jquery-3.7.0.min.js"
integrity="sha256-2Pmvv0kuTBOenSvLm6bvfBSSHrUJ+3A7x6P5Ebd07/g="
crossorigin="anonymous"
></script>
<!-- JavaScript Link -->
<script src="script.js"></script>
</body>
</html>