add HTML elements for the soft switch controls.

This commit is contained in:
wixette 2020-03-08 20:05:16 +08:00
parent 260b06d25e
commit 6dc0867bd4
2 changed files with 41 additions and 1 deletions

View File

@ -18,11 +18,13 @@ body, div, img, pre {
.h-box { .h-box {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap;
} }
.v-box { .v-box {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-wrap: nowrap;
} }
.justify-start { .justify-start {
@ -175,21 +177,28 @@ footer {
} }
#cpu-dump { #cpu-dump {
background-color: #fff;
color: #222; color: #222;
font-size: 12px; font-size: 12px;
min-height: 20px;
overflow-x: hidden; overflow-x: hidden;
} }
#mem-dump { #mem-dump {
background-color: #fff;
color: #222; color: #222;
font-size: 12px; font-size: 12px;
min-height: 20px;
overflow-x: hidden; overflow-x: hidden;
} }
.button { .button {
background-color: #eee; background-color: #fff;
border: 1px solid #bbb; border: 1px solid #bbb;
cursor: pointer; cursor: pointer;
font-size: 12px;
line-height: 1.5em;
padding: 0 5px 0 5px;
text-align: center; text-align: center;
user-select: none; user-select: none;
-moz-user-select: none; -moz-user-select: none;

View File

@ -569,6 +569,37 @@
<div class="subheader-bar"> <div class="subheader-bar">
<div id="switchboard" class="l10n">Soft Switch Board</div> <div id="switchboard" class="l10n">Soft Switch Board</div>
</div> </div>
<div class="v-box">
<div class="h-box justify-space-around">
<div class="button m-8">A15</div>
<div class="button m-8">A14</div>
<div class="button m-8">A13</div>
<div class="button m-8">A12</div>
<div class="button m-8">A11</div>
<div class="button m-8">A10</div>
<div class="button m-8">A09</div>
<div class="button m-8">A08</div>
<div class="button m-8">A07</div>
<div class="button m-8">A06</div>
<div class="button m-8">A05</div>
<div class="button m-8">A04</div>
<div class="button m-8">A03</div>
<div class="button m-8">A02</div>
<div class="button m-8">A01</div>
<div class="button m-8">A00</div>
</div>
<div class="h-box justify-space-start">
<div class="button m-8 flex-grow-1">ON/OFF</div>
<div class="button m-8 flex-grow-1">STOP</div>
<div class="button m-8 flex-grow-1">RUN</div>
<div class="button m-8 flex-grow-1">SINGLE STEP</div>
<div class="button m-8 flex-grow-1">EXAMINE</div>
<div class="button m-8 flex-grow-1">EXAMINE-NEXT</div>
<div class="button m-8 flex-grow-1">DEPOSIT</div>
<div class="button m-8 flex-grow-1">DEPOSIT-NEXT</div>
<div class="button m-8 flex-grow-1">RESET</div>
</div>
</div>
</div> </div>