Closed fxstr closed 1 year ago
Maybe: !this.dataset.obfuscated && this.dataset.obfuscated = true && this.setAttribute('href', a.getAttribute('href').split('').reverse().join(''))
Maybe: Also add onmouseover
Fixed with https://github.com/joinbox/drupal-module-email-obfuscator/pull/12 (v2.2.0 & v1.2.0)
Every click on an email address changes its obfuscation state (in the
href
attribute): from reversed to non-reversed to reversed. We must make sure thatonclick
, we only de-obfuscate once. Solution is not clear at the moment (becauseonclick
handlers only accept JS expressions, not full featured instructions).