Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

The Contra (Konami) code in JavaScript

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

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

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 {
    /* Awesome style here */

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.