It works as it should work. It isn't the prettiest at some places, but it will do it.
This commit is contained in:
Fándly Gergő
2018-10-01 22:47:29 +03:00
parent ef3300592f
commit 39d086573d
6 changed files with 261 additions and 138 deletions

View File

@ -37,7 +37,8 @@
<div id="options">
<input type="checkbox" id="remFromBOnMatch" onclick="updateOptions()"/><label for="remFromBOnMatch">Remove element from group B when it has a match</label>
<br/>
<button class="start" onclick="setupRoll()">Finish</button>
<button class="start" onclick="reroll()">Finish</button>
<button class="start" onclick="reset()">Clear ALL data</button>
</div>
</div>
<div id="roller" style="display: none">
@ -57,10 +58,19 @@
</div>
</div>
</div>
<button type="button" class="roller__button" onclick="roll()">Roll!</button>
<div id="roll_results" class="roller__results" style="display: none">
<div id="resA" class="roller__result__label">
<!-- here goes the result from group A -->
</div>
<div id="resB" class="roller__result__label roller__result__label__right">
<!-- here goes the result from group B -->
</div>
<button onclick="reroll()" class="roller__button roller__result__button">Roll again!</button>
</div>
<button id="roller_button" type="button" class="roller__button" onclick="roll()">Roll!</button>
</div>
<div id="results" style="display: none">
<table>
<table class="resultsTable">
<thead>
<tr>
<th class="groupAName">Group A</th>