I love easter eggs. I don’t mean the colorful ones. I mean hidden surprises in apps. Here’s a few of my favorites that I’ve made throughout the years.
Skittles
During the company summit the CTO made an analogy comparing the size of our “big data” to a bag of skittles. It became a running joke. His office even got pranked with every square inch covered with skittles. I added an easter egg to our UI that would show raining skittles whenever the user typed the word “skittles”.
Christmas Lights
Once a year on December 25th, a string of lights show up on the top of publisher.spotxchange.com. I made sure that it wouldn’t interfere with navigation. (Make sure fun doesn’t cause a high or critical ticket. ha.)
private addLights(): void { let bulbs: number = Math.floor(window.innerWidth / this.bulbWidth * 1.5);
let $lights : JQuery = jQuery( `<ul id="lights-wire"> ${Array(bulbs).join('<li></li>')} </ul>`) as JQuery;
$lights.appendTo('body'); } }
/* istanbul ignore next */ const now: Date = newDate(); /* istanbul ignore next */ if (now.getDate() === 25 && now.getMonth() === 12 - 1) { // delaying 1 sec to give the spinner time to show. setTimeout(() => { // tslint:disable-next-line:no-unused-expression new Lights(); }, 1000); }
Breakout Game
This is a throwback to Atari days when there was a block breaking game called Breakout. For about a year, we had a UI that had a group of large checkboxes for configurations. I called it the “wall of checkboxes”, which gave me the idea… Why not make it a game to break the boxes? This one was a little hard to trigger. To activate, the user had to triple click on a disabled checkbox.