https://github.com/starkelessar/international-phone-number
International mask for entering a phone number. Includes 201 countries with unique mask and phone number prefix + country flag
https://github.com/starkelessar/international-phone-number
imaskjs typescript vanillajs
Last synced: 4 months ago
JSON representation
International mask for entering a phone number. Includes 201 countries with unique mask and phone number prefix + country flag
- Host: GitHub
- URL: https://github.com/starkelessar/international-phone-number
- Owner: StarkElessar
- Created: 2024-12-12T21:22:20.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-18T19:58:56.000Z (over 1 year ago)
- Last Synced: 2025-06-22T06:03:16.364Z (12 months ago)
- Topics: imaskjs, typescript, vanillajs
- Language: TypeScript
- Homepage: https://starkelessar.github.io/international-phone-number
- Size: 529 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# InternationalPhoneMask
International mask for entering a phone number. Includes 201 countries with unique mask and phone number prefix + country flag.
Simple setup, all you need to do is create an input tag and specify the id of the element. For example:
```html
```
And in the scripts you need to create an instance of the InternationalPhoneMask class:
```ts
document.addEventListener('DOMContentLoaded', () => {
new InternationalPhoneMask('phone');
});
```
- At the moment the source code of the script is [here](https://github.com/StarkElessar/international-phone-number/tree/master/src/scripts/international-phone-number)
- You can get the styles [here](https://github.com/StarkElessar/international-phone-number/blob/master/src/styles/libs/international-phone-number.scss)
- And you can get a picture of the flags [here](https://github.com/StarkElessar/international-phone-number/blob/master/public/ipn-flags.png)
Additional description of the class and its options in the development... 😴
💲 You can donate any amount to a cryptocurrency wallet to support the project.
USDT coin, TRC20 network, address: `TNm4cjXDPu4uxjXf7Te9UQYZA5oENmMJdE`