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