UNPKG

phonumber

Version:

Phone number parser. Good for formatting phone numbers entered by users.

35 lines (34 loc) 755 B
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Development</title> <style> div { width: 200px; } input { padding: 6px 8px; width: 100%; font-size: 14px; } #app { display: flex; flex-direction: row; align-items: center; } #country { width: 60px; text-align: center; } </style> </head> <body> <div id="app"> <div id="country"></div> <input name="phone" type="tel" placeholder="Phone number" value="" /> </div> <script type="module" src="/src/forDev/example.ts"></script> </body> </html>