pugnascotia / jQuery-Word-and-Character-Counter-Plugin

This jQuery Word and character counter plug-in allows you to count characters or words, up or down. You can set a minimum or maximum goal for the counter to reach.

Home Page:http://qwertypants.github.io/jQuery-Word-and-Character-Counter-Plugin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JQuery Character and Word counter plugin

This plug-in allows you to count characters or words, up or down. You can set a minimum or maximum goal for the counter to reach.

  • Create a custom message for your counter's message
  • Force character/word limit on user to prevent typing
  • Works against copy/paster's!

It will insert a div with an id of the name of the input area you are counting, appended with the string "_counter". For example, if the input you want to count is called "awesome", the id of the div that keeps track of the count will be "awesome_counter".

Simple? You bet your ass it is.

Demos and code samples

Contributing

OMG you're awesome.

npm install to make sure you have everything you need.

Build with grunt if you have it installed globally, otherwise npm run build.

Code Style

Be nice and follow the jsrc rules. These are checked by the Grunt build.

If your text editor doesn't use it automatically, you can run it using jscs jquery.word-and-character-counter.js.

Minify it!

Bytes are precious. Use uglifyjs word-and-character-counter.js -o jquery.word-and-character-counter.min.js to minify the output file. This is run automatically by the Grunt build.

About

This jQuery Word and character counter plug-in allows you to count characters or words, up or down. You can set a minimum or maximum goal for the counter to reach.

http://qwertypants.github.io/jQuery-Word-and-Character-Counter-Plugin/


Languages

Language:JavaScript 100.0%