Skip to content

Instantly share code, notes, and snippets.

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

What would you like to do?
<a id="alert-twitter"
Twitter link
<a id="alert-email"
Email link
<script type="text/javascript" src="//"></script>
(function() {
var twitter = document.getElementById('alert-twitter');
var email = document.getElementById('alert-email');
twitter.href += encodeURIComponent(window.location);
email.href += encodeURIComponent(window.location);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.