diff --git a/index.html b/index.html index 7af1a53f2b..fb604a8d8e 100644 --- a/index.html +++ b/index.html @@ -56,24 +56,23 @@ body { width: 18ex; display: inline-block; } -strong.col1 { - top: -10px; - position: relative; - margin-bottom: 5px; -} .col2 { width: 60ex; + display: inline-block; } -textarea.col2 { - height: 20px; +.gethDeployText { border-color: #bebebe; - margin-bottom: 5px; + height: 2.5ex; } .runButton { width: 30ex; text-align: left; overflow: hidden; } +.contractInstance { + margin-left: 2ex; + margin-bottom: 20px; +} @@ -237,7 +236,7 @@ var gethDeploy = function(contractName, interface, bytecode){ return code; -} +}; var renderContracts = function(data, source) { $('#output').empty(); @@ -245,24 +244,30 @@ var renderContracts = function(data, source) { var contract = data.contracts[contractName]; var contractOutput = $('
') .append($('').text(contractName)) - .append(getExecuteInterface(contract, contractName)) .append($('').text((contract.bytecode.length / 2) + ' bytes')) + .append(getExecuteInterface(contract, contractName)) .append(tableRow('Bytecode', contract.bytecode)) .append(tableRow('Interface', contract['interface'])) .append(textRow('Geth deploy', gethDeploy(contractName.toLowerCase(),contract['interface'],contract.bytecode))) .append(getDetails(contract, source, contractName)); $('#output').append(contractOutput); } + $('.col2 input,textarea').click(function() { this.select(); } ); }; -var tableRow = function(description, data) { +var tableRowItems = function(first, second) { return $('') - .append($('').text(description)) - .append($('').val(data)); + .append($('