This is a simple web application that allows users to enter their National Identity Card (NIC) number and retrieve their date of birth, gender, and age. The form currently only supports the old format of NIC numbers, but it provides a simple and user-friendly interface for obtaining this information. The code uses JavaScript and the Date object to perform the necessary calculations, and it can easily be integrated into other web applications.
- Clone the repository to your local machine.
- Open the index.html file in your preferred web browser.
- Enter your 10-digit NIC number in the input field provided.
- Click outside the input field to trigger the onblur event and retrieve your details.
- If the NIC number is valid, the date of birth, gender, and age will be displayed in the corresponding input fields. Otherwise, an alert message will be shown prompting the user to enter a valid NIC number.
This application uses the following dependencies:
- Bootstrap v5.3.0-alpha3 (CSS and JS)
- Google Fonts (DynaPuff)
This application is licensed under the MIT license. Feel free to use it or modify it to your liking.