File size: 12,843 Bytes
5a58b2b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Risk Assessment | HeartCare</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="/static/style.css">
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>❤️</text></svg>">
</head>
<body>
<!-- Background Effect -->
<div class="background-glow"></div>
<!-- HEADER -->
<header class="site-header">
<div class="header-container">
<!-- Logo -->
<div class="brand">
<span class="heart-icon">❤️</span>
<span class="brand-name">HeartCare</span>
</div>
<!-- Navigation -->
<nav class="nav-links">
<a href="/">Home</a>
<a href="/#about">About</a>
<a href="/#contact">Contact</a>
<a href="/calculate" class="btn-start active">Start Assessment</a>
</nav>
</div>
</header>
<main class="container">
<!-- CALCULATOR SECTION -->
<section id="calculate" class="calculator-section">
<div class="section-title">
<h2>Assess Your Risk</h2>
<p>Fill in the details below for an instant Artificial Intelligence analysis.</p>
</div>
<form id="predictionForm" class="glass-panel">
<div class="form-grid">
<!-- Personal Details -->
<div class="form-section">
<h3><i class="fa-regular fa-id-card"></i> Personal Profile</h3>
<div class="input-group">
<label for="Age">Age</label>
<input type="number" id="Age" name="Age" min="18" max="100" required placeholder="e.g. 45">
</div>
<div class="input-group">
<label for="Sex">Biological Sex</label>
<select id="Sex" name="Sex" required>
<option value="" disabled selected>Select...</option>
<option value="0">Female</option>
<option value="1">Male</option>
</select>
</div>
<div class="input-group">
<label for="Height">Height (cm)</label>
<input type="number" id="Height" name="Height" min="100" max="250" required
placeholder="e.g. 175">
</div>
<div class="input-group">
<label for="Weight">Weight (kg)</label>
<input type="number" id="Weight" name="Weight" min="30" max="200" required
placeholder="e.g. 70">
</div>
<div class="input-group">
<label for="BMI">BMI (Auto-calculated)</label>
<input type="number" id="BMI" name="BMI" readonly placeholder="---">
</div>
</div>
<!-- Health History -->
<div class="form-section">
<h3><i class="fa-solid fa-notes-medical"></i> Medical History</h3>
<div class="input-group">
<label for="General_Health">Self-Rated Health</label>
<select id="General_Health" name="General_Health" required>
<option value="Excellent">Excellent</option>
<option value="Very_Good">Very Good</option>
<option value="Good">Good</option>
<option value="Fair">Fair</option>
<option value="Poor">Poor</option>
</select>
</div>
<div class="input-group">
<label for="Checkup">Last Checkup</label>
<select id="Checkup" name="Checkup" required>
<option value="Within 1 year">Within 1 year</option>
<option value="1-2 years">1-2 years</option>
<option value="2-5 years">2-5 years</option>
<option value="5+ years">5+ years</option>
<option value="Never">Never</option>
</select>
</div>
<div class="input-group">
<label for="Diabetes">Diabetes Status</label>
<select id="Diabetes" name="Diabetes" required>
<option value="No">No</option>
<option value="Borderline">Borderline</option>
<option value="During Pregnancy">During Pregnancy</option>
<option value="Yes">Yes</option>
</select>
</div>
<div class="checkbox-group">
<label class="checkbox-container">
<input type="checkbox" id="Skin_Cancer" name="Skin_Cancer">
<span class="checkmark"></span>
Skin Cancer
</label>
<label class="checkbox-container">
<input type="checkbox" id="Other_Cancer" name="Other_Cancer">
<span class="checkmark"></span>
Other Cancer
</label>
<label class="checkbox-container">
<input type="checkbox" id="Depression" name="Depression">
<span class="checkmark"></span>
Depression
</label>
<label class="checkbox-container">
<input type="checkbox" id="Arthritis" name="Arthritis">
<span class="checkmark"></span>
Arthritis
</label>
</div>
</div>
<!-- Lifestyle -->
<div class="form-section full-width">
<h3><i class="fa-solid fa-person-running"></i> Lifestyle Factors</h3>
<div class="lifestyle-grid">
<div class="input-group">
<label for="Exercise">Regular Exercise</label>
<select id="Exercise" name="Exercise" required>
<option value="0">No</option>
<option value="1">Yes</option>
</select>
</div>
<div class="input-group">
<label for="Smoking">Smoking History</label>
<select id="Smoking" name="Smoking" required>
<option value="0">No</option>
<option value="1">Yes</option>
</select>
</div>
<div class="input-group">
<label for="Alcohol">Alcohol (Days/Month)</label>
<input type="number" id="Alcohol" name="Alcohol" min="0" max="30" value="0">
</div>
<div class="input-group">
<label for="Fruit">Fruit (Servings/Month)</label>
<input type="number" id="Fruit" name="Fruit" min="0" max="100" value="0">
</div>
<div class="input-group">
<label for="Green_Vegetables">Green Veggies (Servings/Month)</label>
<input type="number" id="Green_Vegetables" name="Green_Vegetables" min="0" max="100"
value="0">
</div>
<div class="input-group">
<label for="Fried_Potato">Fried Food (Servings/Month)</label>
<input type="number" id="Fried_Potato" name="Fried_Potato" min="0" max="100" value="0">
</div>
</div>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn-primary">
<span>Analyze Risk Profile</span>
<i class="fa-solid fa-arrow-right"></i>
</button>
</div>
</form>
</section>
</main>
<!-- FOOTER -->
<footer class="footer">
<div class="footer-container">
<div class="footer-about">
<h3>HeartCare</h3>
<p>
HeartCare is a heart disease risk prediction platform created to promote early
detection, awareness, and prevention of cardiovascular diseases through simple
online assessment.
</p>
</div>
<div class="footer-links">
<h4>Quick Links</h4>
<a href="/">Home</a>
<a href="/#about">About</a>
<a href="/#contact">Contact</a>
<a href="/calculate">Start Calculation</a>
</div>
<div class="footer-contact">
<h4>Contact Info</h4>
<p><strong>Email:</strong> support@heartcare.com</p>
<p><strong>Phone:</strong> +91 9876543210</p>
<p><strong>Location:</strong> Nanded, Maharashtra, India</p>
</div>
</div>
<div class="footer-bottom">
<p>© 2025 HeartCare | AI Heart Disease Risk Prediction System | All Rights Reserved</p>
</div>
</footer>
<!-- Live Risk Preview -->
<div id="livePreview" class="live-preview-card">
<div class="live-preview-header">
<span>Live Risk Preview</span>
<i class="fa-solid fa-heart-pulse"></i>
</div>
<div class="live-risk-score" id="liveRiskScore">--%</div>
<div class="live-risk-label" id="liveRiskLabel">Enter details...</div>
</div>
<!-- Modals -->
<div id="resultModal" class="modal">
<div class="modal-content">
<span class="close-modal" onclick="closeModal()">×</span>
<div class="result-header">
<div id="riskIcon" class="risk-icon"></div>
<h2 id="riskLevel">High Risk</h2>
</div>
<div class="result-body">
<p>Based on your health indicators, our AI model estimates your cardiovascular disease risk
probability as:</p>
<div class="probability-meter">
<div id="probFill" class="prob-fill"></div>
<span id="probValue">0%</span>
</div>
<p class="disclaimer"><strong>Disclaimer:</strong> This tool provides an estimate based on
statistical models. It is not a medical diagnosis. Please consult a cardiologist for a proper
evaluation.</p>
</div>
<div class="modal-actions">
<button class="btn-cancel" onclick="closeModal()">Close Result</button>
<button type="button" onclick="goToRecommendations()" class="view-btn">
View Recommendations
</button>
</div>
</div>
</div>
<!-- SCRIPTS -->
<script src="/static/script.js"></script>
</body>
</html> |