运行 ❯
获取您的
自有
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 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>