├── README.md ├── script.js ├── qna.js ├── medicine_reminder_styles.css ├── index.html ├── login.html ├── medine.html ├── style3.css ├── signup.html ├── reports.html ├── styles.css ├── profile.html ├── reports.css ├── profile.js ├── aboutus.html ├── script1.js ├── medicine_reminder_script.js ├── style1.css ├── advice.html ├── reports.js ├── health.html └── routine.html /README.md: -------------------------------------------------------------------------------- 1 | # Health-remainder-app -------------------------------------------------------------------------------- /script.js: -------------------------------------------------------------------------------- 1 | document.addEventListener("DOMContentLoaded", function () { 2 | const loginForm = document.getElementById("loginForm"); 3 | 4 | loginForm.addEventListener("submit", function (event) { 5 | event.preventDefault(); 6 | 7 | const email = document.getElementById("loginEmail").value; 8 | const password = document.getElementById("loginPassword").value; 9 | 10 | // Basic validation (Replace this with actual authentication logic) 11 | if (email.trim() !== "" && password.trim() !== "") { 12 | alert("Login Successful!"); 13 | window.location.href = "profile.html"; // Redirect to health.html 14 | } else { 15 | alert("Invalid email or password. Please try again."); 16 | } 17 | }); 18 | }); 19 | -------------------------------------------------------------------------------- /qna.js: -------------------------------------------------------------------------------- 1 | document.addEventListener("DOMContentLoaded", function () { 2 | const healthForm = document.getElementById("healthForm"); 3 | 4 | healthForm.addEventListener("submit", function (event) { 5 | event.preventDefault(); 6 | 7 | const responses = { 8 | exercise: document.getElementById("exercise").value, 9 | sleepHours: document.getElementById("sleepHours").value, 10 | diet: document.getElementById("diet").value, 11 | stress: document.getElementById("stress").value, 12 | waterIntake: document.getElementById("waterIntake").value, 13 | fastFood: document.getElementById("fastFood").value, 14 | smokeAlcohol: document.getElementById("smokeAlcohol").value, 15 | medicalCheckup: document.getElementById("medicalCheckup").value 16 | }; 17 | 18 | let advicePages = "advice.html?"; 19 | for (const key in responses) { 20 | advicePages += `${key}=${responses[key]}&`; 21 | } 22 | 23 | window.location.href = advicePages; 24 | }); 25 | saveHealthData(["I exercise daily", "I drink 2 liters of water"]); 26 | 27 | }); 28 | -------------------------------------------------------------------------------- /medicine_reminder_styles.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Arial, sans-serif; 3 | margin: 0; 4 | padding: 0; 5 | background-color: #f4f4f4; 6 | text-align: center; 7 | } 8 | 9 | nav { 10 | background: #007bff; 11 | padding: 10px; 12 | } 13 | 14 | nav ul { 15 | list-style: none; 16 | padding: 0; 17 | } 18 | 19 | nav ul li { 20 | display: inline; 21 | margin: 0 15px; 22 | } 23 | 24 | nav ul li a { 25 | color: white; 26 | text-decoration: none; 27 | font-size: 18px; 28 | } 29 | 30 | section { 31 | margin: 20px; 32 | padding: 20px; 33 | background: white; 34 | border-radius: 10px; 35 | box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); 36 | display: inline-block; 37 | } 38 | 39 | h1, h2 { 40 | color: #333; 41 | } 42 | 43 | form { 44 | margin-top: 20px; 45 | } 46 | 47 | label, input, button { 48 | display: block; 49 | margin: 10px auto; 50 | padding: 10px; 51 | width: 80%; 52 | max-width: 300px; 53 | } 54 | 55 | button { 56 | background: #007bff; 57 | color: white; 58 | border: none; 59 | cursor: pointer; 60 | font-size: 16px; 61 | } 62 | 63 | button:hover { 64 | background: #0056b3; 65 | } 66 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Health Reminder App 7 | 8 | 9 | 10 | 23 |
24 |

Welcome to the Health Reminder App

25 |

Stay on top of your health with personalized reminders, expert advice, and lifestyle recommendations.

26 |

Use this platform to track your health habits, get insights, and improve your well-being.

27 | 28 |
29 | 30 | 31 | -------------------------------------------------------------------------------- /login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Login 7 | 8 | 9 | 10 | 21 |
22 |

Login

23 |
24 | 25 | 26 | 27 |
28 |

