-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (48 loc) · 1.91 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Skizzen Klima Biennale</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<canvas id="world"></canvas>
<select style="position: fixed; top: 0.5em; right: 0.5em">
<option value="Alsergrund">Alsergrund</option>
<option value="Auray">Auray</option>
<option value="Brigittenau">Brigittenau</option>
<option value="Döbling">Döbling</option>
<option value="Donaustadt">Donaustadt</option>
<option value="Floridsdorf">Floridsdorf</option>
<option value="Hernals">Hernals</option>
<option value="Hietzing">Hietzing</option>
<option value="Innere Stadt">Innere Stadt</option>
<option value="Josefstadt">Josefstadt</option>
<option value="Landstraße">Landstraße</option>
<option value="Leopoldstadt">Leopoldstadt</option>
<option value="Liesing">Liesing</option>
<option value="Margareten">Margareten</option>
<option value="Mariahilf">Mariahilf</option>
<option value="Meidling">Meidling</option>
<option value="Neubau">Neubau</option>
<option value="Ottakring">Ottakring</option>
<option value="Penzing">Penzing</option>
<option value="Rudolfsheim-Fünfhaus">Rudolfsheim-Fünfhaus</option>
<option value="Simmering">Simmering</option>
<option value="Währing">Währing</option>
<option value="Wieden">Wieden</option>
</select>
<script type="module" src="main.js"></script>
<script>
document.addEventListener("DOMContentLoaded", () => {
const select = document.querySelector("select");
select.addEventListener("change", function () {
initMatterJs(this.value);
});
select.selectedIndex = 0;
select.dispatchEvent(new Event("change"));
});
</script>
</body>
</html>