GithubHelp home page GithubHelp logo

cvyl / fr-department-lookup Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18 KB

Lookup French department names by their 2- or 3-digit codes with this simple web app.

Home Page: https://lgbt.sh/fr-department-lookup/

License: MIT License

JavaScript 71.86% HTML 28.14%
department departments france javascript lookup

fr-department-lookup's Introduction

French Department Code Lookup Web App

This is a simple web application that allows you to look up French department names by their respective 2- to 3-digit codes. It uses jQuery for frontend interaction and JavaScript to perform the department code lookup.

How to Use

Click here for an online demo!

  1. Clone or download this repository to your local machine.

  2. Open the index.html file in your web browser.

  3. Enter a 2- or 3-digit department code in the input field.

  4. Click the "Verify" button.

  5. The department name corresponding to the code will be displayed below the button, or an error message will appear if the code is invalid.

Features

  • Validates the input to ensure it's a 2- to 3-digit code.
  • Retrieves department data from a JSON file (departements.json).
  • Displays the department name if a valid code is entered.

Project Structure

  • index.html: The main HTML file that contains the input field, button, and result display area.
  • Script1.js: The JavaScript file that handles user interactions and department code lookup.
  • departements.json: A JSON file containing the mapping of department codes to department names.

Contributing

Feel free to contribute to this project by making modifications, adding features, or fixing bugs. You can fork the repository and submit pull requests.

About This Project

I created this web app for a friend approximately eight months ago to provide a practical tool. However, sometime later, our relationship broke up, but the project remains here as a useful resource.

License

This project is open-source and available under the MIT License. You can find the full license details by clicking on the link.

fr-department-lookup's People

Contributors

cvyl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.