Skip to content

Instantly share code, notes, and snippets.

@ChandraNalaani
Created November 28, 2011 02:35
Show Gist options
  • Save ChandraNalaani/1398850 to your computer and use it in GitHub Desktop.
Save ChandraNalaani/1398850 to your computer and use it in GitHub Desktop.
"We Didn't Start The Fire" (javascript)
// for The Front End Web Dev Playlist http://bit.ly/sEiZUZ
function weDidntStartTheFire(){
var itWasAlwaysBurning = $("#sinceTheWorldsBeenTurning");
// we didn't start the fire
// no we didn't light it
var butWeTriedToFightIt = ["birth control", "Ho Chi Minh", "Richard Nixon back again", "Moonshot", "Woodstock", "Watergate", "punk rock", "Begin", "Reagan", "Palestine", "terror on the airline", "Ayatollah's in Iran", "Russians in Afghanistan", "Wheel of Fortune", "Sally Ride", "heavy metal", "suicide", "foreign debts", "homeless vets", "AIDS", "crack", "Bernie Goetz", "hypodermics on the shores", "China's under martial law", "rock and roller cola wars", "I can't take it anymore"];
$.each(butWeTriedToFightIt, function(intIndex, objValue){
itWasAlwaysBurning.append(
$("<li>" + objValue + "</li>")
);
});
}
// <ol id="sinceTheWorldsBeenTurning"></ol>
//
// ...
// document.getElementById("video").play();
// <video id="video" src="http://bit.ly/tn0W9i" autoplay controls></video>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment