{"id":20848454,"url":"https://github.com/helloworld017/restaurance","last_synced_at":"2025-05-12T02:32:34.902Z","repository":{"id":79441002,"uuid":"96530478","full_name":"HelloWorld017/restaurance","owner":"HelloWorld017","description":"A package to send all elements to the Heroes of the Storm.","archived":false,"fork":false,"pushed_at":"2018-12-06T22:36:58.000Z","size":1464,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-24T12:02:53.730Z","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/HelloWorld017.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":"2017-07-07T11:02:38.000Z","updated_at":"2021-10-19T08:20:55.000Z","dependencies_parsed_at":"2023-03-12T08:12:05.493Z","dependency_job_id":null,"html_url":"https://github.com/HelloWorld017/restaurance","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/HelloWorld017%2Frestaurance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelloWorld017%2Frestaurance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelloWorld017%2Frestaurance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelloWorld017%2Frestaurance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HelloWorld017","download_url":"https://codeload.github.com/HelloWorld017/restaurance/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253662732,"owners_count":21944121,"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-18T02:26:05.627Z","updated_at":"2025-05-12T02:32:34.894Z","avatar_url":"https://github.com/HelloWorld017.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Restaurance\n![Heroes of the Storm](img/heroes.png)  \nA package to send elements to the Heroes of the Storm.\n\n## Installation\n### In a browser\n```html\n\u003cscript src=\"path/to/restaurance.bundle.js\"\u003e\u003c/script\u003e\n```\n\n### via NPM\n```js\nimport restaurance from \"restaurance\"; //ES6\nconst restaurance = require(\"restaurance\"); //CommonJS, ES6\nvar restaurance = require(\"restaurance\"); //CommonJS\n//etc...\n```\n## Documentation\n### restaurance([hotsImage : Object[, elems : Array[, duration : Number]]])\n\nKidnap elements into the `Heroes of the Storm` and show advertisement of the `Heroes of the Storm`.\n#### Arguments\n##### hotsImage\nAn object which contains data of hots image.\n\ndefault:\n```js\n{\n\twidth: 150,\n\theight: 150,\n\tx: (window.innerWidth - width) / 2,\n\ty: (window.innerHeight - width) / 2\n}\n```\n\n##### elems\nAn array which contains selectors or elements which will be kidnapped into the `Heroes of the Storm`.\n\ndefault:\nAll elements which don't have any children.\n\n##### duration\nThe duration(seconds) of the kidnapping animation.\nIt should be more than 2s.\n\ndefault:\n`30`\n\n## [Examples](https://HelloWorld017.github.io/restaurance/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloworld017%2Frestaurance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelloworld017%2Frestaurance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloworld017%2Frestaurance/lists"}