Jquery-phonelink is a plugin that corrects "tel:" links on mobile devices and disbales "tel:" links on non mobile devices.
Jquery-phonelink is looking for phonelinks like: <a href="tel:111111>111111</a>. If your page does not contain any phonelink then jquery-phonelink does nothing. On the other way it checks if the user device is a mobile or a non mobile device. On non mobile devices phonlinks are rewritten to html span-tags for example: <a href="tel:111111>111111</a> will be rewritten to <span>111111</span> (in this case the link text is used not the href url). On a mobile device jquery-phonelink takes the href url and checks if the telephone number has the correct Format. If not it goes to fix it:
- Remove all non digits characters: 0391 22 23 / 1 -> 039122231
- Add country code: 039122231 -> +4939122231
TAKE CARE - BE AWARE! If your phonenumbers do not contain country codes, jquery-phonelink adds the default country code 49 which is german.
Just include the jquery-phonelink.min.js before closing </body> to your website. Just add the html5 phonelink markup to your numbers.