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

@@ -115,7 +115,7 @@ select {
param;
function doReboot() {
if (confirm("Are you sure you want to reboot? Did you save the config?")) {
if (confirm("Are you sure you want to reboot? Did you save your changes?")) {
var stringota = getDomainname() + "/reboot";
window.location = stringota;
window.location.href = stringota;

View File

@@ -165,7 +165,7 @@ th, td {
function doReboot() {
if (confirm("Are you sure you want to reboot? Did you save the config?")) {
if (confirm("Are you sure you want to reboot? Did you save your changes?")) {
var stringota = getDomainname() + "/reboot";
window.location = stringota;
window.location.href = stringota;

View File

@@ -161,7 +161,7 @@ th, td {
domainname = getDomainname();
function doReboot() {
if (confirm("Are you sure you want to reboot? Did you save the config?")) {
if (confirm("Are you sure you want to reboot? Did you save your changes?")) {
var stringota = getDomainname() + "/reboot";
window.location = stringota;
window.location.href = stringota;

View File

@@ -238,7 +238,7 @@ table {
}
function SaveReference(){
if (confirm("Are you sure you want to update the reference image?")) {
if (confirm("Are you sure you want to update the Reference Image?")) {
param["Alignment"]["InitialRotate"].value1 = document.getElementById("prerotateangle").value;
if ((param["Alignment"]["InitialMirror"].found == true) && (document.getElementById("mirror").checked))

View File

@@ -6,6 +6,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css?v=$COMMIT_HASH" type="text/css" >
<link href="firework.css?v=$COMMIT_HASH" rel="stylesheet">
<script type="text/javascript" src="common.js?v=$COMMIT_HASH"></script>
<script type="text/javascript" src="readconfigcommon.js?v=$COMMIT_HASH"></script>

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>