This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Insert this into your already sourced JS file, or link to it in the HEAD of your DOM. | |
// Add whatever you like to the keystroke keychain match. | |
document.addEventListener('DOMContentLoaded', () => { | |
'use strict'; | |
// Standard Konami Code keystroke chain. | |
// Up Up Down Down Left Right Left Right B A Start | |
konamify("arrowuparrowuparrowdownarrowdownarrowleftarrowrightarrowleftarrowrightbaenter"); | |
}); |