80 lines
2.9 KiB
HTML
80 lines
2.9 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="Florine 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" />
|
|
|
|
<meta name="fwd:auto:show-main" />
|
|
<meta name="fwd:nav:target" content="#nav" />
|
|
<meta name="fwd:nav:highlight-path" content="/Tools/Dice/" />
|
|
<meta name="fwd:footer:target" content="#footer" />
|
|
<meta name="fwd:footer:vcs-url" content="https://git.fwdekker.com/tools/dice/" />
|
|
<meta name="fwd:footer:version" content="v%%VERSION_NUMBER%%" />
|
|
|
|
<title>Dice probabilities | FWDekker</title>
|
|
|
|
<link rel="stylesheet" href="https://static.fwdekker.com/lib/template/3.x.x/template.css?v=%%VERSION_NUMBER%%" />
|
|
<script async src="https://stats.fwdekker.com/count.js"
|
|
data-goatcounter="https://stats.fwdekker.com/count"></script>
|
|
</head>
|
|
<body>
|
|
<noscript class="fwd-js-notice">
|
|
<img src="https://stats.fwdekker.com/count?p=/tools/dice/" alt="Counting pixel" />
|
|
|
|
<p>
|
|
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>
|
|
<nav id="nav"></nav>
|
|
<main class="container hidden">
|
|
<div role="document">
|
|
<section>
|
|
<header class="fwd-header">
|
|
<hgroup>
|
|
<h1><a href=".">Dice</a></h1>
|
|
<h2>Calculate the probability of rolling a value given a combination of dice.</h2>
|
|
</hgroup>
|
|
</header>
|
|
|
|
<form id="inputs">
|
|
<table id="die-settings">
|
|
<thead>
|
|
<tr>
|
|
<th>Sides per die</th>
|
|
<th>Number of rolls</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<button id="add-die-row-button" class="button-outline" type="button">
|
|
Add dice
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<button type="submit">Recalculate</button>
|
|
</form>
|
|
|
|
<h2>Probabilities</h2>
|
|
<canvas id="prob-chart"></canvas>
|
|
</section>
|
|
<footer id="footer"></footer>
|
|
</div>
|
|
</main>
|
|
|
|
<script src="https://static.fwdekker.com/lib/template/3.x.x/template.js?v=%%VERSION_NUMBER%%"></script>
|
|
<!--suppress HtmlUnknownTarget -->
|
|
<script src="bundle.js?v=%%VERSION_NUMBER%%"></script>
|
|
</body>
|
|
</html>
|