Start work on better layout. Abuse and modify the fieldset tag design.
This commit is contained in:
parent
33969f53f8
commit
bc44bf4f5d
|
@ -209,8 +209,17 @@ class Client {
|
||||||
}
|
}
|
||||||
|
|
||||||
private setDisplay (state : State) {
|
private setDisplay (state : State) {
|
||||||
console.dir(state);
|
const widthEl : HTMLInputElement = document.getElementById('displayWidth') as HTMLInputElement;
|
||||||
|
const heightEl : HTMLInputElement = document.getElementById('displayHeight') as HTMLInputElement;
|
||||||
|
|
||||||
|
widthEl.value = state.display.width as any;
|
||||||
|
heightEl.value = state.display.height as any;
|
||||||
|
|
||||||
|
widthEl.readOnly = false;
|
||||||
|
heightEl.readOnly = false;
|
||||||
|
//console.dir(state);
|
||||||
this.display.set(state);
|
this.display.set(state);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private cmd (msg : Message) {
|
private cmd (msg : Message) {
|
||||||
|
|
|
@ -2,6 +2,9 @@ html, body{
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
background: black;
|
background: black;
|
||||||
|
overflow: hidden;
|
||||||
|
min-width: 640px;
|
||||||
|
min-height: 480px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main{
|
#main{
|
||||||
|
@ -42,7 +45,7 @@ html, body{
|
||||||
|
|
||||||
#screen .field-row{
|
#screen .field-row{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: 20px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#screen .field-row input {
|
#screen .field-row input {
|
||||||
|
|
|
@ -178,7 +178,12 @@ class Client {
|
||||||
document.getElementById('sequenceProgress').innerText = `Progress: ${Math.round(sequence.progress)}%`;
|
document.getElementById('sequenceProgress').innerText = `Progress: ${Math.round(sequence.progress)}%`;
|
||||||
}
|
}
|
||||||
setDisplay(state) {
|
setDisplay(state) {
|
||||||
console.dir(state);
|
const widthEl = document.getElementById('displayWidth');
|
||||||
|
const heightEl = document.getElementById('displayHeight');
|
||||||
|
widthEl.value = state.display.width;
|
||||||
|
heightEl.value = state.display.height;
|
||||||
|
widthEl.readOnly = false;
|
||||||
|
heightEl.readOnly = false;
|
||||||
this.display.set(state);
|
this.display.set(state);
|
||||||
}
|
}
|
||||||
cmd(msg) {
|
cmd(msg) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -20,15 +20,29 @@
|
||||||
<div class="window-body">
|
<div class="window-body">
|
||||||
<div>
|
<div>
|
||||||
<ul class="tree-view" id="display"><canvas></canvas></ul>
|
<ul class="tree-view" id="display"><canvas></canvas></ul>
|
||||||
<div id="screen">Screen Resolution :
|
<div>
|
||||||
<span class="field-row">
|
<fieldset id="screenResolution">
|
||||||
<label for="width">Width</label>
|
<legend>Screen</legend>
|
||||||
<input id="width" type="text" value="{{width}}" readonly />
|
<span class="field-row">
|
||||||
</span>
|
<label for="width">Width</label>
|
||||||
<span class="field-row">
|
<input id="width" type="text" value="{{width}}" readonly />
|
||||||
<label for="height">Height</label>
|
</span>
|
||||||
<input id="height" type="text" value="{{height}}" readonly />
|
<span class="field-row">
|
||||||
</span>
|
<label for="height">Height</label>
|
||||||
|
<input id="height" type="text" value="{{height}}" readonly />
|
||||||
|
</span>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset id="displayResolution">
|
||||||
|
<legend>Display</legend>
|
||||||
|
<span class="field-row">
|
||||||
|
<label for="displayWidth">Width</label>
|
||||||
|
<input id="displayWidth" type="text" value="0" readonly />
|
||||||
|
</span>
|
||||||
|
<span class="field-row">
|
||||||
|
<label for="displayHeight">Height</label>
|
||||||
|
<input id="displayHeight" type="text" value="0" readonly />
|
||||||
|
</span>
|
||||||
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--
|
<!--
|
||||||
|
@ -55,9 +69,9 @@
|
||||||
<button id="start" class="sequenceCtrl" disabled>Start</button>
|
<button id="start" class="sequenceCtrl" disabled>Start</button>
|
||||||
<button id="stop" class="sequenceCtrl" disabled>Stop</button>
|
<button id="stop" class="sequenceCtrl" disabled>Stop</button>
|
||||||
<button id="pause" class="sequenceCtrl" disabled>Pause</button>
|
<button id="pause" class="sequenceCtrl" disabled>Pause</button>
|
||||||
<button id="rewind" class="sequenceCtrl" disabled><< Frame</button>
|
<button id="rewind" class="sequenceCtrl" disabled><<</button>
|
||||||
<input id="frame" value="00000" class="sequenceCtrl" readonly />
|
<input id="frame" value="00000" class="sequenceCtrl" disabled />
|
||||||
<button id="forward" class="sequenceCtrl" disabled>Frame >></button>
|
<button id="forward" class="sequenceCtrl" disabled>>></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Reference in New Issue