Created
August 2, 2017 15:01
-
-
Save darzo27/89f2d06a20c5e5f7b04c9c72a8b11d1e to your computer and use it in GitHub Desktop.
Displaying User Twitter Timeline in div element
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
<html> | |
<!-- Twitter’s widgets JavaScript For optimal web page performance & tracking widget JS events --> | |
<script>window.twttr = (function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0], | |
t = window.twttr || {}; | |
if (d.getElementById(id)) return t; | |
js = d.createElement(s); | |
js.id = id; | |
js.src = "https://platform.twitter.com/widgets.js"; | |
fjs.parentNode.insertBefore(js, fjs); | |
t._e = []; | |
t.ready = function(f) { | |
t._e.push(f); | |
}; | |
return t; | |
}(document, "script", "twitter-wjs")); | |
</script> | |
<head> | |
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<div id="twitter-feed"></div> | |
<a class="twitter-timeline" href="https://twitter.com/DarZo27">Tweets by DarZo27</a> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment