added a readme and improved example page.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
Konami code listener
|
||||
====================
|
||||
|
||||
This script lets you enable Konami code on your website!
|
||||
|
||||
It's super simple:
|
||||
|
||||
```html
|
||||
<script src="konami.js"></script>
|
||||
|
||||
<script>
|
||||
konami(function () {
|
||||
// do something cool here!
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
||||
Tested to work in Chrome and Firefox.
|
||||
+5
-1
@@ -14,6 +14,10 @@
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
blah blah
|
||||
<h1>Chicken is a fish.</h1>
|
||||
|
||||
<p>You did not know that, did you? Well now you do. Also, ostrich is a fish.</p>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user