Don't have an account?

29 | 30 |
31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /medine.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Medicine Reminder 7 | 8 | 9 | 10 | 17 | 18 |
19 |

Medicine Reminder

20 |

Set up reminders for your medication.

21 | 22 |

Set Medicine Schedule

23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
32 | 33 |

Your Medicine Schedule

34 |
No medicine reminders set yet.
35 |
36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /style3.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Arial, sans-serif; 3 | background-color: #f4f4f4; 4 | margin: 0; 5 | padding: 0; 6 | } 7 | 8 | nav { 9 | background-color: #007BFF; 10 | padding: 10px 0; 11 | text-align: center; 12 | } 13 | 14 | nav ul { 15 | list-style: none; 16 | padding: 0; 17 | } 18 | 19 | nav ul li { 20 | display: inline; 21 | margin: 0 15px; 22 | } 23 | 24 | nav ul li a { 25 | color: white; 26 | text-decoration: none; 27 | font-size: 18px; 28 | } 29 | 30 | section { 31 | width: 50%; 32 | margin: 50px auto; 33 | background: white; 34 | padding: 20px; 35 | border-radius: 10px; 36 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 37 | } 38 | 39 | h2 { 40 | text-align: center; 41 | color: #333; 42 | } 43 | 44 | form { 45 | display: flex; 46 | flex-direction: column; 47 | } 48 | 49 | label { 50 | margin: 10px 0 5px; 51 | font-weight: bold; 52 | } 53 | 54 | input, select { 55 | padding: 10px; 56 | border: 1px solid #ccc; 57 | border-radius: 5px; 58 | font-size: 16px; 59 | } 60 | 61 | button { 62 | margin-top: 20px; 63 | background-color: #007BFF; 64 | color: white; 65 | padding: 10px; 66 | border: none; 67 | border-radius: 5px; 68 | font-size: 18px; 69 | cursor: pointer; 70 | } 71 | 72 | button:hover { 73 | background-color: #0056b3; 74 | } 75 | -------------------------------------------------------------------------------- /signup.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sign Up 7 | 8 | 9 | 10 | 20 |
21 |

Sign Up

22 |

Create an account to manage your health routines effectively.

23 |
24 | 25 | 26 | 27 | 28 | 29 |
30 |

Already have an account?

31 | 32 |
33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /reports.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Health Reports 7 | 8 | 9 | 10 | 19 | 20 |
21 |

Your Health Reports

22 |

Track and analyze your health habits to improve your well-being.

23 | 24 |

Daily Routine Summary

25 |
26 |

No routine data available. Set up your routine in the Routine Page.

27 |
28 | 29 |

Medicine Intake Report

30 |
31 |

No medicine records available. Add reminders in the Medicine Page.

32 |
33 | 34 |

Health Insights

35 |
36 |

No health data available. Complete the Health Q&A to get insights.

37 |
38 | 39 | 40 |
41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /styles.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Arial, sans-serif; 3 | margin: 0; 4 | padding: 0; 5 | background-color: #e3f2fd; /* Light Blue Background */ 6 | color: #333; 7 | } 8 | 9 | nav { 10 | background-color: #1976d2; /* Deep Blue */ 11 | padding: 10px 0; 12 | text-align: center; 13 | } 14 | nav ul { 15 | list-style: none; 16 | padding: 0; 17 | } 18 | nav ul li { 19 | display: inline; 20 | margin: 0 15px; 21 | } 22 | nav ul li a { 23 | color: white; 24 | text-decoration: none; 25 | font-weight: bold; 26 | } 27 | nav ul li a:hover { 28 | text-decoration: underline; 29 | } 30 | 31 | section { 32 | max-width: 800px; 33 | margin: 20px auto; 34 | padding: 20px; 35 | background-color: white; 36 | border-radius: 10px; 37 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 38 | } 39 | 40 | h2 { 41 | text-align: center; 42 | color: #1976d2; 43 | } 44 | 45 | form { 46 | display: flex; 47 | flex-direction: column; 48 | gap: 10px; 49 | } 50 | input, button { 51 | padding: 10px; 52 | border: 1px solid #ccc; 53 | border-radius: 5px; 54 | font-size: 16px; 55 | } 56 | button { 57 | background-color: #1976d2; 58 | color: white; 59 | cursor: pointer; 60 | border: none; 61 | } 62 | button:hover { 63 | background-color: #1565c0; 64 | } 65 | #medicinePageButton { 66 | display: none; 67 | margin: 20px auto; /* Centers horizontally */ 68 | padding: 10px 15px; 69 | font-size: 16px; 70 | background-color: #007bff; 71 | color: white; 72 | border: none; 73 | cursor: pointer; 74 | border-radius: 5px; 75 | display: block; 76 | text-align: center; 77 | width: fit-content; 78 | } 79 | #medicinePageButton:hover { 80 | background-color: #0056b3; 81 | } 82 | -------------------------------------------------------------------------------- /profile.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | User Profile 7 | 8 | 9 | 10 | 20 | 21 |
22 |

