{"id":25759665,"url":"https://github.com/maechabin/jquery.cb-konami.js","last_synced_at":"2026-06-10T02:31:09.906Z","repository":{"id":22626220,"uuid":"25968779","full_name":"maechabin/jquery.cb-konami.js","owner":"maechabin","description":"jQuery Plugin \"KONAMI\" Code","archived":false,"fork":false,"pushed_at":"2015-03-18T11:27:28.000Z","size":2612,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T17:44:15.783Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://mae.chab.in/archives/2448","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/maechabin.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":"2014-10-30T11:57:47.000Z","updated_at":"2017-06-01T10:29:25.000Z","dependencies_parsed_at":"2022-07-17T02:00:29.596Z","dependency_job_id":null,"html_url":"https://github.com/maechabin/jquery.cb-konami.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maechabin/jquery.cb-konami.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fjquery.cb-konami.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fjquery.cb-konami.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fjquery.cb-konami.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fjquery.cb-konami.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maechabin","download_url":"https://codeload.github.com/maechabin/jquery.cb-konami.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fjquery.cb-konami.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34134633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-02-26T17:37:39.857Z","updated_at":"2026-06-10T02:31:09.884Z","avatar_url":"https://github.com/maechabin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#jquery.cb-Konami.js\n\nWebサイトにKonamiコマンドを実装するjQueryプラグイン。\n\n##概要\nキーボードでKonamiコマンド**「上上下下左右左右BA」**を打った後に、何か任意の処理を実行させる機能を実装することができます。  \n  \n以下の例では、キーボードの[↑] + [↑] + [↓] + [↓] + [←] + [→] + [←] + [→] + [B] + [A] \nを打った後に、「konami」とアラートが表示されます。\n```js\n$(window).cbKonami(function () {\n\talert(\"konami\");\n});\n```\n\n##実装方法\njQueryとjquery.cbkonami.jsをページに読み込みます。\n```html\n\u003cscript src=\"//code.jquery.com/jquery-1.11.0.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"jquery.cbkonami.min.js\"\u003e\u003c/script\u003e\n```\n\n\u0026lt;body\u0026gt;の閉じタグの直前に以下を挿入。cbKonamiメソッドの引数には、コナミコマンド入力後に発動させたい処理（関数）を指定。\n```js\n\u003cscript\u003e\n$(window).cbKonami();\n\u003c/script\u003e\n```\n###実装例1\n```js\n\u003cscript\u003e\nvar foo = function () {\n\tconsole.log(\"bar\"):\n};\n$(window).cbKonami(foo);\n\u003c/script\u003e\n```\n\n###実装例2\n```js\n\u003cscript\u003e\n$(window).cbKonami(function () {\n\tconsole.log(\"bar\");\n});\n\u003c/script\u003e\n```\n\n##デモ\n\n[http://jsrun.it/maechabin/6DxD](http://jsrun.it/maechabin/6DxD)\n\n##ライセンス\n\nMIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaechabin%2Fjquery.cb-konami.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaechabin%2Fjquery.cb-konami.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaechabin%2Fjquery.cb-konami.js/lists"}