2022-10-08 19:39:04 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Doses</title>
|
2022-10-08 20:32:50 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
2022-10-08 20:17:22 +02:00
|
|
|
<style>
|
|
|
|
html {
|
|
|
|
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
|
|
}
|
2022-10-09 11:35:30 +02:00
|
|
|
|
|
|
|
footer {
|
|
|
|
margin-top: 3em;
|
|
|
|
}
|
2022-10-08 20:17:22 +02:00
|
|
|
</style>
|
2022-10-08 19:39:04 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Doses converter</h1>
|
2022-10-08 20:17:22 +02:00
|
|
|
|
2022-10-09 11:35:30 +02:00
|
|
|
<p>
|
|
|
|
Given an alcohol proof in percent, compute the number of alcohol doses in a volume
|
|
|
|
or the volume for a number of doses.
|
|
|
|
</p>
|
|
|
|
|
2022-10-08 20:17:22 +02:00
|
|
|
<p>
|
|
|
|
<label for="proof">Proof (%)</label>
|
|
|
|
<input type="number" id="proof" value="40">
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<label for="volume">Volume (cl)</label>
|
|
|
|
<input type="number" id="volume" value="10">
|
2022-10-09 11:35:30 +02:00
|
|
|
<button id="compute-volume"
|
|
|
|
title="Compute the volume given the proof and the number of doses">
|
|
|
|
Compute
|
|
|
|
</button>
|
2022-10-08 20:17:22 +02:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<label for="dose">Dose</label>
|
|
|
|
<input type="number" id="dose" value="3.2">
|
2022-10-09 11:35:30 +02:00
|
|
|
<button id="compute-dose"
|
|
|
|
title="Compute the number of doses given the proof and the volume">
|
|
|
|
Compute
|
|
|
|
</button>
|
2022-10-08 20:17:22 +02:00
|
|
|
</p>
|
|
|
|
|
2022-10-09 11:35:30 +02:00
|
|
|
<footer>
|
|
|
|
<p>
|
|
|
|
Checkout the code on <a href="https://github.com/Crocmagnon/doses">GitHub</a>.<br>
|
|
|
|
This piece of code is released in the public domain. See the <a href="https://github.com/Crocmagnon/doses/blob/master/LICENSE">license</a> for
|
|
|
|
more details.
|
|
|
|
</p>
|
|
|
|
</footer>
|
|
|
|
|
2022-10-08 19:39:04 +02:00
|
|
|
<script src="main.js" defer></script>
|
|
|
|
</body>
|
|
|
|
</html>
|