Home > Article > Web Front-end > JavaScript Konami Code implementation code_javascript skills
There is an easter egg on Facebook:
Log in to facebook.com, click anywhere on your homepage, enter Up, Up, Down, Down, Left, Right, Left, Right, B, A, Enter on the keyboard, and then click on the page Or scroll the scroll bar, you will find special changes (as shown below), hehe ^^
Friends who have played "Contra" will definitely be able to tell at a glance that the characters entered are actually the "secret skills" in "Contra". In fact, the term "secret technique" is called Konami Code, see the picture for details:
So how can you use JavaScript to add a similar easter egg to your own page?
Abhi provides a general idea in the article "Konami Code on Facebook: How to implement it on your site":