This is a simple web-based application that identifies the Moroccan telecom operator for a given phone number. Users can input a phone number, and the system will determine the operator based on predefined prefixes for Maroc Telecom, Orange Maroc, and inwi.
- User-friendly interface with HTML, CSS, and JavaScript.
- Validates Moroccan phone numbers.
- Determines the telecom operator based on number prefixes.
- Displays results instantly.
- The user enters a phone number in the input field (e.g.,
061198563412
). - The application extracts the first four digits of the number.
- It compares the extracted prefix against predefined mappings for each operator:
- Maroc Telecom:
0610
,0611
,0613
... - Orange Maroc:
0612
,0614
,0617
... - inwi:
0526
,0527
,0533
...
- Maroc Telecom:
- The operator name is displayed, or an "Unknown Operator" message is shown if no match is found.
- Clone the repository:
git clone https://github.com/taher_el_mehdi/moroccan-operator-checker.git
- Open the
index.html
file in a web browser. - Enter a valid Moroccan phone number to identify the operator.
You can try the application here.
Contributions are welcome! Follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add new feature"
- Push the branch:
git push origin feature-name
- Open a pull request.
This project is open source and available under the MIT License.
For questions or suggestions, feel free to contact me.