<!DOCTYPEhtml><htmllang="de"><head><metacharset="utf-8"><title>title</title>
<scriptsrc="https://efpage.de/DML/DML_homepage/lib/DML-min.js"></script>
<style>body{font-family:sans-serif}</style>
</head>
<body><script>"use strict";// Make the input elements / key filterfunctionmyInput(txt,rule){// Create text and input fieldidiv(txt,"width: 100px;")letinp=make("input",{value:1})br()// Key filterinp.onkeydown=(e)=>{if(e.key.length==1)if(!e.key.match(rule))e.preventDefault()}// Filter keysreturninp}// Build the pageh1("Binary converter")sidiv("",_box+_bigPadding)letb=myInput("binary","[0,1]")letd=myInput("decimal","[0-9]")b.oninput=()=>d.value=parseInt(b.value,2)d.oninput=()=>b.value=(parseInt(d.value,10)>>>0).toString(2);</script>
</body>
</html>
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I tried the same using DML, bit shorter: