From fcd6328cf91ca16079b93c19416ce9b2b5cecfeb Mon Sep 17 00:00:00 2001 From: Frank Knoll Date: Sun, 14 Jul 2024 20:35:39 +0200 Subject: [PATCH 1/7] removing some unused links --- src/help.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/help.txt b/src/help.txt index cd81f2509b8..b9db1673e52 100644 --- a/src/help.txt +++ b/src/help.txt @@ -4,8 +4,6 @@ Local: - http://www.howbadismybatch.info/VaccineDistributionByZipcode.html - http://www.howbadismybatch.info/SymptomsCausedByVaccines/index.html http://www.howbadismybatch.info/SymptomsCausedByVaccines/test/index.test.html -- http://www.howbadismybatch.info/SymptomsCausedByCOVIDLots/index.html - http://www.howbadismybatch.info/SymptomsCausedByCOVIDLots/test/index.test.html Live: - https://knollfrank.github.io/HowBadIsMyBatch/batchCodeTable.html @@ -13,8 +11,6 @@ Live: - https://knollfrank.github.io/HowBadIsMyBatch/VaccineDistributionByZipcode.html - https://knollfrank.github.io/HowBadIsMyBatch/SymptomsCausedByVaccines/index.html https://knollfrank.github.io/HowBadIsMyBatch/SymptomsCausedByVaccines/test/index.test.html -- https://knollfrank.github.io/HowBadIsMyBatch/SymptomsCausedByCOVIDLots/index.html - https://knollfrank.github.io/HowBadIsMyBatch/SymptomsCausedByCOVIDLots/test/index.test.html jupyter notebook From e68f284d6eb5ab08c8f21d89bee6d6ad3210830e Mon Sep 17 00:00:00 2001 From: Frank Knoll Date: Sun, 14 Jul 2024 20:37:00 +0200 Subject: [PATCH 2/7] adapting links --- src/help.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/help.txt b/src/help.txt index b9db1673e52..f085baec496 100644 --- a/src/help.txt +++ b/src/help.txt @@ -4,6 +4,7 @@ Local: - http://www.howbadismybatch.info/VaccineDistributionByZipcode.html - http://www.howbadismybatch.info/SymptomsCausedByVaccines/index.html http://www.howbadismybatch.info/SymptomsCausedByVaccines/test/index.test.html +- http://www.howbadismybatch.info/SymptomsCausedByDrugs/index.html Live: - https://knollfrank.github.io/HowBadIsMyBatch/batchCodeTable.html @@ -11,6 +12,7 @@ Live: - https://knollfrank.github.io/HowBadIsMyBatch/VaccineDistributionByZipcode.html - https://knollfrank.github.io/HowBadIsMyBatch/SymptomsCausedByVaccines/index.html https://knollfrank.github.io/HowBadIsMyBatch/SymptomsCausedByVaccines/test/index.test.html +- https://knollfrank.github.io/HowBadIsMyBatch/SymptomsCausedByDrugs/index.html jupyter notebook From c302dedd055fb70088ed79bf5f28fe2d7ef82f97 Mon Sep 17 00:00:00 2001 From: Frank Knoll Date: Sun, 14 Jul 2024 20:40:25 +0200 Subject: [PATCH 3/7] refactoring --- docs/SymptomsCausedByDrugs/index.html | 6 +++--- docs/SymptomsCausedByDrugs/js/PageInitializer.js | 12 ++++++------ .../js/{SearchParam.js => URLSearchParam.js} | 2 +- docs/SymptomsCausedByVaccines/index.html | 6 +++--- docs/UrlUtils.js | 14 +++++++------- 5 files changed, 20 insertions(+), 20 deletions(-) rename docs/SymptomsCausedByDrugs/js/{SearchParam.js => URLSearchParam.js} (90%) diff --git a/docs/SymptomsCausedByDrugs/index.html b/docs/SymptomsCausedByDrugs/index.html index 44d9fec4064..3ca54b1c2f1 100644 --- a/docs/SymptomsCausedByDrugs/index.html +++ b/docs/SymptomsCausedByDrugs/index.html @@ -36,7 +36,7 @@ - + - +
+

+ Data Source + +

Fork me on GitHub diff --git a/docs/SymptomsCausedByVaccines/index.html b/docs/SymptomsCausedByVaccines/index.html index cb293acc7de..44ed417b496 100644 --- a/docs/SymptomsCausedByVaccines/index.html +++ b/docs/SymptomsCausedByVaccines/index.html @@ -4218,14 +4218,8 @@
-

