Converter
How do I make an converter?
What is a converter? How do you make a converter? This script and codes were developed by Nepal Bitcoin on 08 December 2022, Thursday.
Converter - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Converter</title>
</head>
<body> <div> <h3>NPR/BTC converter</h3> रु. <input type="text" placeholder="66493.72" id="convert_BTC_NPR" onkeyup="convert('BTC', 'NPR', 66493.72, false)" /> = <input type="text" placeholder="1" id="convert_BTC" onkeyup="convert('BTC', 'NPR', 66493.72, true)" /> BTC <br/> <span id="x_BTC">Input रु/BTC to convert</span>
</div>
<hr/>
<hr/>
<div> <h3>NPR/LTC converter</h3> रु. <input type="text" placeholder="423.12" required pattern="number" id="convert_LTC_रु" onkeyup="convert('LTC', 'रु', 423.1259671, false)" /> = <input type="text" placeholder="1" id="convert_LTC" required pattern="number" onkeyup="convert('LTC', 'रु', 423.1259671, true)" /> LTC <br/> <span id="x_LTC">Input रु/LTC to convert</span>
</div> <script src="js/index.js"></script>
</body>
</html>
Converter - Script Codes JS Codes
var convert = function(क, ख, ग, घ) { ङ = document.getElementById("convert_" + क); च = document.getElementById("convert_" + क + "_" + ख); if (घ) { च.value = (ङ.value * ग).toFixed(ग < 1 ? 5 : 2); } else { ङ.value = (च.value * 1 / ग).toFixed(8); } document.getElementById("x_" + क).innerText = (च.value === "" || ङ.value === "") ? "Input " + ख + "/" + क + " to convert" : (isNaN(च.value || ङ.value)) ? "Input value must be numeric." : घ ? ङ.value + " " + क + " = " + (च.value) + " " + ख : (च.value) + " " + ख + " = " + ङ.value + " " + क; if (च.value === "" || ङ.value === "") { च.value = ""; ङ.value = ""; }
};
Developer | Nepal Bitcoin |
Username | nepalbitcoin |
Uploaded | December 08, 2022 |
Rating | 3 |
Size | 1,832 Kb |
Views | 6,072 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
CoinCap.io Websocket | 4,654 Kb |
A Pen by Nepal Bitcoin | 2,568 Kb |
Super Fast Nepali Date Converter | 15,174 Kb |
Nepali Number Word format | 2,746 Kb |
CoinCap.io Websocket | 2,173 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Flat UI - Checkbox FIX | ARS | 2,663 Kb |
Spilled Paint | Darrylhuffman | 3,894 Kb |
A Pen by Malith Hettiarachchi | MalZiiirA | 5,531 Kb |
Transition | Shayhowe | 1,632 Kb |
Pure CSS Spinners | Jlong | 2,043 Kb |
Responsive Table-less Shopping Cart | Alex_rodrigues | 6,637 Kb |
Canvas Background Effect | Sonick | 3,513 Kb |
IE11 Test | Boostnewmedia | 4,998 Kb |
A Pen by tugce | Ecgutcnkr | 4,197 Kb |
Sticky div | Kaslab | 2,225 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!