Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

The Contra (Konami) code in JavaScript

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 contra.js
Octocat-spinner-32 readme.md
readme.md

Add the Contra (Konami) code to any website.

All you have to do is include the contra.js script:

<script src="contra.js" type="text/javascript" charset="utf-8"></script>

You can either react based on css styles:

<style type="text/css" media="screen">
  body.contra div.foo {
    /* Awesome style here */
  }
</style>

Or you can add your own javascript handlers and the possibilities are endless:

Contra.addHandler(function() {
  // Awesome things here
});
Something went wrong with that request. Please try again.