1.0.6 • Published 7 years ago

kentekenplaat v1.0.6

Weekly downloads
36
License
MIT
Repository
github
Last release
7 years ago

Travis-CI David npm

Automatically formats an input to a Dutch licenseplate.

Quick start

Demo

Install

Install with NPM

npm install kentekenplaat --save

Install with Bower

bower install kentekenplaat --save

Or download the latest release.

Usage

Only the class kentekenplaat is mandatory to apply styles and formatting:

<input type="text" class="kentekenplaat">

Include the Kentekenplaat stylesheet in your page:

<link rel="stylesheet" href="css/kentekenplaat.min.css" />

Pure Javascript

Include the kentekenplaat.min.js script in your page, and then:

new Kentekenplaat(document.querySelector('.kentekenplaat'));

In case you want to format multiple inputs:

document.querySelectorAll('.kentekenplaat').forEach(function(element){
  new Kentekenplaat(element);
});

jQuery

Include the kentekenplaat.min.js and kentekenplaat-jquery.min.js scripts in your page, and then:

$('.kentekenplaat').kentekenplaat();

AngularJS

Coming soon!

License

The code and the documentation are released under the MIT License.

1.0.6

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago