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