Commit b4c0f056 authored by d11e9's avatar d11e9

awesomeify the header

parent 7c2a3395
...@@ -103,19 +103,53 @@ body { ...@@ -103,19 +103,53 @@ body {
#header { #header {
font-size: 14px; font-size: 14px;
padding: 1em;
font-size: 12px; font-size: 12px;
} }
#header h1 {
margin-top: 0;
}
#header #solIcon { #header #solIcon {
float: left; float: left;
height: 5em; height: 5em;
} }
#header #menu {
overflow: auto;
background-color: #efefef;
}
#header #options {
list-style: none;
margin: 0;
padding: 0;
}
#header #options li {
color: #333;
float: left;
padding: 1.2em;
font-size: 1.5em;
cursor: pointer;
}
#header #options li.active {
background-color: yellow;
color: black;
}
#header #optionViews {
clear: both;
overflow: auto;
padding: 1em;
}
#header #optionViews > div {
margin-top: 1em;
display: none;
}
#header #optionViews.txView #txView { display: block; }
#header #optionViews.settingsView #settingsView { display: block; }
#header #optionViews.publishView #publishView { display: block; }
#header #optionViews.envView #envView { display: block; }
#header .info { #header .info {
font-family: monospace; font-family: monospace;
min-height: 6em; min-height: 6em;
...@@ -138,8 +172,6 @@ body { ...@@ -138,8 +172,6 @@ body {
#header .origin, #header .origin,
#header #executionContext { #header #executionContext {
padding: 0.4em 1em;
background-color: #efefef;
display: block; display: block;
margin-top: 0.5em; margin-top: 0.5em;
word-wrap: break-word; word-wrap: break-word;
...@@ -154,6 +186,16 @@ body { ...@@ -154,6 +186,16 @@ body {
background-color: transparent; background-color: transparent;
} }
.col1 { .col1 {
width: 30%; width: 30%;
float: left; float: left;
......
...@@ -63,15 +63,35 @@ THE SOFTWARE. ...@@ -63,15 +63,35 @@ THE SOFTWARE.
<div id="righthand-panel"> <div id="righthand-panel">
<div id="header"> <div id="header">
<div id="menu">
<img id="solIcon" title="Solidity realtime compiler and runtime" src="assets/img/sol.gif"> <img id="solIcon" title="Solidity realtime compiler and runtime" src="assets/img/sol.gif">
<div class="info"> <ul id="options">
<div class="version">Solidity version: <span id="version">(loading)</span> <br/>Change to: <select id="versionSelector"></select></div> <li class="txView active"><i class="fa fa-send"></i></li>
<li class="envView"><i class="fa fa-tachometer"></i></li>
<li class="publishView"><i class="fa fa-cloud-upload"></i></li>
<li class="settingsView"><i class="fa fa-gear"></i></li>
</ul>
</div>
<div id="optionViews" class="txView">
<div id="txView">
<code class="origin">tx.origin: <span id="txorigin"/></code>
<select name="" id="">
<option value="">Acc</option>
</select>
<input type="text" class="gas">
<input type="text" class="value">
</div> </div>
<div id="optimizeBox"> <div id="settingsView">
<button id="gist" title="Publish all files as public gist on github.com"><i class="fa fa-github"></i> Publish gist</button> <div class="version">Solidity version: <span id="version">(loading)</span> <br/>Change to: <select id="versionSelector"></select></div>
<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>
<code class="origin">tx.origin: <span id="txorigin"/></code> </div>
<div id="publishView">
<p><button id="gist" title="Publish all files as public gist on github.com"><i class="fa fa-github"></i> Publish gist</button> Publish all open files to an anonymous github gist.</p>
<p>Publish to ipfs ...</p>
</div>
<div id="envView">
<span id="executionContext"> <span id="executionContext">
<label for="vm" title="Execution environment does not connect to any node, everything is local and in memory only."> <label for="vm" title="Execution environment does not connect to any node, everything is local and in memory only.">
<input id="vm" type="radio" value="vm" checked name="executionContext"> <input id="vm" type="radio" value="vm" checked name="executionContext">
...@@ -83,6 +103,8 @@ THE SOFTWARE. ...@@ -83,6 +103,8 @@ THE SOFTWARE.
</label> </label>
</span> </span>
</div> </div>
</div>
</div> </div>
<div id="output"></div> <div id="output"></div>
</div> </div>
...@@ -164,6 +186,19 @@ THE SOFTWARE. ...@@ -164,6 +186,19 @@ THE SOFTWARE.
session.setTabSize(4); session.setTabSize(4);
session.setUseSoftTabs(true); session.setUseSoftTabs(true);
// ----------------- tabbed menu -------------------
$('#options li').click(function(){
var $el = $(this);
var cls = /[a-z]+View/.exec( $el.get(0).className )[0];
$el.parent().find('li').removeClass('active');
$el.addClass('active');
$('#optionViews').attr('class', '').addClass(cls);
console.log(cls)
});
// ----------------- execution context ------------- // ----------------- execution context -------------
var $vmToggle = $('#vm'); var $vmToggle = $('#vm');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment