-
Notifications
You must be signed in to change notification settings - Fork 0
/
risk.html
70 lines (65 loc) · 1.95 KB
/
risk.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mortality Risk Calculator</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
.input-method {
margin-bottom: 20px;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
}
.input-method h2 {
margin-top: 0;
}
button, select {
padding: 10px;
margin: 5px;
font-size: 16px;
}
#dictation-result {
margin-top: 10px;
font-style: italic;
}
#mortality-risk-graph-container {
margin-top: 20px;
}
canvas {
width: 100% !important;
height: 400px !important; /* Fixed height */
}
</style>
</head>
<body>
<h3>Mortality Risk</h3>
<div class="input-method">
<h2>Option 1: Voice Input</h2>
<button id="start-dictation">Start Dictation</button>
<div id="dictation-result"></div>
</div>
<div class="input-method">
<h2>Option 2: Manual Selection</h2>
<label for="scenario-dropdown">Select Scenario:</label>
<select id="scenario-dropdown">
<option value="donor">Donor</option>
<option value="control">Control</option>
<option value="genpop">General Population</option>
</select>
</div>
<button id="calculate-risk-button" disabled>Calculate Mortality Risk</button>
<div id="mortality-risk-graph-container">
<canvas id="mortality-risk-graph"></canvas>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="assets/js/script.js"></script>
</body>
</html>