dice/src/main/index.html

82 lines
3.0 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/roboto.css" />
<link rel="stylesheet" href="https://static.fwdekker.com/lib/template/2.x.x/template.css" />
<script async src="https://stats.fwdekker.com/count.js"
data-goatcounter="https://stats.fwdekker.com/count"></script>
</head>
<body>
<noscript>
<img src="https://stats.fwdekker.com/count?p=/tools/dice/" alt="Counting pixel" />
<p 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>.
</p>
</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>
<script src="https://static.fwdekker.com/lib/template/2.x.x/template.js"></script>
<!--suppress HtmlUnknownTarget -->
<script src="bundle.js?v=%%VERSION_NUMBER%%"></script>
</body>
</html>