-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (65 loc) · 2.32 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
<!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">
<title>Weather Average</title>
<link rel="stylesheet" href="style.css">
</head>
<body style="font-family: 'Courier New', Courier, monospace;">
<div style="width: auto; display: block; margin: auto; margin-top: 30px; margin-bottom: 30px;">
<center>
<input type="number" style="font-family: 'Courier New', Courier, monospace;" id="temp" placeholder="temp" autofocus>
<input type="date" style="font-family: 'Courier New', Courier, monospace; " id="date" placeholder="date">
<button onclick="add_list()" style="font-family: 'Courier New', Courier, monospace;">Add</button>
<button onclick="delete_list()" style="font-family: 'Courier New', Courier, monospace;">Delete</button>
<button onclick="find_average_temp()" style="font-family: 'Courier New', Courier, monospace;">Show Average</button>
<p id="temps" style="color: rgb(180, 180, 180);"></p>
</center>
</div>
<center>
<table>
<tr>
<td>
<p>temp</p>
</td>
<td>
<p id="temps1" style="color: rgb(233, 71, 248);"></p>
</td>
</tr>
<tr>
<td>
<p>total</p>
</td>
<td>
<p id="total1" style=" color: forestgreen;"></p>
</td>
</tr>
<tr>
<td>
<p>equation</p>
</td>
<td>
<p id="equation1" style=" color: forestgreen;"></p>
</td>
</tr>
<tr>
<td>
<p>average</p>
</td>
<td>
<p id="average1" style=" color: forestgreen;"></p>
</td>
</tr>
</table>
</center>
<center>
<div id="canvasdiv">
<canvas id="myChart"></canvas>
</div>
</center>
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>
<script src="main.js"></script>
</body>
</html>