Skip to content

Show how many characters remaining in a HTML with pure JavaScript

License

Notifications You must be signed in to change notification settings

pinceladasdaweb/VCountdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VCountdown

Show how many characters remaining in a HTML with pure JavaScript

Demo

View demo here.

Getting Started

# Get the latest snapshot
$ git clone git@github.com:pinceladasdaweb/VCountdown.git

Add the following javascript before your </body> tag:

<script src="path/to/vcountdown.min.js"></script>
<script>
    VCountdown({
        target: '.countdown',
        maxChars: 160
    });
</script>

The script expect the following values:

Value Description
target Id or class of textarea.
maxChars Maximum of characters. Default is 140.

Browser support

IE Chrome Firefox Opera Safari
IE 9+ ✔ Latest ✔ Latest ✔ Latest ✔ Latest ✔

Contributing

Check CONTRIBUTING.md for more information.

History

Check Releases for detailed changelog.

License

MIT

About

Show how many characters remaining in a HTML with pure JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published