{"id":28136716,"url":"https://github.com/grunka/konami.js","last_synced_at":"2025-05-14T16:20:10.816Z","repository":{"id":7018630,"uuid":"8289320","full_name":"grunka/konami.js","owner":"grunka","description":"A small bit of JavaScript that recognizes the Konami code","archived":false,"fork":false,"pushed_at":"2016-08-08T11:25:30.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T23:21:45.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grunka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-19T11:55:28.000Z","updated_at":"2016-08-08T11:25:31.000Z","dependencies_parsed_at":"2022-07-21T14:03:01.854Z","dependency_job_id":null,"html_url":"https://github.com/grunka/konami.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grunka%2Fkonami.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grunka%2Fkonami.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grunka%2Fkonami.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grunka%2Fkonami.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grunka","download_url":"https://codeload.github.com/grunka/konami.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254179894,"owners_count":22027884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-14T16:19:58.682Z","updated_at":"2025-05-14T16:20:10.806Z","avatar_url":"https://github.com/grunka.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"konami.js\n=========\n\nA small bit of JavaScript that recognizes the [Konami code](http://en.wikipedia.org/wiki/Konami_Code) and triggers an event of your choice.\n\n\nUsage\n=====\n\nStep 1\n------\nEither load [konami.js](https://raw.github.com/grunka/konami.js/master/konami.js) through a script tag or copy and paste the method in there to some place where you want it.\n\nStep 2\n------\nDo something like this\n\n```javascript\nkonami(function () {\n  alert('ding');\n});\n```\n\nThis will register a listener on all key(up) events, wait for the right sequence and then call the supplied function, in this case show 'ding' in an alert box.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrunka%2Fkonami.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrunka%2Fkonami.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrunka%2Fkonami.js/lists"}