This repository has been archived by the owner on May 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use non-module frappe-charts so that HTML gets minified properly
html-minifier currently leaves <script type="module"> contents intact: kangax/html-minifier#1085 Until that is fixed, let’s stick to the non-module version.
- Loading branch information
1 parent
6756fce
commit ef86e92
Showing
2 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html><html lang=en><meta charset=utf-8><title>COVID-19 vaccination doses administered in Germany, per state</title><meta content="width=device-width,initial-scale=1" name=viewport><style>html{font:1rem/1.6 sans-serif}.chart{width:100%}</style><link href=favicon.svg rel=icon><h1>COVID-19 vaccination doses administered in Germany, per state</h1><h2 id=per-mille>COVID-19 vaccination doses administered per 1,000 inhabitants</h2><div class=chart id=chart-per-mille></div><h2 id=baden-württemberg>Total number of COVID-19 vaccination doses administered in Baden-Württemberg</h2><p>In Baden-Württemberg, 6.65 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-baden-württemberg></div><h2 id=bayern>Total number of COVID-19 vaccination doses administered in Bayern</h2><p>In Bayern, 10.36 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-bayern></div><h2 id=berlin>Total number of COVID-19 vaccination doses administered in Berlin</h2><p>In Berlin, 9.21 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-berlin></div><h2 id=brandenburg>Total number of COVID-19 vaccination doses administered in Brandenburg</h2><p>In Brandenburg, 5.98 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-brandenburg></div><h2 id=bremen>Total number of COVID-19 vaccination doses administered in Bremen</h2><p>In Bremen, 10.27 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-bremen></div><h2 id=hamburg>Total number of COVID-19 vaccination doses administered in Hamburg</h2><p>In Hamburg, 7.73 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-hamburg></div><h2 id=hessen>Total number of COVID-19 vaccination doses administered in Hessen</h2><p>In Hessen, 9.14 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-hessen></div><h2 id=mecklenburg-vorpommern>Total number of COVID-19 vaccination doses administered in Mecklenburg-Vorpommern</h2><p>In Mecklenburg-Vorpommern, 16.74 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-mecklenburg-vorpommern></div><h2 id=niedersachsen>Total number of COVID-19 vaccination doses administered in Niedersachsen</h2><p>In Niedersachsen, 6.78 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-niedersachsen></div><h2 id=nordrhein-westfalen>Total number of COVID-19 vaccination doses administered in Nordrhein-Westfalen</h2><p>In Nordrhein-Westfalen, 6.94 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-nordrhein-westfalen></div><h2 id=rheinland-pfalz>Total number of COVID-19 vaccination doses administered in Rheinland-Pfalz</h2><p>In Rheinland-Pfalz, 8.91 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-rheinland-pfalz></div><h2 id=saarland>Total number of COVID-19 vaccination doses administered in Saarland</h2><p>In Saarland, 10.26 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-saarland></div><h2 id=sachsen>Total number of COVID-19 vaccination doses administered in Sachsen</h2><p>In Sachsen, 5.82 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-sachsen></div><h2 id=sachsen-anhalt>Total number of COVID-19 vaccination doses administered in Sachsen-Anhalt</h2><p>In Sachsen-Anhalt, 11.12 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-sachsen-anhalt></div><h2 id=schleswig-holstein>Total number of COVID-19 vaccination doses administered in Schleswig-Holstein</h2><p>In Schleswig-Holstein, 13.23 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-schleswig-holstein></div><h2 id=thüringen>Total number of COVID-19 vaccination doses administered in Thüringen</h2><p>In Thüringen, 5.87 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-thüringen></div><p><a href=https://github.com/mathiasbynens/covid-19-vaccinations-germany/blob/main/data/data.csv>View the raw data.</a></p><script type=module>import { Chart } from 'https://cdn.jsdelivr.net/npm/[email protected]/dist/frappe-charts.min.esm.js'; | ||
<!DOCTYPE html><html lang=en><meta charset=utf-8><title>COVID-19 vaccination doses administered in Germany, per state</title><meta content="width=device-width,initial-scale=1" name=viewport><style>html{font:1rem/1.6 sans-serif}.chart{width:100%}</style><link href=favicon.svg rel=icon><h1>COVID-19 vaccination doses administered in Germany, per state</h1><h2 id=per-mille>COVID-19 vaccination doses administered per 1,000 inhabitants</h2><div class=chart id=chart-per-mille></div><h2 id=baden-württemberg>Total number of COVID-19 vaccination doses administered in Baden-Württemberg</h2><p>In Baden-Württemberg, 6.65 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-baden-württemberg></div><h2 id=bayern>Total number of COVID-19 vaccination doses administered in Bayern</h2><p>In Bayern, 10.36 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-bayern></div><h2 id=berlin>Total number of COVID-19 vaccination doses administered in Berlin</h2><p>In Berlin, 9.21 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-berlin></div><h2 id=brandenburg>Total number of COVID-19 vaccination doses administered in Brandenburg</h2><p>In Brandenburg, 5.98 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-brandenburg></div><h2 id=bremen>Total number of COVID-19 vaccination doses administered in Bremen</h2><p>In Bremen, 10.27 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-bremen></div><h2 id=hamburg>Total number of COVID-19 vaccination doses administered in Hamburg</h2><p>In Hamburg, 7.73 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-hamburg></div><h2 id=hessen>Total number of COVID-19 vaccination doses administered in Hessen</h2><p>In Hessen, 9.14 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-hessen></div><h2 id=mecklenburg-vorpommern>Total number of COVID-19 vaccination doses administered in Mecklenburg-Vorpommern</h2><p>In Mecklenburg-Vorpommern, 16.74 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-mecklenburg-vorpommern></div><h2 id=niedersachsen>Total number of COVID-19 vaccination doses administered in Niedersachsen</h2><p>In Niedersachsen, 6.78 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-niedersachsen></div><h2 id=nordrhein-westfalen>Total number of COVID-19 vaccination doses administered in Nordrhein-Westfalen</h2><p>In Nordrhein-Westfalen, 6.94 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-nordrhein-westfalen></div><h2 id=rheinland-pfalz>Total number of COVID-19 vaccination doses administered in Rheinland-Pfalz</h2><p>In Rheinland-Pfalz, 8.91 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-rheinland-pfalz></div><h2 id=saarland>Total number of COVID-19 vaccination doses administered in Saarland</h2><p>In Saarland, 10.26 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-saarland></div><h2 id=sachsen>Total number of COVID-19 vaccination doses administered in Sachsen</h2><p>In Sachsen, 5.82 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-sachsen></div><h2 id=sachsen-anhalt>Total number of COVID-19 vaccination doses administered in Sachsen-Anhalt</h2><p>In Sachsen-Anhalt, 11.12 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-sachsen-anhalt></div><h2 id=schleswig-holstein>Total number of COVID-19 vaccination doses administered in Schleswig-Holstein</h2><p>In Schleswig-Holstein, 13.23 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-schleswig-holstein></div><h2 id=thüringen>Total number of COVID-19 vaccination doses administered in Thüringen</h2><p>In Thüringen, 5.87 vaccination doses have been administered per 1,000 inhabitants.<div class=chart id=chart-cumulative-thüringen></div><p><a href=https://github.com/mathiasbynens/covid-19-vaccinations-germany/blob/main/data/data.csv>View the raw data.</a></p><script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/frappe-charts.min.iife.js></script><script>const Chart = frappe.Chart; | ||
|
||
const formatter = new Intl.NumberFormat('en'); | ||
const perMilleFormatter = new Intl.NumberFormat('en', { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,9 @@ | |
<div id="chart-cumulative-<% print(state.toLowerCase()) %>" class="chart"></div> | ||
<% } %> | ||
<p><a href="https://github.com/mathiasbynens/covid-19-vaccinations-germany/blob/main/data/data.csv">View the raw data.</a></p> | ||
<script type="module"> | ||
import { Chart } from 'https://cdn.jsdelivr.net/npm/[email protected]/dist/frappe-charts.min.esm.js'; | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/frappe-charts.min.iife.js"></script> | ||
<script> | ||
const Chart = frappe.Chart; | ||
|
||
const formatter = new Intl.NumberFormat('en'); | ||
const perMilleFormatter = new Intl.NumberFormat('en', { | ||
|