【HTML5】プログラムソースを表示する
【 どっちが得? 】
<meta name="viewport" content="width=device-width"> <!– content="width=640" -> <div align="center"> <font size="6" color="#ff0000"> <p> <b><i>どっちが得?</i></b> </p> </font> <form oninput=" x.value=parseInt(a.value)-(parseInt(a.value) * (parseInt(b.value)/100))"> <input type="number" id="a" value="0" style="height:30px;" font-size: 8px;> * <input type="number" id="b" value="0" style="height:30px;"> %値引き= <output name="x" for="a b" style="height:30px;"></output> </form> <form oninput=" x1.value=parseInt(a1.value)-(parseInt(a1.value) * (parseInt(b1.value)/100))"> <input type="number" id="a1" value="0" style="height:30px;" font-size: 8px;> * <input type="number" id="b1" value="0" style="height:30px;" font-size: 8px;> %値引き= <output name="x1" for="a1 b1"></output> </form> <form oninput=" x11.value=parseInt(a11.value)/ parseInt(b11.value)"> <input type="number" id="a11" value="0" style="height:30px;" font-size: 8px;> / <input type="number" id="b11" value="0" style="height:30px;" font-size: 8px; > 1g単位= <output name="x11" for="a11 b11"></output> </form> <form oninput=" x12.value=parseInt(a12.value)/ parseInt(b12.value)" style="height:30px;" font-size: 8px;> <input type="number" id="a12" value="0" style="height:30px;" font-size: 8px;> / <input type="number" id="b12" value="0" style="height:30px;" font-size: 8px;> 1g単位= <output name="x12" for="a12 b12"></output> </form> </div>