Nepalify (tested on browsers IE6+, Firefox 3+, Chrome 14+, Safari 4+, Opera 10+ )
<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.)
Add "nepalify" classes to the input fields you want to have Nepali Input
In your HTML files, add classes to the required input/textarea elements.
<input class="nepalify"> <textarea class="nepalify"></textarea>
Add the library (and load it after jQuery and the page had loaded)
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>
That's it. The input fields are all set to using (Romanized) Nepali(नेपाली) input.
API (for additional options)
Allows setting custom CSS class to be processes by nepalify.
classNamehas 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.