Home

Awesome

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:

ValueDescription
targetId or class of textarea.
maxCharsMaximum of characters. Default is 140.

Browser support

IEChromeFirefoxOperaSafari
IE 9+ ✔Latest ✔Latest ✔Latest ✔Latest ✔

Contributing

Check CONTRIBUTING.md for more information.

History

Check Releases for detailed changelog.

License

MIT