diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-01 04:51:53 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-01 04:51:53 +0800 |
commit | 68ccbefc94e9c24684ccbe9a520aeb13aff0a067 (patch) | |
tree | ed2b31c6e3fa35ae1a09915bee04240644121e66 /index.html | |
download | go-tangerine-68ccbefc94e9c24684ccbe9a520aeb13aff0a067.tar go-tangerine-68ccbefc94e9c24684ccbe9a520aeb13aff0a067.tar.gz go-tangerine-68ccbefc94e9c24684ccbe9a520aeb13aff0a067.tar.bz2 go-tangerine-68ccbefc94e9c24684ccbe9a520aeb13aff0a067.tar.lz go-tangerine-68ccbefc94e9c24684ccbe9a520aeb13aff0a067.tar.xz go-tangerine-68ccbefc94e9c24684ccbe9a520aeb13aff0a067.tar.zst go-tangerine-68ccbefc94e9c24684ccbe9a520aeb13aff0a067.zip |
init
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/index.html b/index.html new file mode 100644 index 000000000..50006905b --- /dev/null +++ b/index.html @@ -0,0 +1,29 @@ +<!doctype> +<html> + +<head> +<script type="text/javascript" src="ethereum.js"></script> +<script type="text/javascript"> +function registerName() { + var name = document.querySelector("#name").value; + name = eth.fromAscii(name); + + eth.transact({to: "NameReg", from: eth.key, gas: "10000", gasPrice: eth.gasPrice, data: [eth.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> |