diff options
author | obscuren <geffobscura@gmail.com> | 2014-04-24 20:43:00 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-04-24 20:43:00 +0800 |
commit | bbde892d5012203bb984b83fcb2fe11467841643 (patch) | |
tree | d4b04a5fcce13861dd33ccba38994136c97d683a /ethereal/assets/test.html | |
parent | c535d0d24623caafcab084546f85f1f70cb2ac67 (diff) | |
download | go-tangerine-bbde892d5012203bb984b83fcb2fe11467841643.tar go-tangerine-bbde892d5012203bb984b83fcb2fe11467841643.tar.gz go-tangerine-bbde892d5012203bb984b83fcb2fe11467841643.tar.bz2 go-tangerine-bbde892d5012203bb984b83fcb2fe11467841643.tar.lz go-tangerine-bbde892d5012203bb984b83fcb2fe11467841643.tar.xz go-tangerine-bbde892d5012203bb984b83fcb2fe11467841643.tar.zst go-tangerine-bbde892d5012203bb984b83fcb2fe11467841643.zip |
Added callback mechanism and updated UI
* UI Now updates when a new block has been broadcasted
* Added a on, off and trigger
Diffstat (limited to 'ethereal/assets/test.html')
-rw-r--r-- | ethereal/assets/test.html | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ethereal/assets/test.html b/ethereal/assets/test.html index 1cfcad6bb..476283f60 100644 --- a/ethereal/assets/test.html +++ b/ethereal/assets/test.html @@ -23,11 +23,16 @@ function tests() { function init() { eth.getKey(function(key) { + eth.getStorage(jefcoinAddr, key, function(storage) { + document.querySelector("#currentAmount").innerHTML = "Amount: " + storage; + }); + + eth.on("block:new", function() { eth.getStorage(jefcoinAddr, key, function(storage) { - debug("Currently in storage: ", storage); document.querySelector("#currentAmount").innerHTML = "Amount: " + storage; - }) - }) + }); + }); + }); } </script> |