From af472ad571fed0d15511f14c9c119755649cee9a Mon Sep 17 00:00:00 2001 From: Anjaliavv51 <154777864+Anjaliavv51@users.noreply.github.com> Date: Mon, 15 Jul 2024 18:21:22 +0530 Subject: [PATCH 1/5] =?UTF-8?q?=E2=9C=A8[Feature=20Request]:=20Blood=20Tes?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #874 --- Html-Files/bloodtest.html | 510 ++++++++++++++++++++++++++++++++++++++ Html-Files/bloodtest.js | 70 ++++++ 2 files changed, 580 insertions(+) create mode 100644 Html-Files/bloodtest.html create mode 100644 Html-Files/bloodtest.js diff --git a/Html-Files/bloodtest.html b/Html-Files/bloodtest.html new file mode 100644 index 00000000..55c5d963 --- /dev/null +++ b/Html-Files/bloodtest.html @@ -0,0 +1,510 @@ + + + + + + + + + + + + + + + RapiDoc + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + +
+
+
+

Blood Test Analysis

+
+ + + + + + + + + + + + + +
+
+ + +
+
+ + + + + +
+
+ + + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Html-Files/bloodtest.js b/Html-Files/bloodtest.js new file mode 100644 index 00000000..84b1f5a1 --- /dev/null +++ b/Html-Files/bloodtest.js @@ -0,0 +1,70 @@ +document.addEventListener('DOMContentLoaded', function() { + const bloodTestForm = document.getElementById('bloodTestForm'); + const popupOverlay = document.getElementById('popupOverlay'); + const closeBtn = document.querySelector('.close-btn'); + + bloodTestForm.addEventListener('submit', function(e) { + e.preventDefault(); + + const bloodGroup = document.getElementById('bloodGroup').value; + const wbc = parseFloat(document.getElementById('wbcPercentage').value); + const rbc = parseFloat(document.getElementById('rbcPercentage').value); + const platelets = parseFloat(document.getElementById('plateletPercentage').value); + + let resultText = ''; + let skinDiseaseChance = ''; + let cure = ''; + + if (wbc < 4.5 || wbc > 11) { + resultText += 'Abnormal white blood cell count. '; + } + + if (rbc < 4.2 || rbc > 5.4) { + resultText += 'Abnormal red blood cell count. '; + } + + if (platelets < 150 || platelets > 450) { + resultText += 'Abnormal platelet count. '; + } + + if (resultText === '') { + resultText = 'All blood cell counts are within normal range.'; + } + + // Simple logic for skin disease chance (for demonstration purposes) + if (wbc > 11) { + skinDiseaseChance = 'There is an increased chance of skin disease due to elevated white blood cell count.'; + cure = 'Consult a dermatologist for a proper diagnosis and treatment plan. It may include anti-inflammatory medications or topical treatments.'; + } else { + skinDiseaseChance = 'No increased chance of skin disease detected based on these results.'; + cure = 'No specific treatment needed. Maintain a healthy lifestyle and good skincare routine.'; + } + + document.getElementById('resultText').textContent = resultText; + document.getElementById('skinDiseaseChance').textContent = skinDiseaseChance; + document.getElementById('cure').textContent = cure; + + // Show popup + popupOverlay.classList.remove('hidden'); + document.body.classList.add('popup-open'); + }); + + function closePopup() { + popupOverlay.classList.add('hidden'); + document.body.classList.remove('popup-open'); + } + + closeBtn.addEventListener('click', closePopup); + + popupOverlay.addEventListener('click', function(e) { + if (e.target === popupOverlay) { + closePopup(); + } + }); + + document.addEventListener('keydown', function(e) { + if (e.key === 'Escape') { + closePopup(); + } + }); + }); \ No newline at end of file From 32c6576e97a397c4a2eea9ab14828c08dd27f226 Mon Sep 17 00:00:00 2001 From: Anjaliavv51 <154777864+Anjaliavv51@users.noreply.github.com> Date: Mon, 15 Jul 2024 18:28:08 +0530 Subject: [PATCH 2/5] =?UTF-8?q?=E2=9C=A8[Feature=20Request]:=20Creation=20?= =?UTF-8?q?of=20Blood=20Test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #874 --- index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index f30a0bb9..ce304ed8 100644 --- a/index.html +++ b/index.html @@ -136,15 +136,18 @@

Normal checkup

cause problems.

- +
+

Blood Test

Get your tests done to look for signs of disease or agents that cause disease.

+
- + +
From b0658c08d391d8a54de21c60804aff45dd522caf Mon Sep 17 00:00:00 2001 From: Lakshmi Pavananjali <154777864+Anjaliavv51@users.noreply.github.com> Date: Mon, 15 Jul 2024 23:53:08 +0530 Subject: [PATCH 3/5] Update index.html --- index.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index ce304ed8..4f672369 100644 --- a/index.html +++ b/index.html @@ -136,17 +136,15 @@

Normal checkup

cause problems.

- -
- + +
-

Blood Test

+

Blood Test

Get your tests done to look for signs of disease or agents that cause disease.

-
- +
From 664c8ef09056038b7246b2dc471703d68ac83f46 Mon Sep 17 00:00:00 2001 From: Lakshmi Pavananjali <154777864+Anjaliavv51@users.noreply.github.com> Date: Tue, 16 Jul 2024 00:01:05 +0530 Subject: [PATCH 4/5] Update bloodtest.html --- Html-Files/bloodtest.html | 149 ++++++++++++++++++++++++-------------- 1 file changed, 94 insertions(+), 55 deletions(-) diff --git a/Html-Files/bloodtest.html b/Html-Files/bloodtest.html index 55c5d963..8ababb81 100644 --- a/Html-Files/bloodtest.html +++ b/Html-Files/bloodtest.html @@ -1,24 +1,36 @@ - - - + - - - - + + + + RapiDoc - + - + @@ -31,20 +43,18 @@ - + - + - - - - + + + + - + - -
-
-
+ +