adding link to origin in PdfCreator

This commit is contained in:
Frank Knoll
2024-07-17 00:19:24 +02:00
parent 34107357cf
commit c50f2acdf8

View File

@@ -9,7 +9,8 @@ class PdfCreator {
content: [ content: [
PdfCreator.#getPageHeading(heading), PdfCreator.#getPageHeading(heading),
...PdfCreator.#getWorstDrugsSection(symptom, valueName), ...PdfCreator.#getWorstDrugsSection(symptom, valueName),
...PdfCreator.#getStrongestSymptomsSection(vaccine) ...PdfCreator.#getStrongestSymptomsSection(vaccine),
PdfCreator.#link2Origin()
] ]
}; };
} }
@@ -113,4 +114,20 @@ class PdfCreator {
fillOpacity: 0.1, fillOpacity: 0.1,
}; };
} }
static #link2Origin() {
return {
text:
[
'Origin: ',
{
text: window.location.href,
color: 'blue',
decoration: 'underline',
link: window.location.href
}
],
margin: [0, 10]
}
}
} }