Last active
October 11, 2015 10:38
-
-
Save snluu/3846438 to your computer and use it in GitHub Desktop.
Example of a page embedding shawty
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
<script> | |
function shawty(data) { | |
if (data.success) { | |
document.write( | |
'<a href="' + data.short + | |
'">Short URL to the current page</a>'); | |
} | |
} | |
</script> | |
<script src="//luu.bz/shawty.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment