This commit is contained in:
stitz 2020-12-16 14:41:01 +01:00
parent 5636fcde22
commit dcf51deb66
2 changed files with 9 additions and 0 deletions

View File

@ -181,4 +181,10 @@ git submodule add https://git.seemsleg.it/ef/cssjs-func-lib cssjs
console.error( error );
} );
</script>
```
## mailto
```
<span class="mailto">mail@<span style="display:none;">no-thx-</span>server.de</span
<script src="/cssjs/mailto.js"></script>
```

3
mailto.js Normal file
View File

@ -0,0 +1,3 @@
mail = $('span.mailto').html();
mail = mail.replace('<span style="display:none;">no-thx-</span>','');
$('span.mailto').html('<a href="mailto:'+mail+'">'+ mail +'</a>');