UNPKG

konami-code-js

Version:

Fire a JavaScript Event when you enter the « Up Up Bottom Bottom Left Right Left Right B A » Konami Code Sequence.

24 lines (22 loc) 533 B
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Default</title> </head> <body> <h1>Default</h1> <p>For succeed this test, push « Up Up Down Down Left Right Left Right B A » on your keyboard and see in the `console` a default message.</p> <script> var KonamiCode = "First Konami Code Loaded"; </script> <script src="../src/konami-code.js"></script> <script> var KC = KonamiCode.noConflict(); new KC({ debug: true }); console.log(KonamiCode); </script> </body> </html>