An open API service indexing awesome lists of open source software.

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

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`