From bf2cd363053ccaa94e14cf30d91b9bcafba73632 Mon Sep 17 00:00:00 2001 From: Frank Knoll Date: Sun, 14 Jul 2024 21:25:44 +0200 Subject: [PATCH] adding share button to HowBadIsMyBatch.html --- docs/BatchCodeSelectInitializer.js | 26 +- docs/HowBadIsMyBatch.html | 9878 +++++++++++++++++++++++++++- 2 files changed, 9763 insertions(+), 141 deletions(-) diff --git a/docs/BatchCodeSelectInitializer.js b/docs/BatchCodeSelectInitializer.js index 0090879e31d..5b7cc3f9d93 100644 --- a/docs/BatchCodeSelectInitializer.js +++ b/docs/BatchCodeSelectInitializer.js @@ -1,17 +1,21 @@ class BatchCodeSelectInitializer { - static initialize({ batchCodeSelectElement, batchCodeDetailsElement, batchCodeHeadingElement }) { + static initialize({ batchCodeSelectElement, urlSearchParam, batchCodeDetailsElement, batchCodeHeadingElement }) { const batchCodeDetailsView = new BatchCodeDetailsView(batchCodeDetailsElement); - batchCodeSelectElement.select2({ minimumInputLength: 4 }); - batchCodeSelectElement.on( - 'select2:select', - function (event) { - BatchCodeSelectInitializer.#onBatchCodeSelected( - { - batchcode: event.params.data.id, - batchCodeHeadingElement: batchCodeHeadingElement, - batchCodeDetailsView: batchCodeDetailsView - }); + Select2.initializeSelectElement( + { + selectElement: batchCodeSelectElement, + textOfOption2Select: urlSearchParam.get(), + onSelectOptionHavingValueAndText: (id, text) => { + BatchCodeSelectInitializer.#onBatchCodeSelected( + { + batchcode: id, + batchCodeHeadingElement: batchCodeHeadingElement, + batchCodeDetailsView: batchCodeDetailsView + }); + urlSearchParam.set(text); + }, + minimumInputLength: 4 }); batchCodeSelectElement.select2('open'); } diff --git a/docs/HowBadIsMyBatch.html b/docs/HowBadIsMyBatch.html index 3ee1dafd298..b9ca7f05ffe 100644 --- a/docs/HowBadIsMyBatch.html +++ b/docs/HowBadIsMyBatch.html @@ -1,47 +1,53 @@ + - - - - - -How Bad is My Batch? - - - + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + -
-
- -
-
- - -
-
-
-
-

How Bad is My Batch?

-
-
-
-

- Visit the main page How Bad is My Batch - -

-

- - -

-
-
-

-
-
-
-
-
-
-
-

Outcomes of Adverse Events

-
-
-
- -
-
-
-
-
-
-

Frequencies of Reported Symptoms

-
-
-
- - - - - - - -
SymptomFrequency
-
-
-
-
-
-
-
-
- - -
-
-
Data Source:
-
Vaccine Adverse Event +
+
+ +
+
+ + +
+
+
+
+

How Bad is My Batch?

+
+
+
+

+ Visit the main page How Bad is My Batch + +

+

+ + +

+
+
+

+
+
+
+
+
+
+
+

Outcomes of Adverse Events

+
+
+
+ +
+
+
+
+
+
+

Frequencies of Reported Symptoms

+
+
+
+ + + + + + + +
SymptomFrequency
+
+
+
+
+
+
+
+
+ + +
+
Visit also:
+
table of all batch codes +
+
Last updated:
+
July 05, 2024
+
+ Fork me on GitHub - -
-
-
- - - - - - - - - - - - - - + +
+ + + + + + + + + + + + + + + + + \ No newline at end of file