Enhance pages (#2075)

* enhance pages

* .

* .

* .

* .

* .

* .

---------

Co-authored-by: CaCO3 <caco@ruinelli.ch>
This commit is contained in:
CaCO3
2023-02-25 14:20:55 +01:00
committed by GitHub
parent 95d312b920
commit 7b2a80a13d
9 changed files with 121 additions and 66 deletions

View File

@@ -48,20 +48,32 @@ input[type=number] {
<table style="width:100%">
<tr>
<h3>Current Value:</h3><p>
<div id="prevalue"></div>
<h3>Set Value:</h3><p>
Input (Format = 123.456):<p>
Previous Value:
<input type="number" id="myInput" name="myInput"
pattern="[0-9]+([\.,][0-9]+)?" step="0.001"
title="This should be a number with up to 4 decimal places.">
<p></p>
<button class="button" type="button" onclick="setprevalue()">Set Previous Value</button>
<td>
<h3>Current "Previous Value":</h3>
</td>
<td>
<div id="prevalue"></div>
</td>
</tr>
<tr>
<td>
<h3>New "Previous Value":<br>(Format = 123.456)</h3><p>&nbsp;</p>
</td>
<td>
<input type="number" id="myInput" name="myInput"
pattern="[0-9]+([\.,][0-9]+)?" step="0.001"
title="This should be a number with up to 4 decimal places.">
<button class="button" type="button" onclick="setprevalue()">Set Previous Value</button>
<p>(The current "Raw Value" got entered as the suggested new "Previous Value")</p>
</td>
</tr>
<tr>
<h3>Result:</h3><p>
<div id="result" readonly></div>
<td>
<h3>Result:</h3>
</td>
<td>
<div id="result" readonly></div>
</td>
</tr>
</table>