I've accomplished this practical project as a part of Opanuj JavaScript course. The project was built using pure JavaScript( programming logic and functionality ) and HTML/CSS (layout, styles). It's main focus is to validate card number from the selecion of 3 financial services (Visa, Mastercard or AmericanExpress) based on Luhn Algorithm.
- HTML5
- CSS3
- Javascript
-
Clone this repo
https://github.com/AdrianGHub/Card-Validation-Algorithm.git
-
Make sure you have Node.js with npm from nodejs.org or via nvm | n
-
Install parcel bundler :
npm install -g parcel-bundler
- Localize your directory with project and run following command :
parcel index.html
-
Open website on localhost with index.html file displayed.
-
See the Examples --> Enjoy! 😎
Having opened browser with mentioned file type your card number into input field and check if message says it's correct number.
before validation: 4874742091150666
after validation: Twoja karta jest poprawna. Została wydana przez Visa
before validation: 1 8 1 2
after validation: Numer kary nie może zawierać poniżej 13 cyfr
🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉 Project is finished 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