Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E-Mail-Adressen als CSS-Klasse anlegen (rückwärts lesen) #16

Open
JockelK opened this issue May 2, 2017 · 1 comment
Open

E-Mail-Adressen als CSS-Klasse anlegen (rückwärts lesen) #16

JockelK opened this issue May 2, 2017 · 1 comment

Comments

@JockelK
Copy link
Contributor

JockelK commented May 2, 2017

No description provided.

@ubergesundheit
Copy link
Member

HTML tags nach diesem Format:

<a data-href="moc.elpmaxe@liame:otliam" class="obfusmail" rel="nofollow">moc.elpmaxe@liame</a>

Mit diesem CSS

.obfusmail {
  unicode-bidi: bidi-override;
  direction: rtl;
}

und diesem Javascript:

document.addEventListener("DOMContentLoaded", function () {
  var links = document.querySelectorAll(".obfusmail");
  for (var i = 0; i < links.length; i++) {
    var link = links[i];
    var address = link.dataset.href;
    link.href = address.split('').reverse().join('');
  }
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To do
Development

No branches or pull requests

2 participants