-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (86 loc) · 3.25 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
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Revenge of the Cyclic Cicadas</title>
<link rel="stylesheet" href="index.css"/>
<script type="module" src="preprocessed.js"></script>
<script type="module" src="index.js"></script>
</head>
<body id="layout">
<div id="sidebar">
<header>
<a href="https://github.com/YawarRaza7349/RevengeOfTheCyclicCicadas" id="github">GitHub repo</a>
</header>
<h1>
Cicadas in U.S. states projected for year
<span role="region" aria-live="polite" id="year">2024</span>
</h1>
<hr/>
<section>
<h2>Controls</h2>
<div id="controls">
<div>
<label for="year-textbox">
<span>Jump to year</span>
<input type="number" required="" value="2024" id="year-textbox" class="textbox"/>
</label>
</div>
<div>
<label for="slider">
<span>Slide to year</span>
<input type="range" max="220" value="0" id="slider"/>
</label>
</div>
<div>
<label for="frequency-textbox">
<span>Animation frequency<br/>(frames per minute)</span>
<input type="number" min="0" step="any" value="0" list="frequencies" id="frequency-textbox" class="textbox"/>
<datalist id="frequencies">
<option value="0">Don't animate</option>
<option value="30">30 frames per minute</option>
<option value="60">60 frames per minute</option>
<option value="90">90 frames per minute</option>
<option value="120">120 frames per minute</option>
</datalist>
</label>
</div>
<div>
<label for="period-textbox">
<span>Animation period<br/>(milliseconds between frames)</span>
<input type="number" min="0" step="any" value="" list="periods" id="period-textbox" class="textbox"/>
<datalist id="periods">
<option value="0">Don't animate</option>
<option value="500">500ms between frames</option>
<option value="1000">1000ms between frames</option>
<option value="1500">1500ms between frames</option>
<option value="2000">2000ms between frames</option>
</datalist>
</label>
</div>
</div>
</section>
<hr/>
<section>
<h2>Data</h2>
<div id="data" role="region" aria-live="polite" aria-atomic="true" aria-busy="true">
<div id="state-count">
<span id="num-states">24</span> states with cicadas
</div>
<dl id="data-list">
</dl>
</div>
<aside>
Disclaimer: The data <a href="https://github.com/YawarRaza7349/CyclicCicadas/issues/1">may not be accurate</a>.
This app is for entertainment purposes only.
</aside>
</section>
</div>
<div id="map">
<svg viewBox="0 0 959 593" id="map-svg" aria-details="data">
<title>A map of the U.S. that visualizes the data</title>
</svg>
</div>
</body>
</html>