Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@VinnyFonseca
Created June 10, 2013 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VinnyFonseca/5748566 to your computer and use it in GitHub Desktop.
Save VinnyFonseca/5748566 to your computer and use it in GitHub Desktop.
Twitter Implementation Web Intents
<script type="text/javascript">
window.twttr = (function (d, s, id) {
var t, js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = "//platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
return window.twttr || (t = {
_e: [],
ready: function (f) {
t._e.push(f)
}
});
}(document, "script", "twitter-wjs"));
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment