{"id":18096660,"url":"https://github.com/bredele/jquery-stack","last_synced_at":"2025-04-13T10:07:06.893Z","repository":{"id":11229340,"uuid":"13621648","full_name":"bredele/jquery-stack","owner":"bredele","description":"Jquery plugin to stack your dom nodes","archived":false,"fork":false,"pushed_at":"2013-10-16T16:16:16.000Z","size":440,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T01:35:25.590Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bredele.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2013-10-16T14:40:46.000Z","updated_at":"2019-07-23T15:20:26.000Z","dependencies_parsed_at":"2022-09-14T19:40:32.537Z","dependency_job_id":null,"html_url":"https://github.com/bredele/jquery-stack","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/bredele%2Fjquery-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fjquery-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fjquery-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fjquery-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bredele","download_url":"https://codeload.github.com/bredele/jquery-stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248695441,"owners_count":21146955,"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-10-31T19:15:01.077Z","updated_at":"2025-04-13T10:07:06.864Z","avatar_url":"https://github.com/bredele.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# jquery-stack\n\n  jQuery plugin to stack your dom nodes\n\t\n\n## Usage\n\nFirst, include the jQuery and the stack plugin:\n\n```html\n\u003cscript src=\"http://code.jquery.com/jquery-1.10.1.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"jquery.stack.js\"\u003e\u003c/script\u003e\n```\n\nThen create your stack as following (a stack can be any content):\n\n\n```html\n\u003cdiv class=\"stack\"\u003e\n\t\u003cdiv data-stack=\"child1\"\u003echild1\u003c/div\u003e\n\t\u003cdiv data-stack=\"child2\"\u003echild2\u003c/div\u003e\n\t\u003cdiv data-stack=\"child3\"\u003echild3\u003c/div\u003e\n\u003c/div\u003e\n```\n\nand intialize your plugin:\n\n```js\nvar stack = $('.stack').stack({\n\tdefault:'child1'\n});\n```\n\n## API\n\n### add(name, dom)\n\n  Identify a jquery element by name and push it into the stack\n\n```js\nstack.add('child4', $('.child4'));\n```\n\n### show(name)\n\n  Display a stacked element into the `parent` element.\n\n```js\nstack.show('child3');\n```\n\n## Events\n\n### show\n\n```js\n$('.stack').trigger('show', 'child2');\n```\n\n## Options\n\n### Namespace\n\nBy default, the plugin look for nodes containing the `stack` data-attribute . You can set this namespace with the following option:\n\n```js\nvar stack = $('.stack').stack({\n\tnamespace:'obama'\n});\n```\n\n### Default visible\n\nWhen you create a stack, every child nodes are stacked into a document fragment and are not visible on the screen. However, you can choose to display one by default:\n\n```js\nvar stack = $('.stack').stack({\n\tdefault:'child2'\n});\n```\n\n\n## Component\n\nYou can install a component version with [component(1)](http://component.io):\n\n  $ component install bredele/stack\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbredele%2Fjquery-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbredele%2Fjquery-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbredele%2Fjquery-stack/lists"}