-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadelaide.html
More file actions
80 lines (69 loc) · 2.4 KB
/
adelaide.html
File metadata and controls
80 lines (69 loc) · 2.4 KB
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
<html>
<head>
<meta charset="%UTF-8" />
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Australian Weather</title>
</head>
<body>
<script type="module" src="./adelaide.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.js">
</script>
<link rel="stylesheet" href="style.css">
<div id="top-box">
<h1>Australian Non-governmental Weather</h1>
<!-- <h1 id="Melbourne">Melbourne</h1> -->
<nav class="city-nav">
<button class="city-btn" id="melb">Melbourne</button>
<button class="city-btn" id="adel">Adelaide</button>
<button class="city-btn" id="sydn">Sydney</button>
<button class="city-btn" id="bris">Brisbane</button>
<button class="city-btn" id="more">More</button>
</nav>
</div>
<hr>
<div id="chart">
<canvas id="myChart" style="width: 40%;height: 80%;background-color:aliceblue;align-items:center;justify-content: center;display: flex;"></canvas>
<!-- <canvas id="myChart" style="width:100%;max-width:1500px;background-color:aliceblue;align-items:center;justify-content: center;display: flex;"></canvas> -->
</div>
<!-- <div id="feels-div">
<h2 id="feels2">You are valued.</h2>
</div> -->
<h1 id="placeholder2">Adelaide</h1>
<div id="idasdasd">
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js@^4"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@^4"></script>
<script type="module">
import * as root from './pkg/hot_or_not_3.js'
// myChart.destroy();
window.callbacks = root;
window.mutate_chart_object = function (v) {
if (v.id == ("bar")) {
v.options.scales.y1.ticks = {
callback:
function (value, _index, _values) {
return '$' + value.toFixed(2);
}
};
}
//v.destroy();
return v
};
</script>
<div id="bot-box">
<div class="row">
<button class="city-btn">Show Humidity $0.99</button>
<button class="city-btn">Show UV $0.99</button>
<button class="city-btn">Show Wind $0.99</button>
<button class="city-btn">Show Rainfall $0.99</button>
</div>
<div class="row">
<button class="city-btn">Unlock WA $2.99</button>
<button class="city-btn">Unlock NT $2.99</button>
<button class="city-btn">Unlock ACT $2.99</button>
<button class="city-btn">Follow me on Instagram $2.99</button>
</div>
</div>
</body>
</html>