diff --git a/index.html b/index.html index b5a8c00..279752e 100755 --- a/index.html +++ b/index.html @@ -68,6 +68,29 @@ $('#mainnet').change(function() { gov = init('mainnet', mainnetProvider); }); $('#testnet').change(function() { gov = init('testnet', testnetProvider); }); + $('#start_epoch').change(function() { + paymentCycle.selectedStartIndex = $('#start_epoch').find(':selected').data('index'); + paymentCycle.updateEndEpoch(); + }); + + $('#end_epoch').change(function() { + paymentCycle.selectedPeriods = $('#end_epoch').find(':selected').data('index'); + + var payment_amount = parseInt($('#payment_amount').val()); + var periods = parseInt(paymentCycle.selectedPeriods+1); + + $('#total_amount').text(payment_amount * periods); + }); + + $('#payment_amount').change(function() { + paymentCycle.selectedPeriods = $('#end_epoch').find(':selected').data('index'); + + var payment_amount = parseInt($('#payment_amount').val()); + var periods = parseInt(paymentCycle.selectedPeriods+1); + + $('#total_amount').text(payment_amount * periods); + }); + $("#time").val(Math.floor((new Date).getTime() / 1000)); $('#prepareProposal').click(function() { @@ -242,7 +265,7 @@

Create a Proposal

-
Enter details for your proposal and click 'Create Proposal'. This will generate a command you can run in your local wallet to prepare the proposal at a cost of 0.33 Dash
+
Enter details for your proposal and click 'Create Proposal'. This will generate a command you can run in your local wallet to prepare the proposal at a cost of 0.33 DASH
@@ -263,7 +286,7 @@
- +
@@ -275,7 +298,7 @@
- +
@@ -293,7 +316,7 @@
- +
@@ -308,6 +331,15 @@
+
+
+
+ + 0 DASH +
+
+
+