aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/test.html
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-24 20:43:00 +0800
committerobscuren <geffobscura@gmail.com>2014-04-24 20:43:00 +0800
commitbbde892d5012203bb984b83fcb2fe11467841643 (patch)
treed4b04a5fcce13861dd33ccba38994136c97d683a /ethereal/assets/test.html
parentc535d0d24623caafcab084546f85f1f70cb2ac67 (diff)
downloadgo-tangerine-bbde892d5012203bb984b83fcb2fe11467841643.tar.gz
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.html11
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>