Skip to content

Commit

Permalink
demo pages. ETH Signer clear log button added
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaipov committed Jan 31, 2019
1 parent 635f9b9 commit f117944
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions docs/eth_signer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ <h6>Documentation: <a href="https://github.com/arrayio/array-io-keychain/wiki/Ho
</div>
<div class="columns">
<div class="column col">
<label class="form-label" for="log">Log</label>
<div class="columns">
<div class="column col-6">
<label class="form-label" for="log">Log</label>
</div>
<div class="column col-6 text-right">
<button class="btn btn-sm" id="btn_CLEAR_LOG">Clear log</button>
</div>
</div>
<textarea class="form-input" id="log" rows="15"></textarea>
</div>
</div>
Expand All @@ -59,7 +66,7 @@ <h6>Documentation: <a href="https://github.com/arrayio/array-io-keychain/wiki/Ho
<div class="input-group">
<span class="input-group-addon">Raw Hex:</span>
<input type="text" class="form-input" placeholder="Please, sign your transaction" id="rawHex" readonly>
<button class="btn input-group-btn btn-action" title="Copy to clipboard"><i class="icon icon-copy" id="btn_COPY"></i></button>
<button class="btn input-group-btn btn-action" title="Copy to clipboard" id="btn_COPY"><i class="icon icon-copy"></i></button>
</div>
</div>
</div>
Expand Down Expand Up @@ -146,6 +153,10 @@ <h6>Documentation: <a href="https://github.com/arrayio/array-io-keychain/wiki/Ho
document.getElementById('btn_COPY').addEventListener('click', function () {
document.getElementById("rawHex").select();
document.execCommand("copy");
});

document.getElementById('btn_CLEAR_LOG').addEventListener('click', function () {
document.getElementById('log').value = '';
})
};

Expand Down

0 comments on commit f117944

Please sign in to comment.