User Profile

23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 |
43 | 44 |

Your Profile

45 |
No profile data yet.
46 |
47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /reports.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Arial, sans-serif; 3 | margin: 0; 4 | padding: 0; 5 | background-color: #f4f4f9; 6 | color: #333; 7 | } 8 | 9 | nav { 10 | background: #007bff; 11 | padding: 15px; 12 | box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); 13 | border-radius: 0 0 10px 10px; 14 | } 15 | 16 | nav ul { 17 | list-style: none; 18 | display: flex; 19 | justify-content: center; 20 | padding: 0; 21 | } 22 | 23 | nav ul li { 24 | margin: 0 20px; 25 | } 26 | 27 | nav ul li a { 28 | color: white; 29 | text-decoration: none; 30 | font-size: 18px; 31 | padding: 8px 12px; 32 | transition: background 0.3s ease-in-out; 33 | } 34 | 35 | nav ul li a:hover { 36 | background: rgba(255, 255, 255, 0.2); 37 | border-radius: 5px; 38 | } 39 | 40 | section { 41 | max-width: 800px; 42 | margin: 30px auto; 43 | padding: 25px; 44 | background: white; 45 | box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1); 46 | border-radius: 10px; 47 | } 48 | 49 | h1, h2 { 50 | color: #0056b3; 51 | text-align: center; 52 | } 53 | 54 | p { 55 | text-align: center; 56 | font-size: 16px; 57 | line-height: 1.5; 58 | } 59 | 60 | div { 61 | padding: 15px; 62 | border-bottom: 1px solid #ddd; 63 | background: white; 64 | border-radius: 8px; 65 | box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); 66 | margin: 10px 0; 67 | } 68 | 69 | a { 70 | color: #007bff; 71 | text-decoration: none; 72 | font-weight: bold; 73 | } 74 | 75 | a:hover { 76 | text-decoration: underline; 77 | color: #0056b3; 78 | } 79 | 80 | /* Button Styling */ 81 | button#clearReports { 82 | display: block; 83 | margin: 20px auto; 84 | padding: 10px 15px; 85 | background: #dc3545; 86 | color: white; 87 | border: none; 88 | border-radius: 5px; 89 | cursor: pointer; 90 | } 91 | 92 | button#clearReports:hover { 93 | background: #c82333; 94 | } 95 | -------------------------------------------------------------------------------- /profile.js: -------------------------------------------------------------------------------- 1 | document.addEventListener("DOMContentLoaded", function () { 2 | const profileForm = document.getElementById("profileForm"); 3 | const profileDisplay = document.getElementById("profileDisplay"); 4 | 5 | // Load saved profile data from localStorage 6 | function loadProfile() { 7 | const storedProfile = JSON.parse(localStorage.getItem("userProfile")); 8 | 9 | if (storedProfile) { 10 | document.getElementById("userName").value = storedProfile.name || ""; 11 | document.getElementById("userAge").value = storedProfile.age || ""; 12 | document.getElementById("userGender").value = storedProfile.gender || ""; 13 | document.getElementById("healthConditions").value = storedProfile.conditions || ""; 14 | 15 | // Display saved profile 16 | profileDisplay.innerHTML = ` 17 |

Name: ${storedProfile.name}

18 |

Age: ${storedProfile.age}

19 |

Gender: ${storedProfile.gender}

20 |

Health Conditions: ${storedProfile.conditions || "None"}

