diff --git a/docs/SymptomsCausedByDrugs/index.html b/docs/SymptomsCausedByDrugs/index.html index 7012e943967..40cb2ecc4b2 100644 --- a/docs/SymptomsCausedByDrugs/index.html +++ b/docs/SymptomsCausedByDrugs/index.html @@ -68,7 +68,10 @@ downloadPrrBySymptomTableButton: document.querySelector("#downloadPrrBySymptomTable"), valueName: name }, - pdfButton: document.querySelector("#PDF") + pdf: { + pdfButton: document.querySelector("#PDF"), + valueName: 'Drugs' + } } ); }); diff --git a/docs/SymptomsCausedByDrugs/js/PageInitializer.js b/docs/SymptomsCausedByDrugs/js/PageInitializer.js index f4656369758..047f54b56e8 100644 --- a/docs/SymptomsCausedByDrugs/js/PageInitializer.js +++ b/docs/SymptomsCausedByDrugs/js/PageInitializer.js @@ -1,11 +1,11 @@ class PageInitializer { - static initializePage({ symptom, vaccine, pdfButton }) { + static initializePage({ symptom, vaccine, pdf }) { const prrByVaccineTableView = PageInitializer.#configureSymptom(symptom); const prrBySymptomTableView = PageInitializer.#configureVaccine(vaccine); PageInitializer.#configurePDFButton( { - pdfButton, + pdf, symptom: { selectElement: symptom.symptomSelectElement, table: prrByVaccineTableView.getTable() @@ -47,11 +47,11 @@ class PageInitializer { return prrBySymptomTableView; } - static #configurePDFButton({ pdfButton, symptom, vaccine }) { + static #configurePDFButton({ pdf: { pdfButton, valueName }, symptom, vaccine }) { pdfButton.addEventListener( 'click', () => PdfCreator - .createPdf({ symptom, vaccine }) + .createPdf({ symptom, vaccine, valueName }) .open()); } } diff --git a/docs/SymptomsCausedByDrugs/js/PdfCreator.js b/docs/SymptomsCausedByDrugs/js/PdfCreator.js index 959d8664d8f..839e96ee7b1 100644 --- a/docs/SymptomsCausedByDrugs/js/PdfCreator.js +++ b/docs/SymptomsCausedByDrugs/js/PdfCreator.js @@ -1,6 +1,6 @@ class PdfCreator { - static createPdf({ symptom, vaccine }) { + static createPdf({ symptom, vaccine, valueName }) { const documentDefinition = { content: [ { @@ -10,23 +10,23 @@ class PdfCreator { margin: [0, 0, 0, 20], bold: true }, - ...PdfCreator.#getWorstDrugsSection(symptom), + ...PdfCreator.#getWorstDrugsSection(symptom, valueName), ...PdfCreator.#getStrongestSymptoms(vaccine) ] } return pdfMake.createPdf(documentDefinition); } - static #getWorstDrugsSection({ selectElement, table }) { + static #getWorstDrugsSection({ selectElement, table }, valueName) { return [ - PdfCreator.#getHeading(`Worst Drugs for ${PdfCreator.#getSelection(selectElement)}`), + PdfCreator.#getHeading(`Worst ${valueName} for "${PdfCreator.#getSelection(selectElement)}"`), PdfCreator.#getTable(table) ]; } static #getStrongestSymptoms({ selectElement, table }) { return [ - PdfCreator.#getHeading(`Strongest Symptoms for ${PdfCreator.#getSelection(selectElement)}`), + PdfCreator.#getHeading(`Strongest Symptoms for "${PdfCreator.#getSelection(selectElement)}"`), PdfCreator.#getTable(table) ]; } diff --git a/docs/SymptomsCausedByVaccines/index.html b/docs/SymptomsCausedByVaccines/index.html index e175b76f432..1f8895e8e19 100644 --- a/docs/SymptomsCausedByVaccines/index.html +++ b/docs/SymptomsCausedByVaccines/index.html @@ -1,43 +1,53 @@ + - - - - - -VAERS Safety Signal - - - + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + -
-
- -
-
- - -
-
-
-
-

VAERS Safety Signal

- + + + + + + + + + + + + + + + \ No newline at end of file