The NRC Code Search project is a web application that allows users to search for National Registration Card (NRC) information based on NRC code, NRC name, or city name. It provides a simple and user-friendly interface for retrieving relevant NRC data from a JSON file and displaying the search results.
- Search by NRC code: Users can input an NRC code to find matching entries.
- Search by NRC name: Users can input an NRC name to find matching entries. The NRC name is extracted from the data entries using a helper function.
- Search by city name: Users can input a city name to find matching entries.
- Dynamic search results: The application filters the data in real-time based on the user's input and displays the matching entries in a scrollable table.
- Error handling: The application handles errors gracefully, displaying appropriate messages in case of data retrieval or fetching errors.
The NRC Code Search project is built using the following technologies:
- HTML: Provides the structure and layout of the web page.
- CSS: Styles the web page and enhances the user interface.
- JavaScript: Implements the search functionality and data retrieval using the Fetch API.
- JSON: Stores the NRC data in a structured format for easy retrieval.
To use the NRC Code Search application, follow these steps:
- Open the web page in a browser.
- Enter an NRC code, NRC name, or city name in the search input field.
- As you type, the application will dynamically filter the data and display the matching entries in a scrollable table.
- If no matching entry is found, a message will be displayed indicating that no results were found.
- You can refine your search by modifying the input in the search field.
To get started with the NRC Code Search project, follow these steps:
- Clone the project repository:
git clone https://github.com/your-username/nrc-code-search.git
- Open the
index.html
file in a web browser. - Start searching for NRC information by entering the desired search query.
Contributions to the NRC Code Search project are welcome! If you find any bugs, have suggestions for improvements, or would like to add new features, feel free to open an issue or submit a pull request on the GitHub repository.
For any questions or inquiries, please contact [email protected].