UNPKG

@vijay0405/js-number-converter

Version:

Convert big integer numbers, binary, decimal, hexadecimal

38 lines (35 loc) 1.38 kB
<html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- <link rel="icon" href="assets/img/favicon.webp" sizes="16x16"> --> <link rel="stylesheet" href="assets/css/style.css"> <link href='https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css' rel='stylesheet'> <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> <title>Number Converter</title> </head> <body> <div> <textarea id="inputVal" cols="45" rows="15" placeholder="Enter value"></textarea> <br> <p>Input Type <span id="errorTag"></span></p> <select id="inputType"> <option value="bin">Binary</option> <option value="dec">Decimal</option> <option value="hex">Hex</option> </select> </div> <div> <p>Output Type</p> <select id="outputType"> <option value="bin">Binary</option> <option value="dec">Decimal</option> <option value="hex">Hex</option> </select> <button id="convert">Convert</button> </div> <hr> <textarea id="outputVal" cols="45" rows="15" placeholder="output value" readonly></textarea> <script src="./assets/js/app.js"></script> </body> </html>