| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <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>
|