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