Skip to content

Commit

Permalink
Update bloodDonationBarometerWidget.js
Browse files Browse the repository at this point in the history
* added widget url for each DRK/SRK entity > just click on the widget and it will open the website of the entity
  • Loading branch information
bjoerrrn authored Apr 30, 2022
1 parent 23ee6b4 commit 9ba2bea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bloodDonationBarometerWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

// Licence: GPL-3.0 License https://github.com/bjoerrrn/BloodDonationBarometer/blob/main/LICENSE
// Source: https://github.com/bjoerrrn/BloodDonationBarometer
// Version: 0.1.7

// Version: 0.1.8

let rk={};

Expand Down Expand Up @@ -98,6 +97,9 @@ async function buildWidget() {
// sub headlines
drawText(rk[loc]["lbl"],15,35,75,Color.white(),true);

// widget url
widget.url = rk[loc]["url"];

// create request object to load data from html site
let request = new Request(rk[loc]["url"])
let payload = await request.loadString()
Expand Down

0 comments on commit 9ba2bea

Please sign in to comment.