Information Technology Reference
In-Depth Information
Figure 2-8. Who's That Tweet? display after selecting the right poster of the tweet
The JavaScript
Now that we have our page laid out and styled, it is time to make it dynamic with some
JavaScript. All of the application demos throughout this topic will make use of the
jQuery JavaScript framework. If you are unfamiliar with jQuery, it is a fantastic,
JavaScript library that is used the world over and makes cross-platform JavaScript
development trivial when compared to the olden days of Internet Explorer 6's
dominance.
There is a bit of JavaScript here, so I will break it up as I did with the CSS before it and
explain what is going on one section at a time. When coding up this demo, I added a
slew of helpful comments in the code along the way that should further help those new
developers amongst us in understanding what is going on.
Listing 2-5 will walk us through a set of default variables that will be used in our
application, as well as give us a very meaty array filled with some of Twitter's most
popular verified users.
Listing 2-5. Who's That Tweet? Javascript File, Part 1
/**
* Who's That Tweet
* @author: Rocco Augusto
* @file: js/main.js
**/
/* This array holds a list of verified
 
Search WWH ::




Custom Search