Last active
August 29, 2015 14:04
-
-
Save lnikkila/c63422c7a69e160900c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a id="alert-twitter" | |
href="https://twitter.com/intent/tweet?text=%40lnikkila+Hey%2C+this+link+is+dead%3A&url="> | |
Twitter link | |
</a> | |
<a id="alert-email" | |
href="mailto:[email protected]?subject=Found+a+dead+link&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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://twitter.com/intent/tweet?text=[@username and message]&url=[URL] | |
mailto:[email]?subject=[subject]&body=[message] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment