Browse Source

coding web dev like it's 1996

pull/2/head
Duke Leto 3 years ago
parent
commit
24742b019f
  1. 12
      index.html
  2. 5
      main.js
  3. BIN
      putin.gif
  4. 9
      style.css

12
index.html

@ -7,7 +7,7 @@
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/milligram/1.1.0/milligram.min.css'>
<link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Poppins:300,400,500,700'>
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css'>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="style.css?v=2">
</head>
<body>
<div id="app">
@ -58,10 +58,18 @@
<label>Initial Supply</label>
<input class="input" type="text" v-model="optionSupply" style="border-color: #2d2d2d;">
</li>
<li class="animated fadeInRight" id="rewardInput" style="border-color: #2d2d2d;">
<label>Initial Block Reward</label>
<input class="input" type="text" v-model="optionReward" style="border-color: #2d2d2d;">
</li>
<li class="animated fadeInRight" id="blocktimeInput" style="border-color: #2d2d2d;">
<label>Block time</label>
<input class="input" type="text" v-model="optionBlocktime" style="border-color: #2d2d2d;">
</li>
<li class="animated fadeInRight" id="halvingInput" style="border-color: #2d2d2d;">
<label>Block Halving Period</label>
<input class="input" type="text" v-model="optionHalving" style="border-color: #2d2d2d;">
</li>
</ul>
<h5 style="margin-top: 15px;">Addnodes</h5>
<p>Add trusted bootstrap nodes. Remove by clicking.</p>
@ -100,6 +108,6 @@
</div>
<script src='https://unpkg.com/vue'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
<script src='main.js?v=3'></script>
<script src='main.js?v=4'></script>
</body>
</html>

5
main.js

@ -18,9 +18,11 @@ new Vue({
customPath: 0,
customMinerToAddress: 0,
optionName: 'TUSH',
optionReward: '1250000000', // in puposhis
optionz2z: 1,
optionSupply: '21000000',
optionBlocktime: 60,
optionHalving: 210000,
optionRpcAllowIp: '127.0.0.1',
optionRpcUser: 'rpcuser',
optionRpcPassword: Math.random().toString(36).slice(2),
@ -88,8 +90,9 @@ new Vue({
+ currentdate.getHours() + ":"
+ currentdate.getMinutes() + ":"
+ currentdate.getSeconds()
this.command = "<br/>hush-smart-chain -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 + " -ac_supply=" + this.optionSupply
+ " -ac_blocktime=" + this.optionBlocktime + " -ac_private=" + this.optionz2z;
this.command += " -ac_reward=" + this.optionReward + " -ac_halving=" + this.optionHalving;
/*
if (this.optionAllowList.length != 0) {
this.command = this.conf + "<br /><br />whitelist=" + this.optionAllowList

BIN
putin.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 857 KiB

9
style.css

@ -126,6 +126,15 @@ code.light {
padding: 5px 10px 5px 10px;
word-wrap: none;
}
.content .clapping {
display: none;
margin-top: 50px;
text-align: left;
border: 1px solid #cccccc;
border-radius: 5px;
padding: 5px 10px 5px 10px;
word-wrap: none;
}
.content .flavor-banner {
display: none;
width: 75%;

Loading…
Cancel
Save