{"id":15818637,"url":"https://github.com/wellwind/bootstrap-responsive-tab-pills-to-navbar","last_synced_at":"2026-02-11T23:08:18.406Z","repository":{"id":32913355,"uuid":"36508579","full_name":"wellwind/bootstrap-responsive-tab-pills-to-navbar","owner":"wellwind","description":"A responsive demo for @twitter bootstrap, when device is lager then tablets, you will see Tab or Pills, when smaller you will see Navbar.","archived":false,"fork":false,"pushed_at":"2015-06-02T03:28:18.000Z","size":140,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-06T06:03:57.114Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wellwind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-29T14:17:21.000Z","updated_at":"2024-07-03T15:40:29.000Z","dependencies_parsed_at":"2022-07-12T23:30:29.851Z","dependency_job_id":null,"html_url":"https://github.com/wellwind/bootstrap-responsive-tab-pills-to-navbar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wellwind/bootstrap-responsive-tab-pills-to-navbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellwind%2Fbootstrap-responsive-tab-pills-to-navbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellwind%2Fbootstrap-responsive-tab-pills-to-navbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellwind%2Fbootstrap-responsive-tab-pills-to-navbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellwind%2Fbootstrap-responsive-tab-pills-to-navbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wellwind","download_url":"https://codeload.github.com/wellwind/bootstrap-responsive-tab-pills-to-navbar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellwind%2Fbootstrap-responsive-tab-pills-to-navbar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272690045,"owners_count":24976906,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10-05T06:04:03.133Z","updated_at":"2026-02-11T23:08:13.386Z","avatar_url":"https://github.com/wellwind.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Responsive Bootstrap Tab / Pills To Navbar Demo\nA responsive demo for @twitter bootstrap, when device is lager then tablets, you will see Tab or Pills, when smaller you will see Navbar.\n\nTo see demo: http://wellwind.github.io/bootstrap-responsive-tab-pills-to-navbar.html\n\n## How To Use\n\n### Step1. Wrap a div with class name responsive-nav-tabs2bar/responsive-nav-pills2bar to navigation code\n```HTML\n\u003cdiv id=\"top_menu\" class=\"responsive-nav-tabs2bar\"\u003e\n  \u003cnav class=\"navbar navbar-default\" role=\"navigation\"\u003e\n    \u003cdiv class=\"container-fluid\"\u003e\n      \u003c!-- Brand and toggle get grouped for better mobile display --\u003e\n      \u003cdiv class=\"navbar-header\"\u003e\n        \u003cbutton type=\"button\" class=\"navbar-toggle collapsed\" data-toggle=\"collapse\" data-target=\"#bs-example-navbar-collapse-1\"\u003e\n          \u003cspan class=\"sr-only\"\u003eToggle navigation\u003c/span\u003e\n\t\t\t\t\t\u003cspan class=\"icon-bar\"\u003e\u003c/span\u003e\n\t\t\t\t\t\u003cspan class=\"icon-bar\"\u003e\u003c/span\u003e\n\t\t\t\t\t\u003cspan class=\"icon-bar\"\u003e\u003c/span\u003e\n\t\t\t\t\u003c/button\u003e\n\t\t\t\t\u003ca class=\"navbar-brand\" href=\"#\"\u003eMenu\u003c/a\u003e\n\t\t\t\u003c/div\u003e\n\n\t\t\t\u003c!-- Collect the nav links, forms, and other content for toggling --\u003e\n\t\t\t\u003cdiv class=\"collapse navbar-collapse\" id=\"bs-example-navbar-collapse-1\"\u003e\n\t\t\t  \u003cul id=\"top_menu_tabs\" class=\"nav navbar-nav\"\u003e\n\t\t\t\t\u003cli class=\"active\"\u003e\u003ca href=\"#\"\u003eLink 1\u003c/a\u003e\u003c/li\u003e\n\t\t\t\t\u003cli\u003e\u003ca href=\"#\"\u003eLink 2\u003c/a\u003e\u003c/li\u003e\n\t\t\t\t\u003cli\u003e\u003ca href=\"#\"\u003eLink 3\u003c/a\u003e\u003c/li\u003e\n\t\t\t \u003c/ul\u003e\n\t\t\t\u003c/div\u003e\u003c!-- /.navbar-collapse --\u003e\n\t\t\u003c/div\u003e\u003c!-- /.container-fluid --\u003e\n\t\u003c/nav\u003e\n\u003c/div\u003e\t  \n```\n\n### Step2. Add following javasciprt code\n\n```JavaScript\n  $(document).ready(function() {\n\n\tvar responsiveNavTabs2Bar = function() {\n\t\tif ($(window).width() \u003e= 768) {\n\t\t\t$('.responsive-nav-tabs2bar\u003enav.navbar').removeClass('navbar-default');\n\t\t\t$('.responsive-nav-tabs2bar\u003enav.navbar\u003e.container-fluid\u003e.navbar-header').hide();\n\t\t\t$('.responsive-nav-tabs2bar\u003enav.navbar\u003e.container-fluid\u003e.navbar-collapse\u003e.nav').removeClass('navbar-nav').addClass('nav-tabs');\n\t\t}\n\t\telse {\n\t\t\t$('.responsive-nav-tabs2bar\u003enav.navbar').addClass('navbar-default');\n\t\t\t$('.responsive-nav-tabs2bar\u003enav.navbar\u003e.container-fluid\u003e.navbar-header').show();\n\t\t\t$('.responsive-nav-tabs2bar\u003enav.navbar\u003e.container-fluid\u003e.navbar-collapse\u003e.nav').removeClass('nav-tabs').addClass('navbar-nav');\n\t\t}\n\t}\n\t\n\tvar responsiveNavPills2Bar = function() {\n\t\tif ($(window).width() \u003e= 768) {\n\t\t\t$('.responsive-nav-pills2bar\u003enav.navbar').removeClass('navbar-default');\n\t\t\t$('.responsive-nav-pills2bar\u003enav.navbar\u003e.container-fluid\u003e.navbar-header').hide();\n\t\t\t$('.responsive-nav-pills2bar\u003enav.navbar\u003e.container-fluid\u003e.navbar-collapse\u003e.nav').removeClass('navbar-nav').addClass('nav-pills');\n\t\t}\n\t\telse {\n\t\t\t$('.responsive-nav-pills2bar\u003enav.navbar').addClass('navbar-default');\n\t\t\t$('.responsive-nav-pills2bar\u003enav.navbar\u003e.container-fluid\u003e.navbar-header').show();\n\t\t\t$('.responsive-nav-pills2bar\u003enav.navbar\u003e.container-fluid\u003e.navbar-collapse\u003e.nav').removeClass('nav-pills').addClass('navbar-nav');\n\t\t}\n\t}\n\t\n \t$(window).resize(function() {\n\t\tresponsiveNavTabs2Bar();\n\t\tresponsiveNavPills2Bar();\n\t});\n\tresponsiveNavTabs2Bar();\n\tresponsiveNavPills2Bar();\n  });\n```\n\n### Step 3. Resize the browse and see it works!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwellwind%2Fbootstrap-responsive-tab-pills-to-navbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwellwind%2Fbootstrap-responsive-tab-pills-to-navbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwellwind%2Fbootstrap-responsive-tab-pills-to-navbar/lists"}