- 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
npm install
gulp
orgulp watch