Instantly share code, notes, and snippets.

@lnikkila /404.html
Last active Aug 29, 2015

Embed
What would you like to do?
<a id="alert-twitter"
href="https://twitter.com/intent/tweet?text=%40lnikkila+Hey%2C+this+link+is+dead%3A&amp;url=">
Twitter link
</a>
<a id="alert-email"
href="mailto:hello@lnikki.la?subject=Found+a+dead+link&amp;body=Hey%2C+this+link+is+dead%3A+">
Email link
</a>
<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
<script>
(function() {
var twitter = document.getElementById('alert-twitter');
var email = document.getElementById('alert-email');
twitter.href += encodeURIComponent(window.location);
email.href += encodeURIComponent(window.location);
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment