{"id":20473980,"url":"https://github.com/pecuchet/arcade-score-initials","last_synced_at":"2025-07-21T11:05:32.804Z","repository":{"id":57183230,"uuid":"127741078","full_name":"pecuchet/arcade-score-initials","owner":"pecuchet","description":"Arcade game leader board initials","archived":false,"fork":false,"pushed_at":"2018-04-15T10:24:22.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-13T06:30:02.286Z","etag":null,"topics":["arcade","game-development","leaderboard"],"latest_commit_sha":null,"homepage":"https://dotburo.org/blog/2018/04/javascript-arcade-score-initials/","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/pecuchet.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":"2018-04-02T10:24:51.000Z","updated_at":"2018-04-15T10:32:33.000Z","dependencies_parsed_at":"2022-09-14T06:10:36.051Z","dependency_job_id":null,"html_url":"https://github.com/pecuchet/arcade-score-initials","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pecuchet/arcade-score-initials","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pecuchet%2Farcade-score-initials","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pecuchet%2Farcade-score-initials/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pecuchet%2Farcade-score-initials/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pecuchet%2Farcade-score-initials/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pecuchet","download_url":"https://codeload.github.com/pecuchet/arcade-score-initials/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pecuchet%2Farcade-score-initials/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265109677,"owners_count":23712731,"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":["arcade","game-development","leaderboard"],"created_at":"2024-11-15T14:27:25.342Z","updated_at":"2025-07-21T11:05:32.761Z","avatar_url":"https://github.com/pecuchet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arcade score initials\n\nA simplistic js ES6 implementation of old school arcade game leader board inputs.  \n\u003cbr\u003e\nThe module was originally developed for big Android screens where the native\nkeyboard could not be used. This was an easy solution to let the player enter \nher initials easily in the leaderboard, \nwithout having to develop or require a full-blown on-screen keyboard in javascript.  \n\u003cbr\u003e\n**Currently only for touch devices.** The input can be changed with a single tap, \na long tap to cycle through the alphabet or by holding and moving up or down.  \n\n## [Demo](https://pecuchet.github.io/arcade-score-initials/)\n![screenshot](https://raw.githubusercontent.com/pecuchet/arcade-score-initials/gh-pages/screenshot.jpg)\n\n## Usage\nThere is a small factory class to create the desired number of inputs at once:\n```\n(new ArcadeInitials())\n    .create(3, containerElement)\n    .setActive(0)\n    .bindSubmit(button, () =\u003e console.log(this.getInput()));\n```\n\nAlternatively input can be created one by one:  \n```\nnew InitialInput({\n    parent: containerElement,\n    active: true,\n    onActiveChange: () =\u003e console.log(this.getValue())\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpecuchet%2Farcade-score-initials","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpecuchet%2Farcade-score-initials","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpecuchet%2Farcade-score-initials/lists"}