-
-
Save travisjeffery/5993441 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 src="http://platform.tumblr.com/v1/share.js"></script> | |
<!-- Containers --> | |
<p id="tumbr_video_share"></p> | |
<p id="tumbr_text_share"></p> | |
<!-- Everlapse Vars --> | |
<script type="text/javascript"> | |
var everlapse_title = 'Walk With Me'; | |
var everlapse_embed = '<iframe src="http://everlapse.co/c/0N2120/embed?play=true" width="500" height="500" frameborder="0"></iframe>'; | |
</script> | |
<!-- Build the buttons! --> | |
<script type="text/javascript"> | |
var tumblr_button_video = document.createElement("a"); | |
tumblr_button_video.setAttribute("href", "http://www.tumblr.com/share/video?embed=" + encodeURIComponent(everlapse_embed) + "&caption=" + encodeURIComponent(everlapse_title)); | |
tumblr_button_video.setAttribute("title", "Share on Tumblr as Video"); | |
tumblr_button_video.innerHTML = "Share on Tumblr as Video"; | |
document.getElementById("tumbr_video_share").appendChild(tumblr_button_video); | |
var tumblr_button_text = document.createElement("a"); | |
tumblr_button_text.setAttribute("href", "http://www.tumblr.com/share/text?body=" + encodeURIComponent(everlapse_embed) + "&title=" + encodeURIComponent(everlapse_title)); | |
tumblr_button_text.setAttribute("title", "Share on Tumblr as Text"); | |
tumblr_button_text.innerHTML = "Share on Tumblr as Text"; | |
document.getElementById("tumbr_text_share").appendChild(tumblr_button_text); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment