-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwidget.html
More file actions
64 lines (61 loc) · 2.28 KB
/
Copy pathwidget.html
File metadata and controls
64 lines (61 loc) · 2.28 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="index.css">
<title>Stacja pogodowa</title>
<script>
const chartHeight = 150;
</script>
<script src="https://cdn.jsdelivr.net/npm/vega@5.28.0"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-lite@5.18.0"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-embed@6.24.0"></script>
<script src="index.js"></script>
</head>
<body onload="start(false);" onhashchange="start(true);">
<div width="900px" height="450">
<div class="windrose_widget">
<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" transform="scale(1)">
<circle class="outer" stroke-dasharray="75 3.55" transform="rotate(1 200,200)"/>
<circle id="greey" class="inner" stroke="lightgray" />
<circle id="possible" class="inner" stroke="yellow"/>
<circle id="recommended" class="inner" stroke="green"/>
<circle class="dot"/>
<polygon id="arrow" points="200,160 185,120 200,130 215,120"/>
<text id="updated" class="text" x="300" y="30" fill="red" onclick="start(true)">⟳</text>
<text class="text" x="50%" y="9%" >N</text>
<text class="text" x="50%" y="94%">S</text>
<text class="text" x="7%" y="52%" >W</text>
<text class="text" x="93%" y="52%">E</text>
</svg>
<div class="boxes">
<div id="wind" class="box">
<div class="indicator"></div>
<div class="name">WIND</div>
<div class="value">? m/s</div>
</div>
<div id="gust" class="box">
<div class="indicator"></div>
<div class="name">GUST</div>
<div class="value">? m/s</div>
</div>
<div id="direction" class="box">
<div class="indicator"></div>
<div class="name">DIRECTION</div>
<div class="value">? °</div>
</div>
<div id="temperature" class="box">
<div class="indicator"></div>
<div class="name">TEMP</div>
<div class="value">? ℃</div>
</div>
</div>
</div>
<div class="charts_widget">
<div class="chart" id="speedChart"></div>
<div class="chart" id="directionChart"></div>
<div class="chart" id="tempChart"></div>
</div>
</div>
</body>
</html>