3 <script type="text/javascript"
4 src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
7 if (typeof(window.eth) === "undefined") {
8 document.write('Please run in AlethZero.<br/>');
11 <script type="text/javascript" src="BigInteger.js"></script>
12 <script type="text/javascript" src="ethString.js"></script>
25 <title>Custom Artwork</title>
28 <div id="artwork"></div>
29 <a id="create" href="javascript:void(0)" onclick="create();">create</a>
31 // The custom work contract
32 var contract = "0x79c333bb3bf567aa40c73db3cacb4a0637621309";
34 // Update the span with the data from the contact
35 var create = function() {
36 if (confirm("This costs gas to run.")) {
37 var result = eth.transact(eth.key, "0", contract, padStr("toggle"), "10000", eth.gasPrice);
39 foreach(var element in result) {
40 artwork += element.unbin();
42 document.getElementById("artwork").innerText = artwork;