21 | `; 22 | } 23 | } 24 | 25 | // Save profile data and redirect to health.html 26 | profileForm.addEventListener("submit", function (event) { 27 | event.preventDefault(); // Prevent default form submission 28 | 29 | const userProfile = { 30 | name: document.getElementById("userName").value, 31 | age: document.getElementById("userAge").value, 32 | gender: document.getElementById("userGender").value, 33 | conditions: document.getElementById("healthConditions").value, 34 | }; 35 | 36 | localStorage.setItem("userProfile", JSON.stringify(userProfile)); 37 | 38 | alert("Profile saved successfully! Redirecting to Health Q&A page."); 39 | window.location.href = "health.html"; // Redirect to Health Q&A page 40 | }); 41 | 42 | // Load profile on page load 43 | loadProfile(); 44 | }); 45 | -------------------------------------------------------------------------------- /aboutus.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | About Us 7 | 8 | 15 | 16 | 17 | 28 |
29 |

About Us

30 |

Welcome to the Health Reminder App – your personal health companion designed to help you lead a healthier lifestyle. Our mission is to empower individuals with the right tools to track their health, build healthy habits, and stay informed about their well-being.

31 | 32 |

Our Mission

33 |

We believe in proactive healthcare. By providing timely reminders, health tracking, and expert advice, we aim to help you prevent health issues before they arise.

34 | 35 |

Why Choose Us?

36 | 42 | 43 |

Join Us

44 |

Take charge of your health today! Sign up and start your journey towards a healthier life.

45 |
46 | 47 |
48 |
49 | 50 | 51 | -------------------------------------------------------------------------------- /script1.js: -------------------------------------------------------------------------------- 1 | document.addEventListener("DOMContentLoaded", function () { 2 | const loginForm = document.getElementById("loginForm"); 3 | const signupForm = document.getElementById("signupForm"); 4 | 5 | if (loginForm) { 6 | loginForm.addEventListener("submit", function (event) { 7 | event.preventDefault(); 8 | 9 | const email = document.getElementById("loginEmail").value; 10 | const password = document.getElementById("loginPassword").value; 11 | 12 | if (email === "" || password === "") { 13 | alert("Please fill in all fields."); 14 | return; 15 | } 16 | 17 | // Simulating login authentication 18 | if (email === "test@example.com" && password === "password123") { 19 | alert("Login successful!"); 20 | window.location.href = "dashboard.html"; // Redirect after login 21 | } else { 22 | alert("Invalid email or password."); 23 | } 24 | }); 25 | } 26 | 27 | if (signupForm) { 28 | signupForm.addEventListener("submit", function (event) { 29 | event.preventDefault(); 30 | 31 | const fullName = document.getElementById("fullName").value; 32 | const email = document.getElementById("signupEmail").value; 33 | const password = document.getElementById("signupPassword").value; 34 | const confirmPassword = document.getElementById("confirmPassword").value; 35 | 36 | if (fullName === "" || email === "" || password === "" || confirmPassword === "") { 37 | alert("Please fill in all fields."); 38 | return; 39 | } 40 | 41 | if (password !== confirmPassword) { 42 | alert("Passwords do not match."); 43 | return; 44 | } 45 | 46 | alert("Sign-up successful! Redirecting to login page."); 47 | window.location.href = "login.html"; // Redirect after successful sign-up 48 | }); 49 | } 50 | 51 | const signupButton = document.querySelector(".signup-button"); 52 | if (signupButton) { 53 | signupButton.addEventListener("click", function () { 54 | window.location.href = "signup.html"; 55 | }); 56 | } 57 | }); 58 | -------------------------------------------------------------------------------- /medicine_reminder_script.js: -------------------------------------------------------------------------------- 1 | document.addEventListener("DOMContentLoaded", function () { 2 | displayMedicines(); 3 | }); 4 | 5 | function requestNotificationPermission() { 6 | if (Notification.permission === "default") { 7 | Notification.requestPermission().then(permission => { 8 | if (permission === "granted") { 9 | alert("Notifications enabled!"); 10 | } 11 | }); 12 | } 13 | } 14 | 15 | function scheduleMedicineNotification(time, medicine) { 16 | const now = new Date(); 17 | const notificationTime = new Date(now.toDateString() + " " + time); 18 | 19 | if (notificationTime > now) { 20 | const delay = notificationTime - now; 21 | setTimeout(() => { 22 | new Notification("Medicine Reminder", { body: `Time to take ${medicine}` }); 23 | }, delay); 24 | } 25 | } 26 | 27 | document.getElementById("medicineForm").addEventListener("submit", function(event) { 28 | event.preventDefault(); 29 | requestNotificationPermission(); 30 | 31 | const medicineName = document.getElementById("medicineName").value; 32 | const medicineTime = document.getElementById("medicineTime").value; 33 | const dosage = document.getElementById("dosage").value; 34 | 35 | const medicine = { name: medicineName, dosage: dosage, time: medicineTime }; 36 | let medicines = JSON.parse(localStorage.getItem("medicines")) || []; 37 | medicines.push(medicine); 38 | localStorage.setItem("medicines", JSON.stringify(medicines)); 39 | 40 | displayMedicines(); 41 | scheduleMedicineNotification(medicineTime, medicineName); 42 | alert("Medicine saved successfully!"); 43 | }); 44 | 45 | function displayMedicines() { 46 | const medicines = JSON.parse(localStorage.getItem("medicines")) || []; 47 | const medicineList = document.getElementById("medicineList"); 48 | medicineList.innerHTML = ""; 49 | medicines.forEach((medicine, index) => { 50 | medicineList.innerHTML += `
  • ${medicine.name} - ${medicine.dosage} at ${medicine.time}
  • `; 51 | }); 52 | } 53 | 54 | function deleteMedicine(index) { 55 | let medicines = JSON.parse(localStorage.getItem("medicines")) || []; 56 | medicines.splice(index, 1); 57 | localStorage.setItem("medicines", JSON.stringify(medicines)); 58 | displayMedicines(); 59 | } 60 | -------------------------------------------------------------------------------- /style1.css: -------------------------------------------------------------------------------- 1 | /* General Styles */ 2 | body { 3 | font-family: Arial, sans-serif; 4 | margin: 0; 5 | padding: 0; 6 | background-color: #e3f2fd; /* Light Blue Background */ 7 | color: #333; 8 | display: flex; 9 | flex-direction: column; 10 | align-items: center; 11 | justify-content: center; 12 | height: 100vh; 13 | } 14 | 15 | /* Navigation Bar */ 16 | nav { 17 | background-color: #1976d2; /* Deep Blue */ 18 | padding: 10px 0; 19 | text-align: center; 20 | width: 100%; 21 | position: fixed; 22 | top: 0; 23 | left: 0; 24 | } 25 | nav ul { 26 | list-style: none; 27 | padding: 0; 28 | margin: 0; 29 | } 30 | nav ul li { 31 | display: inline; 32 | margin: 0 15px; 33 | } 34 | nav ul li a { 35 | color: white; 36 | text-decoration: none; 37 | font-weight: bold; 38 | } 39 | nav ul li a:hover { 40 | text-decoration: underline; 41 | } 42 | 43 | /* Section Styling */ 44 | section { 45 | max-width: 500px; 46 | padding: 30px; 47 | background-color: white; 48 | border-radius: 12px; 49 | box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); 50 | text-align: center; 51 | position: relative; 52 | top: 60px; 53 | font-size: 18px; 54 | font-weight: bold; 55 | } 56 | 57 | h2 { 58 | color: #1976d2; 59 | font-size: 24px; 60 | font-weight: bold; 61 | } 62 | 63 | /* Form Styling */ 64 | form { 65 | display: flex; 66 | flex-direction: column; 67 | align-items: center; 68 | width: 100%; 69 | } 70 | input { 71 | width: 100%; 72 | max-width: 450px; 73 | padding: 16px; 74 | border: 2px solid #ccc; 75 | border-radius: 8px; 76 | font-size: 18px; 77 | margin-bottom: 20px; 78 | box-sizing: border-box; 79 | font-weight: bold; 80 | } 81 | button { 82 | width: 100%; 83 | max-width: 450px; 84 | padding: 16px; 85 | font-size: 18px; 86 | border-radius: 8px; 87 | cursor: pointer; 88 | border: none; 89 | background-color: #1976d2; 90 | color: white; 91 | font-weight: bold; 92 | } 93 | button:hover { 94 | background-color: #1565c0; 95 | } 96 | 97 | /* Responsive Design */ 98 | @media (max-width: 600px) { 99 | section { 100 | width: 90%; 101 | } 102 | input, button { 103 | max-width: 100%; 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /advice.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Health Advice 7 | 8 | 9 | 10 | 17 |
    18 |

    Personalized Health Advice

    19 |
    20 |
    21 | 22 | 23 | 24 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /reports.js: -------------------------------------------------------------------------------- 1 | // Function to Save Routine Data 2 | function saveRoutineData(routine) { 3 | localStorage.setItem("userRoutine", JSON.stringify(routine)); 4 | } 5 | 6 | // Function to Load Routine Report 7 | function loadRoutineReport() { 8 | try { 9 | const routineData = localStorage.getItem("userRoutine"); 10 | if (routineData) { 11 | const routine = JSON.parse(routineData); 12 | document.getElementById("routineReport").innerHTML = ` 13 |

    Wake-up Time: ${routine.wakeTime || "Not Set"}

    14 |

    Water Intake: Every ${routine.waterIntake || "Not Set"} hour(s)

    15 |

    Meditation: ${routine.meditation || "Not Set"} mins

    16 |

    Breakfast Time: ${routine.breakfastTime || "Not Set"}

    17 |

    Lunch Time: ${routine.lunchTime || "Not Set"}

    18 |

    Dinner Time: ${routine.dinnerTime || "Not Set"}

    19 |

    Sleep Time: ${routine.sleepTime || "Not Set"}

    20 | `; 21 | } 22 | } catch (error) { 23 | console.error("Error loading routine report:", error); 24 | } 25 | } 26 | 27 | // Function to Save Medicine Data 28 | function saveMedicineData(medicine) { 29 | let medicineList = JSON.parse(localStorage.getItem("medicineReminders")) || []; 30 | medicineList.push(medicine); 31 | localStorage.setItem("medicineReminders", JSON.stringify(medicineList)); 32 | } 33 | 34 | // Function to Load Medicine Report 35 | function loadMedicineReport() { 36 | try { 37 | const medicineData = localStorage.getItem("medicineReminders"); 38 | if (medicineData) { 39 | const medicineReminders = JSON.parse(medicineData); 40 | let report = medicineReminders.length 41 | ? medicineReminders.map(med => `
  • ${med.name || "Unknown"} at ${med.time || "Unknown"}
  • `).join("") 42 | : "No medicine data available."; 43 | document.getElementById("medicineReport").innerHTML = ``; 44 | } 45 | } catch (error) { 46 | console.error("Error loading medicine report:", error); 47 | } 48 | } 49 | 50 | // Function to Save Health Data 51 | function saveHealthData(answers) { 52 | localStorage.setItem("healthAnswers", JSON.stringify(answers)); 53 | } 54 | 55 | // Function to Load Health Insights 56 | function loadHealthInsights() { 57 | try { 58 | const healthData = localStorage.getItem("healthAnswers"); 59 | if (healthData) { 60 | const healthAnswers = JSON.parse(healthData); 61 | let insights = healthAnswers.length 62 | ? healthAnswers.map(answer => `
  • ${answer}
  • `).join("") 63 | : "No health Q&A data available."; 64 | document.getElementById("healthInsights").innerHTML = ``; 65 | } 66 | } catch (error) { 67 | console.error("Error loading health insights:", error); 68 | } 69 | } 70 | 71 | // Function to Clear All Reports Data 72 | function clearReports() { 73 | localStorage.clear(); 74 | alert("All report data has been cleared!"); 75 | window.location.reload(); 76 | } 77 | 78 | // Load Data on Page Load 79 | document.addEventListener("DOMContentLoaded", () => { 80 | loadRoutineReport(); 81 | loadMedicineReport(); 82 | loadHealthInsights(); 83 | document.getElementById("clearReports").addEventListener("click", clearReports); 84 | }); 85 | -------------------------------------------------------------------------------- /health.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Health Q&A 7 | 8 | 9 | 10 | 20 |
    21 |

    Health Check-Up Q&A

    22 |

    Answer the following questions to assess your health condition.

    23 |
    24 | 25 | 32 | 33 | 34 | 35 | 36 | 37 | 42 | 43 | 44 | 51 | 52 | 53 | 54 | 55 | 56 | 63 | 64 | 65 | 70 | 71 | 72 | 79 | 80 | 81 |
    82 |

    83 |
    84 | 85 | 86 | -------------------------------------------------------------------------------- /routine.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Routine Fix 7 | 8 | 9 | 10 | 22 |
    23 |

    Fix Your Daily Routine

    24 |

    Personalize your daily health routine by setting reminders and tracking progress.

    25 | 26 |

    Set Your Routine

    27 |
    28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 |
    51 | 52 |

    Your Saved Routine

    53 |
    No routine set yet.
    54 |
    55 | 56 | 57 | 107 | 108 | 109 | 110 | --------------------------------------------------------------------------------