Created
November 28, 2011 02:35
-
-
Save ChandraNalaani/1398850 to your computer and use it in GitHub Desktop.
"We Didn't Start The Fire" (javascript)
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
// 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