{"id":32251580,"url":"https://github.com/pencilpix/bs.push.nav","last_synced_at":"2026-02-19T09:05:25.409Z","repository":{"id":58240286,"uuid":"49891583","full_name":"pencilpix/bs.push.nav","owner":"pencilpix","description":"JQuery plugin depend on bootstrap navigation to convert it into a push menu for smaller devices","archived":false,"fork":false,"pushed_at":"2017-12-02T19:51:22.000Z","size":124,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-23T13:37:00.132Z","etag":null,"topics":["bootstrap","jquery"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/pencilpix.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":"2016-01-18T17:06:57.000Z","updated_at":"2021-09-14T10:36:46.000Z","dependencies_parsed_at":"2022-08-31T00:22:23.348Z","dependency_job_id":null,"html_url":"https://github.com/pencilpix/bs.push.nav","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/pencilpix/bs.push.nav","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pencilpix%2Fbs.push.nav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pencilpix%2Fbs.push.nav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pencilpix%2Fbs.push.nav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pencilpix%2Fbs.push.nav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pencilpix","download_url":"https://codeload.github.com/pencilpix/bs.push.nav/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pencilpix%2Fbs.push.nav/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29609524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["bootstrap","jquery"],"created_at":"2025-10-22T18:09:19.420Z","updated_at":"2026-02-19T09:05:25.403Z","avatar_url":"https://github.com/pencilpix.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"### bs.push.nav\nJQuery plugin depend on bootstrap navigation to convert it into a push/slide menu for small screen widths\n\n#### Dependancies\n  * jquery 2.X\n  * bootstrap 3.X\n\n#### Installation:\nyou can use bower to install bs.push.nav using the following command.\n\n```\n  $ bower install bs-push-nav --save\n```\n\nor manually via downloading repository of the plugin and attach the required files to make it work.\ninclude CSS just after bootstrap.css files at your `\u003chead\u003e`\n\n```\n  \u003clink rel=\"stylesheet\" href=\"dist/styles/jquery.bs.push.nav.min.css\"/\u003e\n```\n\nthen include JS file after jquery and bootstrap.js at the bottom of your `\u003cbody\u003e` or at you set you js files to be.\n\n```\n  \u003cscript src=\"dist/scripts/jquery.bs.push.nav.min.js\"\u003e\u003c/script\u003e\n```\n\nall html structure required is a button that trigger the menus you want to convert into push/slide at given breakpoint\n\n```\n  \u003cbutton type=\"button\" class=\"navbar-toggle\" data-toggle=\"bsPushNav\" data-target=\"#menu1 #menu2\" aria-expanded=\"false\"\u003e\n    \u003cspan class=\"sr-only\"\u003eToggle navigation\u003c/span\u003e\n    \u003cspan class=\"icon-bar\"\u003e\u003c/span\u003e\n    \u003cspan class=\"icon-bar\"\u003e\u003c/span\u003e\n    \u003cspan class=\"icon-bar\"\u003e\u003c/span\u003e\n  \u003c/button\u003e\n  \u003c!-- call the plugin --\u003e\n  \u003cscript\u003e\n    jQuery(document).ready(function($) {\n      $('.navbar-toggle').bsPushNav();\n    });\n  \u003c/script\u003e\n\n```\n\n#### Options\nbs.push.nav has many options that makes you control your menus\n```\n  \u003cscript\u003e\n    jQuery(document).ready(function($) {\n      var options = {\n        breakpoint: 768, // the breakpoint that determine the screen width to convert menus\n        typeClass: 'slide', // the default type menu is 'slide' you can set it to 'push'\n        targetsList: ['#menu1', '#menu2'], // or you can set it via data-target=\"#menu1 #menu2\"\n        direction: 'left' // the default direction, also you can set it to right\n      };\n\n      $('.navbar-toggle').bsPushNav(options);\n    });\n  \u003c/script\u003e\n```\n\n#### Events\n\nEvent           | Description                                                             \n--------------- | ------------------------------------------------------------------------\nmenuEnabled     | that event will be triggered when the window hit the breakpoint and when template is ready\nmenuDisabled    | when window is resized and break the breakpoint and the template reverted to origin\nbeforeShow      | triggered when the button is clicked just before the menu is shown\nshown           | triggered when the menu is shown\nbeforeHide      | triggered just before the menu is hidden\nhidden          | triggered after hiding the menu\n\nusing event:\n```\n  $(document).on('beforeShow', '.btn', function(e){\n    // do some stuff\n  });\n```\n\n#### Methods\n\nMethod           | Description                                                            \n---------------- | -----------------------------------------------------------------------\n'show'           | shows the menu\n'hide'           | hides the menu\n'destroy'        | destroy and dettach all events applied to the plugin instance\n\n#### Upcomming features\n  * support (RTL) for the menus.\n  * Enable required Events that should be triggered at each process.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpencilpix%2Fbs.push.nav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpencilpix%2Fbs.push.nav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpencilpix%2Fbs.push.nav/lists"}