forked from R0Y15/WeatherNow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
145 lines (113 loc) · 4.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
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
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html lang="en">
<head>
<title>WeatherNow</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel="stylesheet" href="./css/style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
<link rel="icon" href="./css/favicon.ico" type="image/x-icon">
<script src="https://kit.fontawesome.com/170b2fd3fe.js" crossorigin="anonymous"></script>
<!-- Loader -->
<script src="https://unpkg.com/@dotlottie/player-component@latest/dist/dotlottie-player.mjs" type="module"></script>
</head>
<body>
<!-- onload="loader()" -->
<!-- Loader -->
<!-- <div class="preloader">
<div class="spinner"></div>
</div> -->
<div class="content">
<!-- navbar -->
<nav class="navbar">
<ul class="nav-list">
<li class="nav-item"><a href="#">Home</a></li>
<li class="nav-item">
<a href="./contributors.html">Contributors</a>
</li>
<li class="nav-item"><a href="./About.html">About</a></li>
</ul>
</nav>
<!-- body -->
<header>
<div class="homepage">
<span class="landing-text">WeatherNow</span> <br />
<span class="landing-text-2">Where Is The Sun? Is It Above Or Below The Clouds?</span>
</div>
</header>
<div class="container">
<div class="form">
<!-- DropDown Menu -->
<div class="dropdown">
<button name="line" class="dropbtn" id="button">Default</button>
<div class="dropdown-content">
<a name="line">Default</a>
<a name="bar">Bar</a>
<a name="doughnut">Doughnut</a>
<a name="polarArea">PolarArea</a>
<a name="radar">Radar</a>
</div>
</div>
<!-- End -->
<!-- <input id="input" type="text" placeholder="Enter a city name" /> -->
<!-- Input City Name -->
<input list="cities" id="input" placeholder="Enter or Select a city name">
<!-- Popular City Name -->
<datalist id="cities">
<!-- <option value="CurrentLocation"> -->
<option value="Bangalore">
<option value="Beijing">
<option value="Chicago">
<option value="Chennai">
<option value="Delhi">
<option value="Lucknow">
<option value="Mumbai">
<option value="Noida">
<option value="New York">
<option value="Tokyo">
<option value="Mysore">
<option value="Varansi">
</datalist>
<!-- Input End -->
<button id="button" class="button" onclick="getWeather()">
<span class="button-text">Go</span>
<img class="arrow" src="https://img.icons8.com/ios-filled/24/ffffff/long-arrow-right.png" alt="arrow">
</button>
<!-- Voice Search Button -->
<button id="voice-search-btn" class="button">
<i class="fas fa-microphone"></i>
</button>
</div>
<!-- Current Weather Location -->
<button id="currloc_button" onclick="getCurrLoc()">Use My Current Location</button>
<div id="weather-info"></div>
<!-- Displaying weather info -->
<div class="result-container" style="display: none">
<div id="loader" class="loader"></div>
<div id="result" class="result-box" style="display: none"></div>
<div id="aqi-info" class="aqi-box" style="display: none"></div>
</div>
<br><br>
<canvas id="hourlyChart" width="400" height="200"></canvas>
</div>
<!-- footer -->
<footer>
<div class="footer">
<div class="footer-content">
<div class="footer-section about">
<p>
<span class="light-text">WeatherNow is a weather application that displays the weather
of any city.</span>
<br />
© Roy™ <span id="copyrightYear"></span>
</p>
</div>
</div>
</div>
</footer>
</div>
<!-- scripts -->
<script src="./js/geolocation.js" type="module"></script>
<script src="./js/script.js" type="module"></script>
</body>
</html>