Skip to content

Instantly share code, notes, and snippets.

@cgbahk
Created October 31, 2018 13:04
Show Gist options
  • Save cgbahk/818ec3dd978160fa33124d522a499454 to your computer and use it in GitHub Desktop.
Save cgbahk/818ec3dd978160fa33124d522a499454 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>A Simple Smart Contract Generator</title>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' rel='stylesheet' type='text/css'>
</head>
<body class="container">
<h1>A Simple Smart Contract Generator</h1>
...
<div class="table-responsive">
<table class="table table-bordered">
<thead>
<tr>
<th>Attribute</th>
<th>Setting</th>
</tr>
</thead>
<tbody>
<tr>
<td>Token Name</td>
<td><input type="text" id="token_name" value="TOKEN"/>: name your own token name</td>
</tr>
<tr>
<td>Token Symbol</td>
<td><input type="text" id="token_symbol" value="TKN" />: name your token's symbol, like ETH or BTC</td>
</tr>
<tr>
<td>Decimal Units</td>
<td><input type="text" id="decimals" value="2"/></td>
</tr>
<tr>
<td>Initial Amount</td>
<td><input type="text" id="initial_amount" value="10000"/></td>
</tr>
<tr>
<td>Status</td>
<td id="status"></td>
</tr>
</tbody>
</table>
</div>
<a href="#" onclick="deploySC()" class="btn btn-primary">Deploy!</a>
</body>
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js"></script>
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script>
<script src="./index.js"></script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment