Improved result display

This commit is contained in:
Borys Levytskyi
2015-04-03 21:51:25 +03:00
parent edf72d8095
commit b6fbb40e63
3 changed files with 5 additions and 5 deletions

View File

@@ -48,5 +48,4 @@
return new app.models.BitwiseNumbers(numbers);
}
})(window.app);

View File

@@ -10,7 +10,7 @@ code { font-size: 1.2em; font-weight: bold; }
.result .content { padding-left: 10px}
.result .cur { color: lightgray; margin-right: 5px }
.expression .label { font-weight: bold; padding-right: 5px }
.expression .label { font-weight: bold; padding-right: 5px; text-align: right; }
.expression .bin { letter-spacing: 3px; }
.expression .one { color: #6d9ad3 }
.expression .zero { color: #70d351 }

View File

@@ -82,8 +82,8 @@
<td class="label">{operand1}</td>
<td class="bin">{operand1Binary}</td>
</tr>
<tr>
<td class="label">{operand1}{sign}{operand2}</td>
<tr class="result">
<td class="label">{operand1}{sign}{operand2}={result}</td>
<td class="bin">{resultBinary}</td>
</tr>
</table>
@@ -101,7 +101,7 @@
<td class="label">{operand2}</td>
<td class="bin">{operand2Binary}</td>
</tr>
<tr>
<tr class="result">
<td>=</td>
<td class="label">{result}</td>
<td class="bin">{resultBinary}</td>
@@ -134,6 +134,7 @@
app.debugMode = true;
dispatcher.dispatch('help');
dispatcher.dispatch('1 2 3 4 5 6 7 8');
dispatcher.dispatch('3 << 4');
dispatcher.dispatch('233 | 322');