78 lines
2.6 KiB
HTML
78 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="author" content="Felix W. Dekker" />
|
|
<meta name="application-name" content="Dice probabilities" />
|
|
<meta name="description" content="Calculates the probability of rolling a value given a combination of dice." />
|
|
<meta name="theme-color" content="#0033cc" />
|
|
|
|
<title>Dice probabilities | FWDekker</title>
|
|
|
|
<link rel="stylesheet" href="https://static.fwdekker.com/fonts/roboto.css" crossorigin="anonymous" />
|
|
</head>
|
|
<body>
|
|
<noscript>
|
|
<span style="color: red; font-weight: bold;">
|
|
This website does not function if JavaScript is disabled.
|
|
Please check the <a href="https://www.enable-javascript.com/">
|
|
instructions on how to enable JavaScript in your web browser</a>.
|
|
</span>
|
|
</noscript>
|
|
<main style="display: none;">
|
|
<div id="nav"></div>
|
|
<div id="contents">
|
|
<div id="header"></div>
|
|
|
|
|
|
<!-- Input -->
|
|
<section class="container">
|
|
<div class="row">
|
|
<div class="column">
|
|
<form>
|
|
<fieldset>
|
|
<table id="dieSettings">
|
|
<thead>
|
|
<tr>
|
|
<th>Sides per die</th>
|
|
<th>Number of rolls</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<button id="addDieRowButton" class="button-outline" type="button">Add dice
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<button id="submit" type="button">Recalculate</button>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Output -->
|
|
<section class="container">
|
|
<h2>Probabilities</h2>
|
|
<div class="row">
|
|
<div class="column">
|
|
<canvas id="probChart"></canvas>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<div id="footer"></div>
|
|
</main>
|
|
|
|
|
|
<!-- Scripts -->
|
|
<script src="bundle.js?v=%%VERSION_NUMBER%%"></script>
|
|
</body>
|
|
</html>
|