[F.END] B.END URL as argument

This commit is contained in:
giuliof 2020-09-20 23:45:22 +02:00
parent 3c1e2f69ec
commit 1741c2a0ca
1 changed files with 5 additions and 2 deletions

View File

@ -106,10 +106,13 @@ function zerocalcareDisplay() {
}
}
function zerocalcareTrigger() {
function zerocalcareTrigger(url) {
if (typeof url !== "string")
return
xhr = new XMLHttpRequest();
xhr.onload = zerocalcareDisplay;
xhr.open('GET', 'https://golem.linux.it/cgi/zerocalcare/main.py?interval=4weeks', true);
xhr.open('GET', url, true);
xhr.send(null);
}