Add LICENSE, footer, and semantic HTML
LICENSE is dated 2018 because that is when I originally wrote the code.
This commit is contained in:
parent
77ef279b7f
commit
ee36587003
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2018 Felix W. Dekker
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
92
index.html
92
index.html
|
@ -20,53 +20,75 @@
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
margin-bottom: 50px;
|
margin-bottom: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
margin-top: 50px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<main class="wrapper">
|
||||||
<h1>Dice probabilities</h1>
|
<!-- Header -->
|
||||||
<blockquote>
|
<header class="header">
|
||||||
<p><em>Calculates the probability of throwing a value given a combination of dice.</em></p>
|
<section class="container">
|
||||||
</blockquote>
|
<h1>Dice probabilities</h1>
|
||||||
|
<blockquote>
|
||||||
|
<p><em>Calculates the probability of throwing a value given a combination of dice.</em></p>
|
||||||
|
</blockquote>
|
||||||
|
</section>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
|
||||||
<!-- Input -->
|
<!-- Input -->
|
||||||
<div class="row">
|
<section class="container">
|
||||||
<div class="column">
|
<div class="row">
|
||||||
<form>
|
<div class="column">
|
||||||
<fieldset>
|
<form>
|
||||||
<table id="dieSettings">
|
<fieldset>
|
||||||
<thead>
|
<table id="dieSettings">
|
||||||
<tr>
|
<thead>
|
||||||
<th>Sides per die</th>
|
<tr>
|
||||||
<th>Number of throws</th>
|
<th>Sides per die</th>
|
||||||
<th></th>
|
<th>Number of throws</th>
|
||||||
</tr>
|
<th></th>
|
||||||
</thead>
|
</tr>
|
||||||
<tbody>
|
</thead>
|
||||||
<tr>
|
<tbody>
|
||||||
<td>
|
<tr>
|
||||||
<button id="addDieRowButton" class="button-outline" type="button">Add dice</button>
|
<td>
|
||||||
</td>
|
<button id="addDieRowButton" class="button-outline" type="button">Add dice
|
||||||
</tr>
|
</button>
|
||||||
</tbody>
|
</td>
|
||||||
</table>
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
<button id="submit" type="button">Submit</button>
|
<button id="submit" type="button">Submit</button>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<!-- Output -->
|
<!-- Output -->
|
||||||
<h2>Probabilities</h2>
|
<section class="container">
|
||||||
<div class="row">
|
<h2>Probabilities</h2>
|
||||||
<div class="column">
|
<div class="row">
|
||||||
<canvas id="probChart"></canvas>
|
<div class="column">
|
||||||
|
<canvas id="probChart"></canvas>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<section class="container">
|
||||||
|
<p>Made by <a href="https://fwdekker.com/">Felix W. Dekker</a>. Licensed under the <a href="https://git.fwdekker.com/FWDekker/dice/LICENSE">MIT License</a>. Source code available on <a href="https://git.fwdekker.com/FWDekker/dice/">git</a>.</p>
|
||||||
|
</section>
|
||||||
|
</footer>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
|
|
Loading…
Reference in New Issue