运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <title>Inches to Yards Length Converter</title> <body> <h2>Length Converter</h2> <p>Type a value in the Inches field to convert the value to Yards:</p> <p> <label>Inches</label> <input id="inputInches" type="number" placeholder="Inches" oninput="LengthConverter(this.value)" onchange="LengthConverter(this.value)"> </p> <p>Yards: <span id="outputYards"></span></p> <script> function LengthConverter(valNum) { document.getElementById("outputYards").innerHTML=valNum*0.027778; } </script> </body> </html>