Skip to content

Commit

Permalink
reset nbBlocks too
Browse files Browse the repository at this point in the history
  • Loading branch information
tbruyelle committed Dec 3, 2024
1 parent e8fdfc7 commit 15b90dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/deposit.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<tr><td>NumProposals</td><td><input type=number id="numProposals" min=0 value=0 /></td></tr>
<tr><td>Alpha UP<td><input id="alphaUp" type=number value='0.01' min=0 max=1 step='0.01' /></td></tr>
<tr><td>Alpha DOWN<td><input id="alphaDown" type=number value='-0.005' min=-1 max=0 step='0.01' /></td></tr>
<tr><td>k</td><td><input type=number id="k" value='2' step='1' /></td></tr>
<tr><td>k</td><td><input type=number id="k" value='2' min=1 step='1' /></td></tr>
<tr>
<td><button onclick='reset()'>Reset</button></td>
<td><button id='pauseResume' onclick='pauseResume()'>Pause</button></td>
Expand Down
1 change: 1 addition & 0 deletions docs/deposit.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ option = {
function reset() {
deposits = [];
numProposals = [];
nbBlocks=0;
document.getElementById('numProposals').value = 0;
}

Expand Down

0 comments on commit 15b90dd

Please sign in to comment.