fix other mandelbrot variants
[mu.git] / tutorial / converter.html
blobdca1190cd69e494bc31e147a2817af878a40c3b0
1 <script>
2 function convert() {
3 var n = parseInt(document.getElementById('input').value);
4 if (isNaN(n))
5 document.getElementById('result').innerHTML = "not a number";
6 else
7 document.getElementById('result').innerHTML = "0x" + n.toString(16);
8 event.preventDefault();
10 </script>
11 <body style='font-size:200%'>
12 <form style='margin:5em' onSubmit='convert()'>
13 <input style='width:4em; font-size:100%' type='text' id='input'/> <input type='submit' style='width=6em; font-size:100%' value='convert'> = <span id='result' style='display:inline-block; min-width:4em; border-bottom:1px solid; text-align: right'></span>
14 </form>
15 </body>