Today I learned that there is a term called 'konami' and what it means in terms of web development. In simplistic terms, remember when you use to type a secret code on your gaming console or keypad (up, down, up, down, left, right, left)? Well, picture the same concept, except while on a webpage! Simplistically, that's kind of what konami is! However, in our case, it's us that get to decide what these little easter eggs can do.
Want to know a popular website that has a konami code implemented in its source code? Take a guess ..... BUZZFEED! Don't believe me, well give it a try.
- Go to Buzzfeed
- Let the page load and then type the following code on your keyboard:
up, up, down, down, left, right, left, right, b, a, enter
- Be amazed!
Since first learning the concept, Buzzfeed’s konami has changed. At one point, their konami would run a function that replaced all words on the page with "Wilkie!" (no clue as to who Wilkie is or why Wilkie was given the honor), but today a sparkle/confetti effect was looped in the background.
Anyways, that's what I learned today and I'm interested to hear what effects you guys can find and/or what functions your konami codes produce. Let me know what you think or if you find some that you would like to share :).
- It's something I would not have guessed developers would still implement.
- It's clever and playful, which is always nice.
- The code was a little bit more challenging than you'd initially think.