-
Notifications
You must be signed in to change notification settings - Fork 0
/
geekyWeather.html
40 lines (34 loc) · 1.62 KB
/
geekyWeather.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>API Data Processing</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chartjs-adapter-moment.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-annotation"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
<body>
<script type="module" src="geekyWeather.js"></script>
<h1 class="mt-3">Geeky Weather</h1>
<div class="container ">
<div class="row">
<div class="col">
<a type="button" class="btn btn-primary" href="geekyWeather.html?days=3">3 days</a>
<a type="button" class="btn btn-primary" href="geekyWeather.html?days=7">7 days</a>
</div>
</div>
</div>
<!-- Your HTML content here -->
<h2 class="mt-3">Forecast</h2>
<canvas id="chart"></canvas>
<h2 class="mt-4">'Feels Like' Temperature</h2>
<canvas id="tempChart"></canvas>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
</body>
</html>