Skip to content

technohippy/ProtoCommand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Easiest way to add command line support for your website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published