Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/technohippy/protocommand
- Owner: technohippy
- Created: 2009-10-23T17:43:56.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2009-10-31T03:25:40.000Z (over 15 years ago)
- Last Synced: 2024-11-24T22:41:47.907Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 78.1 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
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();
})();