Skip to content

laszlof/js-contra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-contra

Javascript easter egg featuring the Konami Code (Contra)

This script will allow you to add an easter egg to your website. When a user on your site enters the Konami Code:

Up, Up, Down, Down, Left, Right, Left, Right, B, A

A Contra character will scroll across the screen and an audio sample will play.

A basic example can be found in the 'example' directory. There is also a minimized version that is slightly smaller than the full expanded source.

Both the animated GIF file, and the audio OGG file are encoded into the javascript using base64 for simplicity.

Feel free to fork this, or use it in any project you wish.

Installation

$ bower install js-contra

Usage

Simply add the following to your existing page.

<script type="text/javascript" src="src/contra.js"></script>

Checkout the Live Demo.

Feel free to contact me if you have any questions.

About

Javascript easter egg featuring the Konami Code (Contra)

Resources

License

Stars

Watchers

Forks

Packages

No packages published