diff options
author | Jeffrey Wilcke <obscuren@users.noreply.github.com> | 2014-11-15 00:16:28 +0800 |
---|---|---|
committer | Jeffrey Wilcke <obscuren@users.noreply.github.com> | 2014-11-15 00:16:28 +0800 |
commit | 7ffba22f2d3e246ded4ac8f6df3d9eab5137e838 (patch) | |
tree | d73a4963ea4860c8a6e3bde9babd28f405010901 /index.html | |
parent | 60198a05b981b59c2b997706c1a728ad3c5b49d7 (diff) | |
parent | dc100f85b3719f38a92223c39eb36d8d4ff24cdb (diff) | |
download | dexon-7ffba22f2d3e246ded4ac8f6df3d9eab5137e838.tar dexon-7ffba22f2d3e246ded4ac8f6df3d9eab5137e838.tar.gz dexon-7ffba22f2d3e246ded4ac8f6df3d9eab5137e838.tar.bz2 dexon-7ffba22f2d3e246ded4ac8f6df3d9eab5137e838.tar.lz dexon-7ffba22f2d3e246ded4ac8f6df3d9eab5137e838.tar.xz dexon-7ffba22f2d3e246ded4ac8f6df3d9eab5137e838.tar.zst dexon-7ffba22f2d3e246ded4ac8f6df3d9eab5137e838.zip |
Merge pull request #10 from cubedro/master
NPM module with minification for browser integration.
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/index.html b/index.html deleted file mode 100644 index 2b3f50a14..000000000 --- a/index.html +++ /dev/null @@ -1,33 +0,0 @@ -<!doctype> -<html> - -<head> -<script type="text/javascript" src="main.js"></script> -<script type="text/javascript" src="websocket.js"></script> -<script type="text/javascript" src="qt.js"></script> -<script type="text/javascript" src="httprpc.js"></script> -<script type="text/javascript"> -function registerName() { - var name = document.querySelector("#name").value; - name = web3.fromAscii(name); - - var eth = web3.eth; - eth.transact({to: "NameReg", gas: "10000", gasPrice: eth.gasPrice, data: [web3.fromAscii("register"), name]}).then(function(tx) { - document.querySelector("#result").innerHTML = "Registered name. Please wait for the next block to come through."; - }, function(err) { - console.log(err); - }); -} -</script> -</head> - -<body> - -<h1>std::name_reg</h1> -<input type="text" id="name"></input> -<input type="submit" onClick="registerName();"></input> -<div id="result"></div> - -</body> - -</html> |