@webceterauk/secure-tel-link
v1.0.2
Published
Developer starter template for Finsweet projects.
Downloads
63
Readme
Dynamically add telephone number
This script is design to take the text content of a div and replace it with a telephone number.
The idea is that a JavaScript added tel number is less prone to being scraped.
The telephone number is hard coded into the script at this point in time.
TODO
It would be better to have the number added via an attribute, so you just ned to have, eg:
'tel-number = 01234123345'
We could even add some checks and measures for the number.