A Javascript library that adds instant support for (Romanized) Nepali(नेपाली) input on HTML <input>
and <textarea>
with almost zero setup effort.
This has been tested to work on ancient browsers such as IE6 and above. Please let me know if you run into a bug by opening an issue here.
For a live demo of the library, please visit the showcase page.
This library depends on jQuery. Please get the latest version of jQuery before you intend to use Nepalify.
Download the libraries to the "scripts" directory (or wherever you place your JS files.)
- Download the latest version of jQuery here
- Download the latest minified version of Nepalify here
In your HTML files, add classes to the required input/textarea elements.
<input class="nepalify">
<textarea class="nepalify"></textarea>
Load the library after jQuery. Make sure that the library is loaded only after all the HTML is loaded. This can be done by loading the libraries after all the HTML elements. i.e. towards the bottom.
...
</div>
<script src="scripts/jquery/jquery.js"></script>
<script src="scripts/nepalify.min.js"></script>
</body>
</html>
Allows setting custom CSS class to be processes by nepalify.
className
has to be a string that is a CSS class attached to the required textarea or input element.
Allows toggling the nepalify-cation on and off.
- Adds public method
toggle()
method to switch the functionality on and off.
- Beta release of nepalify
##Suggestions are always welcome.
Feel free to send me one by opening an issue here.