From e31241a0666f92d97894424a63fca0dce100d4bc Mon Sep 17 00:00:00 2001
From: Lakshmi Pavananjali <154777864+Anjaliavv51@users.noreply.github.com>
Date: Thu, 4 Jul 2024 00:35:33 +0530
Subject: [PATCH 1/5] =?UTF-8?q?=E2=9C=A8[Feature=20Request]:=20Creating=20?=
=?UTF-8?q?POPUP=20to=20blood=20types=20(#750)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
#746
Co-authored-by: Vamshi Maskuri <117595548+varshith257@users.noreply.github.com>
---
Css-Files/bloodstyle.css | 58 +++-
Html-Files/blood.html | 27 +-
Html-Files/list.html | 730 ---------------------------------------
js/popupbloodlist.js | 135 ++++++++
4 files changed, 207 insertions(+), 743 deletions(-)
delete mode 100644 Html-Files/list.html
create mode 100644 js/popupbloodlist.js
diff --git a/Css-Files/bloodstyle.css b/Css-Files/bloodstyle.css
index dc998bba..b12974c6 100644
--- a/Css-Files/bloodstyle.css
+++ b/Css-Files/bloodstyle.css
@@ -664,4 +664,60 @@ padding-top: 3rem;
text-align: center;
padding: 1rem 0.5rem 2rem 0.5rem;
}
- }
\ No newline at end of file
+ }
+ /*Popup Blood list*/
+ .popup {
+ display: none;
+ position: fixed;
+ z-index: 1000;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ overflow: auto;
+ background-color: rgba(0,0,0,0.4);
+}
+
+.popup-content {
+ background-color: #fefefe;
+ margin: 15% auto;
+ padding: 20px;
+ border: 1px solid #888;
+ width: 80%;
+ max-width: 600px;
+}
+
+.close {
+ color: #aaa;
+ float: right;
+ font-size: 28px;
+ font-weight: bold;
+ cursor: pointer;
+}
+
+.close:hover,
+.close:focus {
+ color: black;
+ text-decoration: none;
+ cursor: pointer;
+}
+
+.popup-content h2, .popup-content h3 {
+ color: #4bb6b7;
+ padding: 10px 0;
+ margin: 0;
+}
+
+.popup-content .list {
+ padding-left: 20px;
+}
+
+.popup-content .list p {
+ margin: 5px 0;
+}
+
+.popup-content strong {
+ display: block;
+ margin-top: 10px;
+ margin-bottom: 20px;
+}
\ No newline at end of file
diff --git a/Html-Files/blood.html b/Html-Files/blood.html
index 14b86ba2..7f0a4d2e 100644
--- a/Html-Files/blood.html
+++ b/Html-Files/blood.html
@@ -53,7 +53,7 @@
A+
liters
- Get List
+ Get List
@@ -207,10 +207,12 @@ RAPIDOC Newsletter
-
-
-
-
+
+
diff --git a/Html-Files/list.html b/Html-Files/list.html
deleted file mode 100644
index 0f5026bd..00000000
--- a/Html-Files/list.html
+++ /dev/null
@@ -1,730 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Blood Bank
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Top Donors to India
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/js/popupbloodlist.js b/js/popupbloodlist.js
new file mode 100644
index 00000000..da0005cb
--- /dev/null
+++ b/js/popupbloodlist.js
@@ -0,0 +1,135 @@
+document.addEventListener('DOMContentLoaded', function() {
+ const popup = document.getElementById('popup');
+ const closeBtn = document.querySelector('.close');
+ const popupContent = document.getElementById('popupContent');
+
+ // Blood type data
+ const bloodTypeData = {
+ 'A+': {
+ donors: [
+ { name: 'John Doe', amount: 0.5 },
+ { name: 'Jane Smith', amount: 0.7 }
+ ],
+ recipients: [
+ { name: 'Alice Johnson', amount: 0.6 },
+ { name: 'Bob Williams', amount: 0.8 }
+ ]
+ },
+ 'O+': {
+ donors: [
+ { name: 'Emily Brown', amount: 0.6 },
+ { name: 'Michael Davis', amount: 0.5 }
+ ],
+ recipients: [
+ { name: 'Sarah Miller', amount: 0.7 },
+ { name: 'David Wilson', amount: 0.4 }
+ ]
+ },
+ 'B+': {
+ donors: [
+ { name: 'Jennifer Lee', amount: 0.4 },
+ { name: 'Robert Taylor', amount: 0.8 }
+ ],
+ recipients: [
+ { name: 'William Anderson', amount: 0.5 },
+ { name: 'Lisa Martinez', amount: 0.6 }
+ ]
+ },
+ 'AB+': {
+ donors: [
+ { name: 'Jessica Brown', amount: 0.7 },
+ { name: 'Thomas Moore', amount: 0.5 }
+ ],
+ recipients: [
+ { name: 'Karen White', amount: 0.4 },
+ { name: 'Daniel Clark', amount: 0.8 }
+ ]
+ },
+ 'A': {
+ donors: [
+ { name: 'Patricia Garcia', amount: 0.6 },
+ { name: 'James Rodriguez', amount: 0.5 }
+ ],
+ recipients: [
+ { name: 'Nancy Lewis', amount: 0.7 },
+ { name: 'Christopher Lee', amount: 0.3 }
+ ]
+ },
+ 'O': {
+ donors: [
+ { name: 'Margaret Wilson', amount: 0.5 },
+ { name: 'Joseph Thompson', amount: 0.6 }
+ ],
+ recipients: [
+ { name: 'Barbara Martin', amount: 0.4 },
+ { name: 'Richard Harris', amount: 0.7 }
+ ]
+ },
+ 'B': {
+ donors: [
+ { name: 'Elizabeth Hall', amount: 0.7 },
+ { name: 'Charles Young', amount: 0.4 }
+ ],
+ recipients: [
+ { name: 'Susan Allen', amount: 0.6 },
+ { name: 'Kevin Scott', amount: 0.5 }
+ ]
+ },
+ 'AB': {
+ donors: [
+ { name: 'Dorothy King', amount: 0.5 },
+ { name: 'Mark Baker', amount: 0.6 }
+ ],
+ recipients: [
+ { name: 'Linda Green', amount: 0.4 },
+ { name: 'Paul Adams', amount: 0.7 }
+ ]
+ }
+ };
+
+ // Function to generate popup content
+ function generatePopupContent(bloodType) {
+ const data = bloodTypeData[bloodType];
+ let content = `${bloodType} Blood
`;
+
+ content += `Donors
`;
+ let totalDonation = 0;
+ data.donors.forEach(donor => {
+ content += `
${donor.name}: ${donor.amount} L
`;
+ totalDonation += donor.amount;
+ });
+ content += `
Total Donation: ${totalDonation.toFixed(2)} L
`;
+
+ content += `Recipients
`;
+ let totalNeeded = 0;
+ data.recipients.forEach(recipient => {
+ content += `
${recipient.name}: ${recipient.amount} L
`;
+ totalNeeded += recipient.amount;
+ });
+ content += `
Total Needed: ${totalNeeded.toFixed(2)} L
`;
+
+ return content;
+ }
+
+ // Add click event listeners to all "Get List" buttons
+ document.querySelectorAll('.get-list-btn').forEach(btn => {
+ btn.addEventListener('click', function(e) {
+ e.preventDefault();
+ const bloodType = this.id.split('-')[1];
+ popupContent.innerHTML = generatePopupContent(bloodType);
+ popup.style.display = 'block';
+ });
+ });
+
+ // Close popup when clicking the close button
+ closeBtn.addEventListener('click', function() {
+ popup.style.display = 'none';
+ });
+
+ // Close popup when clicking outside the popup content
+ window.addEventListener('click', function(e) {
+ if (e.target == popup) {
+ popup.style.display = 'none';
+ }
+ });
+});
\ No newline at end of file
From f4ccb79fa87133d648431a75741350afe8d55132 Mon Sep 17 00:00:00 2001
From: Sayyad Aslam <131389695+aslams2020@users.noreply.github.com>
Date: Thu, 4 Jul 2024 03:16:01 +0530
Subject: [PATCH 2/5] Improved Privacy Policy Page (#752)
* Improved PrivacyPolicy Page
* Updated Privacy Policy Page
---------
Co-authored-by: Vamshi Maskuri <117595548+varshith257@users.noreply.github.com>
---
Html-Files/privacy_policy_page.html | 1040 +++++++++++++++++++++++----
1 file changed, 919 insertions(+), 121 deletions(-)
diff --git a/Html-Files/privacy_policy_page.html b/Html-Files/privacy_policy_page.html
index 3709f1e8..8e832d40 100644
--- a/Html-Files/privacy_policy_page.html
+++ b/Html-Files/privacy_policy_page.html
@@ -1,151 +1,949 @@
+
- Privacy Policy
+ Privacy Policy - RAPIDOC Healthcare
+
+
+
+
+
+
+
+
+
+
+ RapiDoc
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-