{"id":19188291,"url":"https://github.com/mathdroid/elevators","last_synced_at":"2025-02-23T03:40:42.273Z","repository":{"id":67669437,"uuid":"64363950","full_name":"mathdroid/elevators","owner":"mathdroid","description":null,"archived":false,"fork":false,"pushed_at":"2016-08-02T03:29:31.000Z","size":40,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-04T06:13:47.976Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathdroid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-07-28T04:19:17.000Z","updated_at":"2016-07-29T10:10:14.000Z","dependencies_parsed_at":"2023-02-27T14:30:34.206Z","dependency_job_id":null,"html_url":"https://github.com/mathdroid/elevators","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/mathdroid%2Felevators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathdroid%2Felevators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathdroid%2Felevators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathdroid%2Felevators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathdroid","download_url":"https://codeload.github.com/mathdroid/elevators/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240265419,"owners_count":19774071,"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":"2024-11-09T11:24:17.623Z","updated_at":"2025-02-23T03:40:42.251Z","avatar_url":"https://github.com/mathdroid.png","language":"JavaScript","readme":"# Elevators\n\n\u003e A program that simulates freight lifts in React and Redux.\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n## Installation\n\n\u003e Tested on Node v6.3.1. Node v4.0.0 or newer is recommended.\n\n1. `$ git clone https://github.com/mathdroid/elevators`\n\n2. `$ npm i`\n\n3. `$ npm start`\n\n==\u003e 🌎 Open `localhost:7248`\n\n## Testing\n\n- `$ npm run test` -- single test\n\n- `$ npm run watch` -- test watcher\n\n## Globals\n\n\u003e There are two methods which are declared globally in `\u003cApp /\u003e`, which are exposed in `window.controls` object.\n\n```js\nwindow.controls = {\n  checkButtonInFloor: (Number) =\u003e Boolean,\n  activateButton: (Number) =\u003e undefined\n}\n\n```\n\n1. `checkButtonInFloor(floor)` will give you the status of the button in a specific `floor`. Returns `true` if it is activated.\n\n2. `activateButton(floor)` will try to activate the button on the `floor`. Validity handling is internally checked.\n\n### Usage\n\n1. Open browser console\n\n2. `controls.checkButtonInFloor(floor)` or `controls.activateButton(floor)`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathdroid%2Felevators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathdroid%2Felevators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathdroid%2Felevators/lists"}