- Data Source - -

-
+
@@ -4243,6 +4237,11 @@
+

+ Data Source + +

Fork me on GitHub From bf2cd363053ccaa94e14cf30d91b9bcafba73632 Mon Sep 17 00:00:00 2001 From: Frank Knoll Date: Sun, 14 Jul 2024 21:25:44 +0200 Subject: [PATCH 5/7] 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 From c9b76253ff42bc86dc3040a1a6ea1883294a12ff Mon Sep 17 00:00:00 2001 From: Frank Knoll Date: Sun, 14 Jul 2024 21:32:25 +0200 Subject: [PATCH 6/7] refactoring --- docs/BatchCodeSelectInitializer.js | 4 ++-- docs/SymptomsCausedByDrugs/js/PageInitializer.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/BatchCodeSelectInitializer.js b/docs/BatchCodeSelectInitializer.js index 5b7cc3f9d93..ce7ec78dbbd 100644 --- a/docs/BatchCodeSelectInitializer.js +++ b/docs/BatchCodeSelectInitializer.js @@ -5,6 +5,7 @@ class BatchCodeSelectInitializer { Select2.initializeSelectElement( { selectElement: batchCodeSelectElement, + minimumInputLength: 4, textOfOption2Select: urlSearchParam.get(), onSelectOptionHavingValueAndText: (id, text) => { BatchCodeSelectInitializer.#onBatchCodeSelected( @@ -14,8 +15,7 @@ class BatchCodeSelectInitializer { batchCodeDetailsView: batchCodeDetailsView }); urlSearchParam.set(text); - }, - minimumInputLength: 4 + } }); batchCodeSelectElement.select2('open'); } diff --git a/docs/SymptomsCausedByDrugs/js/PageInitializer.js b/docs/SymptomsCausedByDrugs/js/PageInitializer.js index 4d63fdb640e..fe65134d0b5 100644 --- a/docs/SymptomsCausedByDrugs/js/PageInitializer.js +++ b/docs/SymptomsCausedByDrugs/js/PageInitializer.js @@ -10,12 +10,12 @@ class PageInitializer { Select2.initializeSelectElement( { selectElement: symptomSelectElement, + minimumInputLength: 0, textOfOption2Select: urlSearchParam.get(), onSelectOptionHavingValueAndText: (id, text) => { prrByVaccineTableView.displayPrrByVaccineTable4Symptom(id, text); urlSearchParam.set(text); - }, - minimumInputLength: 0 + } }); } From d1d9d29651787753b79e22962c65836c303af6d9 Mon Sep 17 00:00:00 2001 From: Frank Knoll Date: Sun, 14 Jul 2024 21:39:49 +0200 Subject: [PATCH 7/7] refactoring --- docs/HowBadIsMyBatch.html | 5 ++--- docs/{SymptomsCausedByDrugs/js => }/Select2.js | 0 docs/SymptomsCausedByDrugs/index.html | 4 ++-- docs/SymptomsCausedByVaccines/index.html | 4 ++-- docs/{SymptomsCausedByDrugs/js => }/URLSearchParam.js | 0 5 files changed, 6 insertions(+), 7 deletions(-) rename docs/{SymptomsCausedByDrugs/js => }/Select2.js (100%) rename docs/{SymptomsCausedByDrugs/js => }/URLSearchParam.js (100%) diff --git a/docs/HowBadIsMyBatch.html b/docs/HowBadIsMyBatch.html index b9ca7f05ffe..220dce42cd5 100644 --- a/docs/HowBadIsMyBatch.html +++ b/docs/HowBadIsMyBatch.html @@ -28,9 +28,8 @@ - - - + + diff --git a/docs/SymptomsCausedByDrugs/js/Select2.js b/docs/Select2.js similarity index 100% rename from docs/SymptomsCausedByDrugs/js/Select2.js rename to docs/Select2.js diff --git a/docs/SymptomsCausedByDrugs/index.html b/docs/SymptomsCausedByDrugs/index.html index 83d363ff2ca..5abbde963b1 100644 --- a/docs/SymptomsCausedByDrugs/index.html +++ b/docs/SymptomsCausedByDrugs/index.html @@ -28,6 +28,8 @@ + + @@ -36,8 +38,6 @@ - - + + @@ -36,8 +38,6 @@ - -