-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
93 lines (90 loc) · 4.29 KB
/
index.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="description" content="Blood alcohol concentration calculator.">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Blood alcohol content calculator</title>
<link rel="shortcut icon" href="./favicon.png"/>
<link rel="stylesheet" type="text/css" href="./styles.css"/>
<script src="./index.js" type="module"></script>
</head>
<body>
<div class="page main">
<div class="toolbar container">
<button class="show-settings" title="Settings..." type="button"><div>⚙️</div></button>
<span class="version"></span>
<button class="add-drink" title="Add a drink" type="button"><div>➕🍺</div></button>
</div>
<div class="output bac container">
<span class="label">Alcohol concentration:</span>
<span class="value"></span>
<span class="hint">g/L</span>
</div>
<div class="output time-to limit container">
<span class="label">Time to limit:</span>
<span class="value"></span>
<span class="hint"></span>
</div>
<div class="output time-to zero container">
<span class="label">Time to zero:</span>
<span class="value"></span>
</div>
<div class="drinks container"></div>
<div class="timeline container">
<div class="timeline"></div>
</div>
</div>
<div class="page settings">
<div class="header">
<button class="close" type="button">X</button>
</div>
<div class="variables">
<label class="body-weight label" for="body-weight">Body weight:</label>
<input class="body-weight value" type="number" id="body-weight"/>
<span class="body-weight hint">in kg</span>
<label class="rho-factor label" for="rho-factor">Rho factor:</label>
<input class="rho-factor value" type="number" id="rho-factor" step="0.001"/>
<span class="rho-factor hint">in L/kg</span>
<label class="alcohol-elimination-rate label" for="alcohol-elimination-rate">Alcohol elimination rate:</label>
<input class="alcohol-elimination-rate value" type="number" id="alcohol-elimination-rate" step="0.001"/>
<span class="alcohol-elimination-rate hint">in g/L/hour</span>
<label class="driving-limit label" for="driving-limit">Driving limit:</label>
<input class="driving-limit value" type="number" id="driving-limit" step="0.1"/>
<span class="driving-limit hint">in g/L</span>
</div>
<hr/>
<div class="info">
<div class="rho-factor">
<span class="description">Rho factor for:</span>
<div class="for-male">
<span>Male: </span>
<span class="default-value"></span>
<span> L/kg</span>
</div>
<div class="for-female">
<span>Female: </span>
<span class="default-value"></span>
<span> L/kg</span>
</div>
</div>
<div class="alcohol-elimination-rate">
<span class="description">Elimination rate:</span>
<div class="for-human">
<span>Human average: </span>
<span class="default-value"></span>
<span> g/L/hour</span>
</div>
</div>
</div>
<hr/>
<div>
To understand those values: <a href="https://en.wikipedia.org/wiki/Blood_alcohol_content" target="_blank">wikipedia</a>.
</div>
<div>
You can find the source code of this project on <a href="https://github.com/TanukiSharp/blood-alcohol-content" target="_blank">GitHub</a>.
</div>
</div>
<div class="page loading">Loading...</div>
</body>
</html>