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.
18 lines • 430 B
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 src="../src/konami-code.js"></script>
<script>
/* global KonamiCode */
new KonamiCode({
debug: true
});
</script>
</body>
</html>