https://github.com/jish/contra
The Contra (Konami) code in JavaScript
https://github.com/jish/contra
Last synced: 5 months ago
JSON representation
The Contra (Konami) code in JavaScript
- Host: GitHub
- URL: https://github.com/jish/contra
- Owner: jish
- Created: 2011-08-20T19:21:36.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2015-03-05T03:00:44.000Z (about 11 years ago)
- Last Synced: 2025-04-13T03:19:27.314Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 105 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Add the Contra (Konami) code to any website.
All you have to do is include the `contra.js` script:
```html
```
You can either react based on css styles:
```css
body.contra div.foo {
/* Awesome style here */
}
```
Or you can add your own javascript handlers and the possibilities are endless:
```js
Contra.addHandler(function() {
// Awesome things here
});
```
### Develop
$ npm install
$ npm install -g broccoli-cli
### Build
$ broccoli build dist