fix puncuation and move notice to context toggle titles

pull/1/head
d11e9 9 years ago
parent 847add31ba
commit e40fe96372
  1. 13
      index.html

@ -66,15 +66,20 @@ THE SOFTWARE.
<div class="info"> <div class="info">
<p>Version: <span id="version">(loading)</span><br/> <p>Version: <span id="version">(loading)</span><br/>
Change to: <select id="versionSelector"></select><br/> Change to: <select id="versionSelector"></select><br/>
Execution environment does not connect to any node by default, everything is local and in memory only.<br/>
<code>tx.origin = <span id="txorigin"/></code></p> <code>tx.origin = <span id="txorigin"/></code></p>
</div> </div>
<div id="optimizeBox"> <div id="optimizeBox">
<label for="editorWrap"><input id="editorWrap" type="checkbox">Text Wrap</label> <label for="editorWrap"><input id="editorWrap" type="checkbox">Text Wrap</label>
<label for="optimize"><input id="optimize" type="checkbox">Enable Optimization</label> <label for="optimize"><input id="optimize" type="checkbox">Enable Optimization</label>
<span id="executionContext"> <span id="executionContext">
<label for="vm"><input id="vm" type="radio" value="vm" checked name="executionContext">JavaScript VM</label> <label for="vm" title="Execution environment does not connect to any node, everything is local and in memory only.">
<label for="web3"><input id="web3" type="radio" value="web3" name="executionContext">Web3 Provider</label> <input id="vm" type="radio" value="vm" checked name="executionContext">
JavaScript VM
</label>
<label for="web3" title="Execution environment connects to node at localhost, transactions will be sent to the network and can cause loss of money or worse!">
<input id="web3" type="radio" value="web3" name="executionContext">
Web3 Provider
</label>
</span> </span>
</div> </div>
</div> </div>
@ -125,7 +130,7 @@ THE SOFTWARE.
$web3Toggle.on('change', executionContextChange ); $web3Toggle.on('change', executionContextChange );
function executionContextChange (ev) { function executionContextChange (ev) {
if (ev.target.value == 'web3' && !confirm("Are you sure you want to connect to a local ethereum node.") ) { if (ev.target.value == 'web3' && !confirm("Are you sure you want to connect to a local ethereum node?") ) {
$vmToggle.get(0).checked = true; $vmToggle.get(0).checked = true;
executionContext = 'vm'; executionContext = 'vm';
} else executionContext = ev.target.value; } else executionContext = ev.target.value;

Loading…
Cancel
Save