obfuscate email a bit
This commit is contained in:
parent
fb0073d34d
commit
9664764db5
@ -31,12 +31,19 @@
|
|||||||
<!-- a naive email obfuscator to counteract scrapers -->
|
<!-- a naive email obfuscator to counteract scrapers -->
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', function () {
|
window.addEventListener('DOMContentLoaded', function () {
|
||||||
|
document.querySelectorAll('span#lindholm-email').forEach(function (span) {
|
||||||
|
span.innerHTML = "Rendering email...";
|
||||||
|
span.setAttribute('aria-busy', 'true');
|
||||||
|
});
|
||||||
|
setTimeout(function () {
|
||||||
let first = 'ville';
|
let first = 'ville';
|
||||||
let at = '@';
|
let at = '@';
|
||||||
let last = 'lindholm';
|
let last = 'lindholm';
|
||||||
document.querySelectorAll('span#lindholm-email').forEach(function (span) {
|
document.querySelectorAll('span#lindholm-email').forEach(function (span) {
|
||||||
span.innerHTML = `${first}${at}${last}.dev`;
|
span.innerHTML = `${first}${at}${last}.dev`;
|
||||||
|
span.removeAttribute('aria-busy');
|
||||||
});
|
});
|
||||||
|
}, 2000);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
@ -50,7 +57,9 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/cv" class="contrast">CV</a></li>
|
<li><a href="/cv">
|
||||||
|
<h5>CV</h5>
|
||||||
|
</a></li>
|
||||||
<!-- <li><a href="/blog" class="contrast">Blog</a></li> -->
|
<!-- <li><a href="/blog" class="contrast">Blog</a></li> -->
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user