georgemandis / konami-js

Adding the Konami Code easter egg to your projects since 2009! Compatible with gestures on smartphones and tablets as well. Compatible with all front-end frameworks and vanilla JavaScript
http://konamijs.mand.is/
MIT License
959 stars 121 forks source link

Easy custom cheat code implemention - with touch devices support #7

Closed DracoLi closed 11 years ago

DracoLi commented 11 years ago

Added a cheatCode() function to set custom cheat codes to a Konami instance. cheatCodes() handles converting the cheat code array into formats that can be used by pattern and iphone.code.

georgemandis commented 11 years ago

I appreciate the commit, but I'm really only interested in merging updates that can somehow decrease the overall footprint of the script. There have been some clever extensions and integrations with other frameworks & modules pushed through, but I've encouraged them all to fork it and create their own projects!