Skip to content

Instantly share code, notes, and snippets.

@danielschulz
danielschulz / schnelltest-availability.js
Created Mar 12, 2021 — forked from marco79cgn/schnelltest-availability.js
Shows the available amount of Covid Tests in your local drug store and online
View schnelltest-availability.js
let country = "de"; // replace with 'at' for shops in Austria
let storeId = 251;
let param = args.widgetParameter;
if (param != null && param.length > 0) {
if (param.indexOf(";") > 0) {
const paramSplit = param.split(";");
storeId = paramSplit[0];
country = paramSplit[1].toLowerCase();
} else {
storeId = param;