number-to-persian-text
Version:
convert number(s) to persian(farsi) text.
18 lines (15 loc) • 476 B
HTML
<html>
<head>
<script src="../dist/index.js"></script>
</head>
<body>
<input id="inputValue" value="">
<div id="convertedText"></div>
<script type="text/javascript" charset="UTF-8">
document.getElementById('inputValue').addEventListener('input', function (evt) {
document.getElementById('convertedText').innerHTML = NumberToPersianText.getText(evt.target.value);
});
</script>
</body>
</html>