Return to Snippet

Revision: 11825
at February 20, 2009 10:33 by selfmadepsyche


Initial Code
<div id="twitter" class="container">
	<a href="http://twitter.com/snookca"><img src="/img/twitter.png" alt="Follow me on Twitter"></a>
	<p><a id="twitter-post" 
		href="http://twitter.com/snookca">I say witty things on Twitter.</a></p>
</div>

function twitterCallback(o) {
	o = o[0]; // o is always an array, so just get the first (and only entry)
	var e = document.getElementById('twitter-post');
	e.innerHTML = o.text;
	e.href = 'http://twitter.com/snookca/status/' + o.id;
}

Initial URL

                                

Initial Description

                                

Initial Title
Embed Twitter Status

Initial Tags
html, twitter

Initial Language
JavaScript