fix contract output collapsing/hiding

pull/1/head
d11e9 9 years ago
parent c8a6060fb5
commit 28f9e17938
  1. 1
      index.html
  2. 31
      stylesheets/browser-solidity.css

@ -471,6 +471,7 @@ THE SOFTWARE.
.append(textRow('uDApp', combined(contractName,contract['interface'],contract.bytecode), 'deploy')) .append(textRow('uDApp', combined(contractName,contract['interface'],contract.bytecode), 'deploy'))
.append(getDetails(contract, source, contractName)); .append(getDetails(contract, source, contractName));
$('#txorigin').text('0x' + dapp.address.toString('hex')); $('#txorigin').text('0x' + dapp.address.toString('hex'));
$contractOutput.find('.title').click(function(ev){ $(this).closest('.udapp').toggleClass('hide') });
$('#output').append( $contractOutput ); $('#output').append( $contractOutput );
} }
$('.col2 input,textarea').click(function() { this.select(); }); $('.col2 input,textarea').click(function() { this.select(); });

@ -119,6 +119,37 @@ body {
float: left; float: left;
} }
.udapp.hide {
padding-bottom: 0;
}
.udapp.hide > *:not(.contract) {
display: none;
}
.udapp.hide .contract {
margin: 0;
}
.udapp.hide .contract > *:not(.title) {
display: none;
}
.udapp .contract > .title {
cursor:pointer;
}
.udapp .contract > .title:before {
content: "\25BC";
opacity: 0.5;
margin-right: 0.4em;
font-size: 10px;
}
.udapp.hide > .contract > .title:before {
content: "\25B6";
}
#output .poweredBy, #output .poweredBy,
#output .legend { display: none; } #output .legend { display: none; }

Loading…
Cancel
Save