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.
20 lines • 472 B
HTML
<html lang="en">
<head>
<meta charset="utf-8">
<title>Number of Instance</title>
</head>
<body>
<h1>Number of Instance</h1>
<p>Just check the console to see number of instance. The number is 4</p>
<script src="../src/konami-code.js"></script>
<script>
/* global KonamiCode */
new KonamiCode();
new KonamiCode();
new KonamiCode();
new KonamiCode();
console.log(KonamiCode.getNumberOfInstance());
</script>
</body>
</html>