Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/technohippy/protocommand

Easiest way to add command line support for your website
https://github.com/technohippy/protocommand

Last synced: 19 days ago
JSON representation

Easiest way to add command line support for your website

Awesome Lists containing this project

README

        

h1. What's this?

By utilizing this protocommand library, you can easily add some hidden features, like "Konami Code":http://en.wikipedia.org/wiki/Konami_Code, to your website.

h1. 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();
})();