Browse Source

Fix resetting and initial die quantity

master
parent
commit
7a48c15f57
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      dice/index.html
  2. +2
    -1
      dice/main.js

+ 1
- 1
dice/index.html View File

@@ -37,7 +37,7 @@
</div>
</div>
<div class="center_field">
<input type="text" id="set" value="4d6"></input><br/>
<input type="text" id="set" value=""></input><br/>
<button id="clear">clear</button>
<button style="margin-left: 0.6em" id="throw">throw</button>
</div>


+ 2
- 1
dice/main.js View File

@@ -26,7 +26,8 @@ function diceInitialize(container, w, h) {

$t.bind($t.id('clear'), ['mouseup', 'touchend', 'touchcancel'], function(ev) {
ev.stopPropagation();
set.value = '0';
set.dataset.fullDieProps = "";
set.value = '';
onSetChange();
});



Loading…
Cancel
Save