mirror of
https://git.hush.is/hush/hsc-creator.git
synced 2025-10-04 00:01:54 -04:00
added dropdown for algo
This commit is contained in:
parent
ead77f0a37
commit
bd1df6a063
15
index.html
15
index.html
@ -29,7 +29,6 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<form class="center">
|
<form class="center">
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<h4>Options</h4>
|
<h4>Options</h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -55,6 +54,18 @@
|
|||||||
<label>Name (-ac_name)</label>
|
<label>Name (-ac_name)</label>
|
||||||
<input class="input" type="text" v-model="optionName" style="border-color: #2d2d2d;">
|
<input class="input" type="text" v-model="optionName" style="border-color: #2d2d2d;">
|
||||||
</li>
|
</li>
|
||||||
|
<li class="animated fadeInRight" id="algoInput" style="border-color: #2d2d2d;">
|
||||||
|
<label>Algo (-ac_algo)</label>
|
||||||
|
<select name="algo" v-model="optionAlgo" id="dropdown" style="border-color: #2d2d2d;">
|
||||||
|
<option value=" -ac_algo=randomx " disabled value="">RandomX</option>
|
||||||
|
<option value=" -ac_algo=equihash -ac_nk=200,9 ">Equihash (200,9)</option>
|
||||||
|
<option value=' -ac_algo=equihash -ac_nk=210,9 '>Equihash (210,9)</option>
|
||||||
|
<option value=' -ac_algo=equihash -ac_nk=48,5 '>Equihash (48,5)</option>
|
||||||
|
<option value=' -ac_algo=equihash -ac_nk=96,5 '>Equihash (96,5)</option>
|
||||||
|
<option value=' -ac_algo=equihash -ac_nk=144,5 '>Equihash (144,5)</option>
|
||||||
|
<option value=' -ac_algo=equihash -ac_nk=150,5 '>Equihash (150,5)</option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
<li class="animated fadeInRight" id="supplyInput" style="border-color: #2d2d2d;">
|
<li class="animated fadeInRight" id="supplyInput" style="border-color: #2d2d2d;">
|
||||||
<label>Initial Supply (-ac_supply)</label>
|
<label>Initial Supply (-ac_supply)</label>
|
||||||
<input class="input" type="text" v-model="optionSupply" style="border-color: #2d2d2d;">
|
<input class="input" type="text" v-model="optionSupply" style="border-color: #2d2d2d;">
|
||||||
@ -106,7 +117,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src='https://unpkg.com/vue'></script>
|
<script src='https://cdn.jsdelivr.net/npm/vue@2.6.0'></script>
|
||||||
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
|
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
|
||||||
<script src='main.js?v=7'></script>
|
<script src='main.js?v=7'></script>
|
||||||
</body>
|
</body>
|
||||||
|
8
main.js
8
main.js
@ -18,6 +18,7 @@ new Vue({
|
|||||||
customPath: 0,
|
customPath: 0,
|
||||||
customMinerToAddress: 0,
|
customMinerToAddress: 0,
|
||||||
optionName: 'TUSH',
|
optionName: 'TUSH',
|
||||||
|
optionAlgo: ' -ac_algo=randomx ',
|
||||||
optionPubkey: '',
|
optionPubkey: '',
|
||||||
optionReward: '1250000000', // in puposhis
|
optionReward: '1250000000', // in puposhis
|
||||||
optionz2z: 1,
|
optionz2z: 1,
|
||||||
@ -46,7 +47,7 @@ new Vue({
|
|||||||
}
|
}
|
||||||
$('.flavor-banner').show()
|
$('.flavor-banner').show()
|
||||||
$(document.body).animate({
|
$(document.body).animate({
|
||||||
'scrollTop': $('#build').offset().top
|
'scrollTop': $('#build').offset().top
|
||||||
}, 1200);
|
}, 1200);
|
||||||
},
|
},
|
||||||
showPathInput: function () {
|
showPathInput: function () {
|
||||||
@ -91,8 +92,8 @@ new Vue({
|
|||||||
+ currentdate.getHours() + ":"
|
+ currentdate.getHours() + ":"
|
||||||
+ currentdate.getMinutes() + ":"
|
+ currentdate.getMinutes() + ":"
|
||||||
+ currentdate.getSeconds()
|
+ currentdate.getSeconds()
|
||||||
this.command = "git clone https://git.hush.is/hush/hush3<br/>cd hush3<br/>./build.sh<br/>cd src<br/>./<b>hush-smart-chain</b> -ac_name=" + this.optionName + " -ac_supply=" + this.optionSupply
|
this.command = "git clone https://git.hush.is/hush/hush3<br/>cd hush3<br/>./build.sh<br/>cd src<br/>./<b>hush-smart-chain</b> -ac_name=" + this.optionName + this.optionAlgo
|
||||||
+ " -ac_blocktime=" + this.optionBlocktime + " -ac_private=" + this.optionz2z;
|
+ " -ac_supply=" + this.optionSupply + " -ac_blocktime=" + this.optionBlocktime + " -ac_private=" + this.optionz2z;
|
||||||
this.command += " -ac_reward=" + this.optionReward + " -ac_halving=" + this.optionHalving;
|
this.command += " -ac_reward=" + this.optionReward + " -ac_halving=" + this.optionHalving;
|
||||||
if(this.optionPubkey != '')
|
if(this.optionPubkey != '')
|
||||||
this.command += " -ac_pubkey=" + this.optionPubkey;
|
this.command += " -ac_pubkey=" + this.optionPubkey;
|
||||||
@ -112,3 +113,4 @@ new Vue({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user