succd: restyle slightly

This commit is contained in:
Serge Bazanski 2024-09-28 08:32:07 +02:00
parent 8f7ec7e141
commit f66afc0c8f

View file

@ -10,6 +10,10 @@ body {
} }
table { table {
font-size: 40px; font-size: 40px;
margin-top: 1em;
}
table.status td {
width: 2em;
} }
th, td { th, td {
background-color: #e8e8e8; background-color: #e8e8e8;
@ -58,50 +62,66 @@ td > span {
<p style="margin-top: 2em; clear: both;"> <p style="margin-top: 2em; clear: both;">
<table> <table>
<tr> <tr>
<th rowspan="2">Pirani Gauge</th>
<th>Voltage</th> <th>Voltage</th>
<td id="volts" colspan="4">{{ .Pirani.Volts }}</td> <td id="volts">{{ .Pirani.Volts }}</td>
</tr> </tr>
<tr> <tr>
<th>Pressure</th> <th>Pressure</th>
<td id="mbar" colspan="4">{{ .Pirani.Mbar }}</td> <td id="mbar">{{ .Pirani.Mbar }}</td>
</tr> </tr>
</table>
<table class="status">
<tr> <tr>
<th>Thresholds</th> <th>Thresholds</th>
<td>Rough:</td> <th>Rough</th>
<td id="trough">{{ if .Feedback.RoughReached }}OK{{ else }}NOK{{ end }}</td> <td id="trough">{{ if .Feedback.RoughReached }}OK{{ else }}NOK{{ end }}</td>
<td>High:</td> <th>High</th>
<td id="thigh">{{ if .Feedback.HighReached }}OK{{ else }}NOK{{ end }}</td> <td id="thigh">{{ if .Feedback.HighReached }}OK{{ else }}NOK{{ end }}</td>
</tr> </tr>
<tr> <tr>
<th>Pumps</th> <th>Pumps</th>
<td>RP:</td> <th>RP</th>
<td id="rp">{{ if .Pumps.RPOn }}ON{{ else }}OFF{{ end }}</td> <td id="rp">{{ if .Pumps.RPOn }}ON{{ else }}OFF{{ end }}</td>
<td>DP:</td> <th>DP</th>
<td id="dp">{{ if .Pumps.DPOn }}ON{{ else }}OFF{{ end }}</td> <td id="dp">{{ if .Pumps.DPOn }}ON{{ else }}OFF{{ end }}</td>
</tr> </tr>
<tr> <tr>
<th>Evac Control</th> <th>Safety</th>
<td colspan="4"> <th style="font-size: 0.7em;">Pirani<br />Failsafe</th>
<td id="failsafe">{{ if .Safety.Failsafe }}ON{{ else }}OFF{{ end }}</td>
<th style="font-size: 0.7em;">DP<br />Lockout</th>
<td id="highpressure">{{ if .Safety.HighPressure }}ON{{ else }}OFF{{ end }}</td>
</tr>
</table>
<table>
<tr>
<th rowspan="3">Control</th>
<th>RP</th>
<td>
<button id="rpon">On</button>
<button id="rpoff">Off</button>
</td>
</tr>
<tr>
<th>DP</th>
<td>
<button id="dpon">On</button>
<button id="dpoff">Off</button>
</td>
</tr>
<tr>
<td colspan="2">
<button id="pd">Pump Down</button> <button id="pd">Pump Down</button>
<button id="vent">Vent</button> <button id="vent">Vent</button>
<button id="rpon">RP On</button>
<button id="rpoff">RP Off</button>
<button id="dpon">DP On</button>
<button id="dpoff">DP Off</button>
</td> </td>
</tr> </tr>
<tr> <tr>
<th>Status</th> <th>Status</th>
<td id="status" colspan="4">OK</td> <td id="status" colspan="4">OK</td>
</tr> </tr>
<tr>
<th>Failsafe</th>
<td id="failsafe" colspan="4">{{ if .Safety.Failsafe }}ON{{ else }}OFF{{ end }}</td>
</tr>
<tr>
<th>Diffusion Pump Lockout</th>
<td id="highpressure" colspan="4">{{ if .Safety.HighPressure }}ON{{ else }}OFF{{ end }}</td>
</tr>
</table> </table>
</p> </p>
<p style="margin-top: 2em;"> <p style="margin-top: 2em;">