May 6, 2014

Our computer science department is now fifty years old, so I thought I’d make them a little card to celebrate. Here’s the unminified code, which you can execute in your console:

var time=new Date().getTime();
if (time > 1577846298735 - 189345600000) {
	var year = 1964;
	var marquee = "Fifty years of smart computing... It's in our code.  Missouri University of Science and Technology.  ";
	marquee = marquee.split('');
	function advance () {
		if (year === 2014) {
			year = 1964;
		}
		marquee.push(marquee.shift());
		document.getElementById('target').innerHTML = year + "  " + marquee .join("");
		year++;
		setTimeout(function (){
			advance();
		}, 100);
	}
	console.log("Happy 50th Computer Science!");
	advance();
}

And here is their lovely card, which we also turned into a poster:

Computer Science card

Fork me on GitHub