Repository navigation
Expand file tree
/
Copy pathembed2.html
More file actions
executable file
·49 lines (38 loc) · 1.77 KB
/
Copy pathembed2.html
File metadata and controls
executable file
·49 lines (38 loc) · 1.77 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Covid-19 Draft Map</title>
<!-- Import Vega & Vega-Lite (does not have to be from CDN) -->
<script src="https://cdn.jsdelivr.net/npm/vega@5"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-lite@4"></script>
<!-- Import vega-embed -->
<script src="https://cdn.jsdelivr.net/npm/vega-embed@6"></script>
<script src="map1.js"></script>
<link href="embed2.css" rel="stylesheet">
<style>.background {fill: transparent; stroke: transparent !important;}</style>
</head>
<body>
<!--Embed2 has Ph2-delivered maps, embedded in staging-->
<div class="map-container center-me">
<form name="chooser">
<div class="map-chooser" id="mapRadio" style="font-size: 12px;">
<input type="radio" id="rate" name="mapRadioGroup" value="Case Rate" checked>
<label for="rate">Case rate</label>
<input type="radio" id="deathrate" name="mapRadioGroup" value="Death Rate">
<label for="deathrate">Death rate</label>
<input type="radio" id="percent" name="mapRadioGroup" value="Percent Positive">
<label for="percent">Percent positive tests</label>
<br>
<input type="radio" id="count" name="mapRadioGroup" value="Case Count">
<label for="count">Case count</label>
<input type="radio" id="deathcount" name="mapRadioGroup" value="Death Count">
<label for="deathcount">Death count</label>
</div>
</form>
<div class="vis" id="map"></div>
</div>
</div>
</body>
</html>