- Add CSS link:
cccheck/dist/css/cccheck.css
. - Add JavaScript link:
cccheck/dist/js/jquery.cccheck.js
. - You need to have jQuery in your project, of course.
$(document).ready(function() {
$.cccheck({
// Config local
'input_cc_number' : '#cc-number',
'element_show_label' : '#show-cc-label'
});
})
- Fork this repository.
git clone github.com/[you]/cccheck.git
cd cccheck
yarn
yarn watch
(for development) oryarn build
(for production)
- The scripts into ./js
- The styles SCSS into ./scss
- No edit ./dist
For styles and scripts exclusive of the example page, add directory in index.html.
Made with contributors-img.