adding link to origin in PdfCreator
This commit is contained in:
@@ -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]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user