{"id":21754390,"url":"https://github.com/wingsline/jquery.tabs","last_synced_at":"2026-04-13T19:32:40.969Z","repository":{"id":14781034,"uuid":"17502854","full_name":"wingsline/jquery.tabs","owner":"wingsline","description":"Simple jquery plugin for generating tabs","archived":false,"fork":false,"pushed_at":"2014-07-20T02:25:15.000Z","size":192,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T22:40:37.328Z","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/wingsline.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":"2014-03-07T04:34:35.000Z","updated_at":"2019-12-13T08:10:51.000Z","dependencies_parsed_at":"2022-09-07T04:00:55.256Z","dependency_job_id":null,"html_url":"https://github.com/wingsline/jquery.tabs","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/wingsline/jquery.tabs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingsline%2Fjquery.tabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingsline%2Fjquery.tabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingsline%2Fjquery.tabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingsline%2Fjquery.tabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wingsline","download_url":"https://codeload.github.com/wingsline/jquery.tabs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingsline%2Fjquery.tabs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31768637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-26T09:13:51.904Z","updated_at":"2026-04-13T19:32:40.937Z","avatar_url":"https://github.com/wingsline.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A simple jquery tabs plugin \n\n\n**Requirements:** jQuery 1.9+\n\n**Optional (since v0.1.6):** https://github.com/jjenzz/jQuery.nearest\n\n## Required CSS:\n\n\t.tabs--content li {display:none}\n \t.tabs--content li.active {display:block}\n \t\n ## Required HTML:\n \n\t\u003col class=\"tabs\"\u003e\n\t\t\u003cli\u003e\u003ca href=\"#tab1\"\u003eTab 1\u003c/a\u003e\u003c/li\u003e\n\t\t\u003cli\u003e\u003ca href=\"#tab2\"\u003eTab 2\u003c/a\u003e\u003c/li\u003e\n\t\t\u003cli\u003e\u003ca href=\"#tab3\"\u003eTab 3\u003c/a\u003e\u003c/li\u003e\n\t\u003c/ol\u003e\n\t\u003cul class=\"tabs--content\"\u003e\n \t\t\u003cli id=\"tab1\"\u003eContent 1\u003c/li\u003e\n \t\t\u003cli id=\"tab2\"\u003eContent 2\u003c/li\u003e\n \t\t\u003cli id=\"tab3\"\u003eContent 3\u003c/li\u003e\n\t\u003c/ul\u003e\n\t\n\t\nWhen using the nearest plugin, you can have the tabs content anywhere in your dom.\n\n## Usage\n\nInitialize the plugin:\n\n\tvar tabs = $('.tabs').tabs();\n\t\n.. then open the first tab:\n\t\n\ttabs.tabs('open', 'first');\n\nWhen initializing, you can pass options to the plugin:\n\n\t$('.tabs').tabs({'option1':'value', 'option2': 'value'});\n\t\nYou can also add a hashchange event to the window, to change the tabs when the\nhash changes:\n\n\t$(window).bind('hashchange', function (){\n    \tvar hash = window.location.hash;\n    \tif (hash.substring(0, 3) !== 'tab') {\n        \treturn;\n    \t}\n    \tif(hash){\n        \ttabs.tabs('open', hash.substr(1));\n    \t}\n    \telse{\n        \ttabs.tabs('open', 'first');\n    \t}\n\t});\n\nThe following methods will open a tab:\n\n#### HTML\n\nInsert a hidden input element into the HTML:\n\n\t\u003cinput name=\"openTab\" value=\"tab1\" type=\"hidden\"\u003e\n\t\n#### Javascript\n\nAdd this after the plugin was initialized:\n\n\t$('.tabs').tabs('open', 'tabname');\n\t\t\nIf you want to set the hash of the current URL:\n\n\t$('.tabs').tabs('open', 'tabname', true);\n\t\n#### Open the first or the last tab\n\n\t$('.tabs').tabs('open', 'first');\n\t$('.tabs').tabs('open', 'last');\n\n## Options\n\n\t\n`tabContent`: Class for the tabbed content container. **Default**: `'.tabs--content'`\n\n`activeTabClass`: (since v0.1.6) tab element will have this class when active. **Default**: `'active'`\n\n`activeClass`: content element in the container will have this class when open. **Default**: `'active'`\n\n`hiddenInputName`: if a hidden element is present in the page we attempt to open that tab. **Default**: `openTab`\n\n`updateHash`: update the browser hash. **Default**: `false`\n\n\n## Notes\n\n* the tab content must be inserted after the tab handlers\n* make sure in your style sheet you hide the li elemenets and show the li.active ones\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwingsline%2Fjquery.tabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwingsline%2Fjquery.tabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwingsline%2Fjquery.tabs/lists"}