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
// Thanks to Dänu Probst (https://github.com/daenuprobst) for cleanly aggregating the data and | |
// Kevin Kub (https://github.com/kevinkub) for the widget skeleton! | |
class IncidenceWidget { | |
constructor() { | |
this.apiUrlCantons = (location) => `https://app.adintegra.com/covid/?c=${location}` | |
this.AbbrToCanton = { | |
'AG': 'Aargau', | |
'AI': 'Appenzell IR', | |
'AR': 'Appenzell AR', |