forked from R0Y15/WeatherNow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (51 loc) · 1.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>WeatherNow</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
<script src="https://kit.fontawesome.com/170b2fd3fe.js" crossorigin="anonymous"></script>
</head>
<body>
<!-- navbar -->
<nav class="navbar">
<ul class="nav-list">
<li class="nav-item"><a href="#">Home</a></li>
<li class="nav-item"><a href="#">Contributors</a></li>
<li class="nav-item"><a href="#">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">
<input id="input" type="text" placeholder="Enter a city name" />
<button id="button" onclick="getWeather()">GO</button>
</div>
<div class="result-container" style="display: none">
<div id="result" class="result-box" style="display: none"></div>
</div>
<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 app that shows you the weather of any city</span> <br />
made by the internet lead by Roy
</p>
</div>
</div>
</div>
</footer>
<script src="script.js"></script>
</body>
</html>