From 2d57022b12d4d336ae4f10ea44852789ca3d7f88 Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Sun, 11 Dec 2022 20:47:19 +0100 Subject: [PATCH] info page --- commands/stats.ts | 1 + data/Wien.json | 3 +- index.html | 4 +- package-lock.json | 1847 ++++++++++----------------------------------- package.json | 2 +- src/domutils.ts | 23 + src/info.ts | 86 +++ src/main.ts | 1 + src/map.ts | 12 +- src/popups.ts | 3 + src/router.ts | 1 + src/style.scss | 106 ++- 12 files changed, 613 insertions(+), 1476 deletions(-) create mode 100644 src/info.ts diff --git a/commands/stats.ts b/commands/stats.ts index b7377f2..7664eb3 100644 --- a/commands/stats.ts +++ b/commands/stats.ts @@ -4,6 +4,7 @@ import type {Crossing} from "../interfaces"; function runstats() { const data: Crossing[] = JSON.parse(fs.readFileSync("../data/Wien.json", 'utf8')); + console.log("total", data.length) const bezirke = data.map(c => c.bezirk!) const counts: { [key: number]: number } = {}; diff --git a/data/Wien.json b/data/Wien.json index c13b861..cde6756 100644 --- a/data/Wien.json +++ b/data/Wien.json @@ -939,7 +939,6 @@ "name": "Mariahilfer Straße/Neubaugasse", "bezirk": 6, "type": "prideFlag", - "comment": "Sind es zwei separate Zebrastreifen?", "sources": [ { "type": "news", @@ -1420,4 +1419,4 @@ "length": 30.3 } } -] \ No newline at end of file +] diff --git a/index.html b/index.html index e7156dd..55dda5f 100644 --- a/index.html +++ b/index.html @@ -7,11 +7,11 @@
-