mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-09 13:06:54 +03:00
43 lines
1.1 KiB
HTML
43 lines
1.1 KiB
HTML
<html><head>
|
|
<title>jomjol - AI on the edge</title>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
//]]>
|
|
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<table style="width:100%">
|
|
<tr>
|
|
Current Value:<p>
|
|
<iframe name="currentvalue" id ="currentvalue" src="/setPreValue.html" title="fileserver" allowfullscreen></iframe>
|
|
</tr>
|
|
<tr>
|
|
Input (Format = 123.456):<p>
|
|
PreValue:
|
|
<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 type="button" onclick="setprevalue()">Set PreValue</button>
|
|
</tr>
|
|
<tr>
|
|
Result:<p>
|
|
<iframe name="maincontent" id ="maincontent" src="" title="fileserver" allowfullscreen></iframe>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<script>
|
|
function setprevalue() {
|
|
var inputVal = document.getElementById("myInput").value;
|
|
inputVal = inputVal.replace(",", ".");
|
|
_value = "/setPreValue.html?value="+inputVal;
|
|
document.getElementById('maincontent').src = _value;
|
|
location.reload();
|
|
}
|
|
</script>
|
|
|
|
</body></html> |