I’m using a little script/css solution to prevent spam and collection of email-addresses.
I am using the identical script on several websites.
Now, the funny thing is, that it works on one website (basically clicking the email-address will open a window in your favourite email application), while the others fail.
I noticed that the website where it works is running on roots 6.5.0 while the others are 6.5.1
I’m using grunt on Windows with XAMPP for local development, as I use shared hosting which prevents me from shell access.
Anyway, this is the script that I use (in _main.js): /*! Mask Email Address */ function mailto(host,name,tld) { window.location = 'mailto:'+name+'@'+host+'.'+tld; }
I know that I have to run grunt and that’s what I did. I’ve build several sites based on roots already. One of them, http://simon-communications.com is very basic, there is just the above mentioned script added to _main.js, I double-checked with scripts.min.js, also contained in here. the grunt-job runs without failure, so that can’t be causing it.
All I can tell you is the script on your live server does not contain the mailto function; and that the function itself compiles fine locally (on Roots 6.5.1).
You’ll have to debug your workflow to find out what the problem is.