-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Aashish Joshi edited this page Aug 27, 2022
·
1 revision
Welcome to the phnum-js wiki!
This is an open source library to help you show the best number to visitors on your website.
If you have phone numbers from multiple countries, you can use this library to show the number that is in the country of the website visitor. Additionally, the phone number is formatted in the visitor's local format (using the robust libphonenumber
project) and is displayed as a tel:
link.
There are two ways you can use the script.
-
Directly - Download the file showBestNumber.min.js and add it to your website files. Now, just add a
<script>
tag with the path to this file in the<head>
of all pages where the number should be displayed. -
CDN* - Use the CDN link in the script tag.
<script src="/path/to/showBestNumber.min.js" async></script>