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
The code could stand to make better use of ES6 features and modern JavaScript coding styles. This might be the most wide-open issue in terms of solving and I'm open to all manners and discussion on the subject.
Some low hanging fruit and ideas to get started:
Remove all instances of var
Remove the custom event-listening code that existed for IE6(!!) compatibility
Perhaps this could/should be rewritten as an ES6 Class?
The one for loop could probably be rewritten to use forEach
If we can get a base rewrite that adheres to this we can break down the code and discuss more specific improvements.
The code could stand to make better use of ES6 features and modern JavaScript coding styles. This might be the most wide-open issue in terms of solving and I'm open to all manners and discussion on the subject.
Some low hanging fruit and ideas to get started:
var
for
loop could probably be rewritten to useforEach
If we can get a base rewrite that adheres to this we can break down the code and discuss more specific improvements.