-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
35 lines (34 loc) · 1.25 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Transaction data builder</title>
</head>
<body>
<h1>Transaction composer</h1>
<div id="compose_transfer">
<script type="text/javascript" src="bundle.js"></script>
<script type="text/javascript">
function composeTransferData() {
document.getElementById('TXdata').innerHTML = module.tokenTransferData(document.getElementById('amount').value, document.getElementById('address').value, document.getElementById('decimals').value);
}
</script>
<form>
<label>Address:</labe>
<input type="text" id="address" placeholder="to address">
<br>
<label>Amount:</labe>
<input type="number" id="amount" placeholder="0">
<br>
<label>Decimals:</labe>
<input type="number" id="decimals" value="18">
<br>
<button type="button" onClick="composeTransferData()">Create</button>
</form>
<br>
<div>
<label id="TXdata">result</label>
</div>
</div>
</body>
</html>