cccheck
v1.0.10
Published
Simple front-end credit card
Downloads
12
Maintainers
Readme
CCCheck - Credit Card Check :credit_card: :heavy_check_mark:
To Use:
- 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.
To Configure:
$(document).ready(function() {
$.cccheck({
// Config local
'input_cc_number' : '#cc-number',
'element_show_label' : '#show-cc-label'
});
})
To Contribute:
- Fork this repository.
git clone github.com/[you]/cccheck.git
cd cccheck
yarn
yarn watch
(for development) oryarn build
(for production)
Files for plugin
- The scripts into ./js
- The styles SCSS into ./scss
- No edit ./dist
Files non-plugin
For styles and scripts exclusive of the example page, add directory in index.html.