Skip to content

Commit

Permalink
clear button
Browse files Browse the repository at this point in the history
  • Loading branch information
Javran committed Dec 25, 2017
1 parent ad75273 commit 3f8d2d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions battleplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
</div>
<div>
<input id="codeb" type="button" value="Load" onClick="loadCode()" />
<input id="clearb" type="button" value="Clear" onClick="clearCode()" />
<input type="button" value="Sample Code 1" onclick="$('#code').val(APIsample);" />
<input type="button" value="Sample Code 2" onclick="$('#code').val(APIsample2);" />
</div>
Expand Down
4 changes: 4 additions & 0 deletions js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -3378,6 +3378,10 @@ function clickedSkip() {

}

function clearCode() {
$('#code').val('')
}

var HASLOADTEXT = false;
function loadCode(fromOwn,callback) {
if (!CANRESET) return;
Expand Down

0 comments on commit 3f8d2d0

Please sign in to comment.