{"id":18614934,"url":"https://github.com/andrewjbateman/javascript-codepattern-function","last_synced_at":"2026-04-16T18:33:57.402Z","repository":{"id":96860578,"uuid":"160143710","full_name":"AndrewJBateman/javascript-codepattern-function","owner":"AndrewJBateman","description":":clipboard: Uses javascript to detect a sequence of keys. A function is run to show a unicorn if the sequence is detected. From Wes Bos Javascript30 tutorial 12.","archived":false,"fork":false,"pushed_at":"2020-08-08T20:47:35.000Z","size":348,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T02:45:01.081Z","etag":null,"topics":["css","html","javascript","javascript30"],"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/AndrewJBateman.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-03T06:34:00.000Z","updated_at":"2022-08-12T20:32:58.000Z","dependencies_parsed_at":"2023-04-21T06:35:56.675Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/javascript-codepattern-function","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/AndrewJBateman%2Fjavascript-codepattern-function","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fjavascript-codepattern-function/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fjavascript-codepattern-function/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fjavascript-codepattern-function/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/javascript-codepattern-function/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239406449,"owners_count":19633024,"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":["css","html","javascript","javascript30"],"created_at":"2024-11-07T03:27:28.016Z","updated_at":"2026-04-16T18:33:52.369Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"JavaScript","readme":"# :zap: Javascript30 Tutorial Codepattern Function\n\n* Wes Bos Youtube Tutorial: [JavaScript KONAMI CODE! #JavaScript30 12/30](https://www.youtube.com/watch?v=_A5eVOIqGLU).\n\n*** Note: to open web links in a new window use: _ctrl+click on link_**\n\n## :page_facing_up: Table of contents\n\n* [General info](#general-info)\n* [Screenshots](#screenshots)\n* [Technologies](#technologies)\n* [Setup](#setup)\n* [Features](#features)\n* [Status](#status)\n* [Inspiration](#inspiration)\n* [Contact](#contact)\n\n## :books: General info\n\n* Uses javascript to detect a sequence of keys. A function is run to show a unicorn if the sequence is detected.\n\n## :camera: Screenshots\n\n![Example screenshot](./img/pattern.png).\n\n## :signal_strength: Technologies\n\n* [Javascript v1.9 ECMA-262 ECMAScript 2018](http://www.ecma-international.org/publications/standards/Ecma-262.htm)\n\n## :floppy_disk: Setup\n\n* Open index.html in browser. If any code is changed the browser needs to be refreshed.\n\n## :computer: Code Examples\n\n* Code to check a sequence of keys is the same as a defined string constant.\n\n```javascript\n  // join letters to make a string then check if it is the same as the secret code\n  if (pressed.join('').includes(secretCode)) {\n    console.log('Ding Dong!');\n    cornify_add();\n  }\n```\n\n## :cool: Features\n\n* A unicorn is shown if the sequence is typed correctly.\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working. Updated to work from browser, not from Glitch.\n* To-Do: Nothing. Could use a response header to avoid the warning from the unicorn site but not urgent.\n\n## :clap: Inspiration\n\n* Wes Bos Youtube Tutorial: [JavaScript KONAMI CODE! #JavaScript30 12/30](https://www.youtube.com/watch?v=_A5eVOIqGLU)\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://www.andrewbateman.org) - you are welcome to [send me a message](https://andrewbateman.org/contact)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fjavascript-codepattern-function","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fjavascript-codepattern-function","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fjavascript-codepattern-function/lists"}