執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,深色/淺色
轉到 Spaces
<!DOCTYPE html> <html> <title>Mach to Knots Speed Converter</title> <body> <h2>Speed Converter</h2> <p>Type a value in the Mach field to convert the value to Knots:</p> <p> <label>Mach</label> <input id="inputMach" type="number" placeholder="Mach" oninput="speedConverter(this.value)" onchange="speedConverter(this.value)"> </p> <p>Knots: <span id="outputKnots"></span></p> <script> function speedConverter(valNum) { document.getElementById("outputKnots").innerHTML=valNum*661.4708; } </script> </body> </html>