technohippy / ProtoCommand

Easiest way to add command line support for your website

This URL has Read+Write access

name age message
file README.textile Loading commit data...
directory sample/
directory src/
README.textile

What’s this?

By utilizing this protocommand library, you can easily add some hidden features, like Konami Code, to your website.

Code Sample

(function() {
    var konami = new ProtoCommand('up up down down left right left right b a');
    konami.action = function(){document.body.style.backgroundColor = 'black'};
    konami.reset = function(){document.body.style.backgroundColor = 'white'};
 
    var google = new ProtoCommand('g o o g l e enter');
    google.link('http://google.com');
 
    ProtoCommand.observeAll();
})();