mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
attach click events to decode and prove buttons
This commit is contained in:
parent
a77468ce80
commit
9590094633
2 changed files with 46 additions and 6 deletions
|
@ -1,8 +1,5 @@
|
||||||
var config = {
|
var config = {
|
||||||
apiUrl: "http://127.0.0.1:1984/",
|
testnet: true, //@todo need to make it automated
|
||||||
mainnetExplorerUrl: "https://xmrchain.com/",
|
|
||||||
testnetExplorerUrl: "https://testnet.xmrchain.com/",
|
|
||||||
testnet: false,
|
|
||||||
coinUnitPlaces: 12,
|
coinUnitPlaces: 12,
|
||||||
txMinConfirms: 10, // corresponds to CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE in Monero
|
txMinConfirms: 10, // corresponds to CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE in Monero
|
||||||
txCoinbaseMinConfirms: 60, // corresponds to CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW in Monero
|
txCoinbaseMinConfirms: 60, // corresponds to CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW in Monero
|
||||||
|
|
|
@ -93,7 +93,15 @@
|
||||||
<input type="text" name="viewkey" size="90" placeholder="Private viewkey" style="margin-top:5px"><br/>
|
<input type="text" name="viewkey" size="90" placeholder="Private viewkey" style="margin-top:5px"><br/>
|
||||||
<input type="hidden" name="raw_tx_data" value="{{raw_tx_data}}">
|
<input type="hidden" name="raw_tx_data" value="{{raw_tx_data}}">
|
||||||
<!--above raw_tx_data field only used when checking raw tx data through tx pusher-->
|
<!--above raw_tx_data field only used when checking raw tx data through tx pusher-->
|
||||||
|
|
||||||
|
{{#enable_js}}
|
||||||
|
<!-- if have js, DONOT submit the form to server.
|
||||||
|
change submit button, to just a button -->
|
||||||
|
<button type="button" style="margin-top:5px" id="decode_btn" >Decode outputs</button>
|
||||||
|
{{/enable_js}}
|
||||||
|
{{^enable_js}}
|
||||||
<input type="submit" value="Decode outputs" style="margin-top:5px" >
|
<input type="submit" value="Decode outputs" style="margin-top:5px" >
|
||||||
|
{{/enable_js}}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -116,7 +124,16 @@
|
||||||
<input type="hidden" name="raw_tx_data" value="{{raw_tx_data}}">
|
<input type="hidden" name="raw_tx_data" value="{{raw_tx_data}}">
|
||||||
<!--above raw_tx_data field only used when checking raw tx data through tx pusher-->
|
<!--above raw_tx_data field only used when checking raw tx data through tx pusher-->
|
||||||
<input type="text" name="xmraddress" size="90" placeholder="Recipient's monero address/subaddress" style="margin-top:5px"><br/>
|
<input type="text" name="xmraddress" size="90" placeholder="Recipient's monero address/subaddress" style="margin-top:5px"><br/>
|
||||||
|
|
||||||
|
{{#enable_js}}
|
||||||
|
<!-- if have js, DONOT submit the form to server.
|
||||||
|
change submit button, to just a button -->
|
||||||
|
<button type="button" style="margin-top:5px" id="prove_btn">Prove sending</button>
|
||||||
|
{{/enable_js}}
|
||||||
|
{{^enable_js}}
|
||||||
<input type="submit" value="Prove sending" style="margin-top:5px">
|
<input type="submit" value="Prove sending" style="margin-top:5px">
|
||||||
|
{{/enable_js}}
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -124,6 +141,32 @@
|
||||||
</div>
|
</div>
|
||||||
{{/have_raw_tx}}
|
{{/have_raw_tx}}
|
||||||
|
|
||||||
|
{{#enable_js}}
|
||||||
|
|
||||||
|
<!-- to disply results from deconding and proving txs using js -->
|
||||||
|
<div id="decode-prove-results" class="center" style="width: 80%; margin-top:10px">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// here we handle button presses from the above forms
|
||||||
|
// to decode and prove txs.
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
$("#decode_btn").click(function() {
|
||||||
|
$("#decode-prove-results").html("Decode button pressed");
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#prove_btn").click(function() {
|
||||||
|
$("#decode-prove-results").html("Prove button pressed");
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{{/enable_js}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{#has_inputs}}
|
{{#has_inputs}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue