Git Product home page Git Product logo

nepalify's Introduction

Nepalify (tested on browsers IE6+, Firefox 3+, Chrome 14+, Safari 4+, Opera 10+ )

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.

Live Demo

For a live demo of the library, please visit the showcase page.

Dependencies

This library depends on jQuery. Please get the latest version of jQuery before you intend to use Nepalify.

Installation

Download the libraries to the "scripts" directory (or wherever you place your JS files.)

Usage

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)

nepalify.setNepalifyClass(className)

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.

nepalify.toggle()

Allows toggling the nepalify-cation on and off.

Release Notes

v 0.3.0

  • Adds public method toggle() method to switch the functionality on and off.

v 0.2.0

  • Beta release of nepalify

##Suggestions are always welcome.

Feel free to send me one by opening an issue here.

nepalify's People

Contributors

shritesh avatar suvash avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.