Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.8 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.8 KB

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