aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/test.html
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-23 17:51:34 +0800
committerobscuren <geffobscura@gmail.com>2014-04-23 17:51:34 +0800
commita3c8f83562c7a740ac89e63bf36f2ce44ae6627a (patch)
tree3227a46faa9908d6d4b136c8076cde29b2cffcc6 /ethereal/assets/test.html
parentaec3e26ea0074842ca36a5d918cc3ed049a547cf (diff)
downloaddexon-a3c8f83562c7a740ac89e63bf36f2ce44ae6627a.tar
dexon-a3c8f83562c7a740ac89e63bf36f2ce44ae6627a.tar.gz
dexon-a3c8f83562c7a740ac89e63bf36f2ce44ae6627a.tar.bz2
dexon-a3c8f83562c7a740ac89e63bf36f2ce44ae6627a.tar.lz
dexon-a3c8f83562c7a740ac89e63bf36f2ce44ae6627a.tar.xz
dexon-a3c8f83562c7a740ac89e63bf36f2ce44ae6627a.tar.zst
dexon-a3c8f83562c7a740ac89e63bf36f2ce44ae6627a.zip
Updated test coin
Diffstat (limited to 'ethereal/assets/test.html')
-rw-r--r--ethereal/assets/test.html37
1 files changed, 25 insertions, 12 deletions
diff --git a/ethereal/assets/test.html b/ethereal/assets/test.html
index bd8711d38..eb55bf667 100644
--- a/ethereal/assets/test.html
+++ b/ethereal/assets/test.html
@@ -1,27 +1,40 @@
<html>
<head>
-<title>Epic Works (TM)</title>
+<title>jeffcoin</title>
<body>
-<h1>It just works!</h1>
+<h1>Jeff Coin</h1>
-<p>Play with me...</p>
+<img src="file:///Users/jeffrey/Desktop/iconnew.png">
-<button onclick="test();">test</button>
-<div id="out"></div>
-<div id="in"></div>
-<div id="debug"></div>
+<div id="transactions">
+ <input id="addr" type="text" placeholder="Receiver address"></input><br>
+ <input id="amount" type="text" placeholder="Amount"></input><br>
+ <button onclick="createTransaction();">Send Tx</button>
+</div>
+
+<div><button onclick="test();">Tests</button></div>
<script type="text/javascript">
-function test() {
- eth.send(function(data) {
- debug(data)
- document.getElementById("in").innerHTML ="and the other way around " + data.message;
+function createTransaction() {
+ debug("test")
+ var addr = document.querySelector("#addr").value;
+ var amount = document.querySelector("#amount").value;
+
+ eth.createTx(addr, amount, "100", "250", "", function(tx) {
+ debug("received tx hash:", tx)
})
}
-
+// Any test related actions here please
+function tests() {
+ eth.getBlock(1, function(block) {
+ debug("queried block:", block)
+ })
+}
</script>
+<div id="debug" style="border: 1px solid block"></div>
+
</body>
</html>