-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
128 lines (122 loc) · 5.11 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
<!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 for bootstrap -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
/>
<!-- link ofr css normalization -->
<link rel="stylesheet" href="./assets/css/normalize.css" />
<!-- link for custom css -->
<link rel="stylesheet" href="./assets/css/style.css" />
<!-- tab title and favicon added -->
<title>Traver's Weather Dashboard</title>
<link rel="shortcut icon" type="image/jpg" href="./assets/10d@2x.png" />
</head>
<body>
<header class="site-header" id="top" role="banner">
<div class="container">
<h1 class="logo" alt="Logo">
Live <span id="bold">Weather</span> Dashboard
</h1>
</div>
<div>
<h3 class="header-date" id="bold"></h3>
</div>
</header>
<main class="row">
<!-- city selector sidebar and history field -->
<section class="col-4 border-right border-3 border-light justify-content-around">
<div class="col-12">
<div class="col-12">
<input id="cityinputfield" type="text" placeholder="Enter City">
<button id="citiessearch">Search Cities</button>
</div>
</div>
<div class="col-12" id="cityHistoryBox">
<ul id="cityHistory"></ul>
</div>
<!-- weather status, current, 5-day forecast cards -->
</section class="">
<!-- Current weather card -->
<div class="col-7">
<ul id="currentWeather">
<li style="font-weight:bold;" id="cityname"></li>
<li><img class="icon" id="todayIcon" alt="Todays Weather Icon"></li>
<li id="todayTemp"></li>
<li id="todayWind"></li>
<li id="todayHumid"></li>
<li id="todayUV"></li>
</ul>
</div>
<!-- 5-day forcast cards -->
<section class="row col-12 justify-content-around my-2 border-top border-light p-3" id="5day">
<h2 class="row text-light align-self-start justify-content-center">5-Day Forecast</h2>
<div class="row col-12 justify-content-around my-1">
<!-- tomorrow -->
<div class="col-8 col-lg-2 mb-3 p-1">
<ul id="1" class="card fivedaycard">
<li style="font-weight:bold;" id="date1"></li>
<li><img class="icon" id="1Icon" alt="Future Weather Icon"></li>
<li id="1Temp"></li>
<li id="1Wind"></li>
<li id="1Humid"></li>
</ul>
</div>
<!-- 2 days from today -->
<div class="col-8 col-lg-2 mb-3 p-1">
<ul id="2" class="card fivedaycard">
<li style="font-weight:bold;" id="date2"></li>
<li><img class="icon" id="2Icon" alt="Future Weather Icon"></li>
<li id="2Temp"></li>
<li id="2Wind"></li>
<li id="2Humid"></li>
</ul>
</div>
<!-- 3 days from today -->
<div class="col-8 col-lg-2 mb-3 p-1">
<ul id="3" class="card fivedaycard">
<li style="font-weight:bold;" id="date3"></li>
<li><img class="icon" id="3Icon" alt="Future Weather Icon"></li>
<li id="3Temp"></li>
<li id="3Wind"></li>
<li id="3Humid"></li>
</ul>
</div>
<!-- 4 days from today -->
<div class="col-8 col-lg-2 mb-3 p-1">
<ul id="4" class="card fivedaycard">
<li style="font-weight:bold;" id="date4"></li>
<li><img class="icon" id="4Icon" alt="Future Weather Icon"></li>
<li id="4Temp"></li>
<li id="4Wind"></li>
<li id="4Humid"></li>
</ul>
</div>
<!-- 5 days from today -->
<div class="col-8 col-lg-2 mb-3 p-1">
<ul id="5" class="card fivedaycard">
<li style="font-weight:bold;" id="date5"></li>
<li><img class="icon" id="5Icon" alt="Future Weather Icon"></li>
<li id="5Temp"></li>
<li id="5Wind"></li>
<li id="5Humid"></li>
</ul>
</div>
</div>
</section>
<section>
</section>
</main>
<!-- script for jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- script for moment js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<!-- custom script -->
<script src="./script.js"></script>
</body>
</html>