aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/samplecoin/samplecoin.html
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-04 21:49:32 +0800
committerobscuren <geffobscura@gmail.com>2014-07-04 21:49:32 +0800
commit043920d1572b5c0a1a6fb7ba46aedcfa3ced285e (patch)
tree8a02480711ca73ad5dbfb1bea3e6499562352c18 /ethereal/assets/samplecoin/samplecoin.html
parent9e38ca555dccd6b9a4a3fa0eb9eb749d2dc3c82c (diff)
downloadgo-tangerine-043920d1572b5c0a1a6fb7ba46aedcfa3ced285e.tar
go-tangerine-043920d1572b5c0a1a6fb7ba46aedcfa3ced285e.tar.gz
go-tangerine-043920d1572b5c0a1a6fb7ba46aedcfa3ced285e.tar.bz2
go-tangerine-043920d1572b5c0a1a6fb7ba46aedcfa3ced285e.tar.lz
go-tangerine-043920d1572b5c0a1a6fb7ba46aedcfa3ced285e.tar.xz
go-tangerine-043920d1572b5c0a1a6fb7ba46aedcfa3ced285e.tar.zst
go-tangerine-043920d1572b5c0a1a6fb7ba46aedcfa3ced285e.zip
Removed sample coin
Diffstat (limited to 'ethereal/assets/samplecoin/samplecoin.html')
-rw-r--r--ethereal/assets/samplecoin/samplecoin.html68
1 files changed, 0 insertions, 68 deletions
diff --git a/ethereal/assets/samplecoin/samplecoin.html b/ethereal/assets/samplecoin/samplecoin.html
deleted file mode 100644
index 7b63f78e4..000000000
--- a/ethereal/assets/samplecoin/samplecoin.html
+++ /dev/null
@@ -1,68 +0,0 @@
-<html>
-<head>
-<title>jeffcoin</title>
-
-<link rel="stylesheet" href="bootstrap.min.css">
-<link rel="stylesheet" href="bootstrap-theme.min.css">
-<link rel="stylesheet" href="samplecoin.css">
-<meta name="viewport" content="minimum-scale=1; maximum-scale=1; initial-scale=1;">
-
-<script type="text/javascript">
-
-var jefcoinAddr = "22fa3ebce6ef9ca661a960104d3087eec040011e"
-var mAddr = ""
-
-function createTransaction() {
- var addr = ("0x" + document.querySelector("#addr").value).pad(32);
- var amount = document.querySelector("#amount").value.pad(32);
-
- var data = (addr + amount).unbin();
- eth.transact(mAddr, jefcoinAddr, 0, "50000", "1000000", data, function(receipt) {
- debug("received tx hash:", reciept.address)
- })
-}
-
-function init() {
- eth.getKey(function(sec) {
- mAddr = sec;
- eth.getSecretToAddress(sec, function(addr) {
- eth.getStorageAt(jefcoinAddr, addr, function(storage) {
- document.querySelector("#current-amount").innerHTML = storage;
- });
-
- eth.watch(jefcoinAddr, addr, function(addr, value) {
- document.querySelector("#current-amount").innerHTML = value
- });
- });
- });
-}
-
-</script>
-</head>
-
-<body onload="init();">
-<div class="container">
- <div class="header">
- <h3 class="text-muted">JeffCoin</h3>
- </div>
-
- <div class="jumbotron ">
- <img src="icon.png">
- <div>Amount: <strong id="current-amount"></strong></div>
-
- <div id="transactions">
- <div class="form-group">
- <input id="addr" class="form-control" type="text" placeholder="Receiver address"></input><br>
- <input id="amount" class="form-control" type="text" placeholder="Amount"></input><br>
- </div>
-
- <button class="btn btn-default" onclick="createTransaction();">Send Tx</button>
- </div>
- </div>
-</div>
-
-<div id="debug" style="border: 1px solid black; min-height: 30px;"></div>
-
-</body>
-</html>
-