{"id":24082183,"url":"https://github.com/levidurfee/mobile-nav","last_synced_at":"2026-03-04T10:32:02.911Z","repository":{"id":100064392,"uuid":"41548997","full_name":"levidurfee/mobile-nav","owner":"levidurfee","description":"User friendly mobile navigation for displaying parent pages as a child.","archived":false,"fork":false,"pushed_at":"2015-09-10T22:23:07.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T00:50:18.550Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/levidurfee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-28T13:34:37.000Z","updated_at":"2015-08-28T13:41:05.000Z","dependencies_parsed_at":"2023-03-05T16:45:20.422Z","dependency_job_id":null,"html_url":"https://github.com/levidurfee/mobile-nav","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/levidurfee/mobile-nav","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levidurfee%2Fmobile-nav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levidurfee%2Fmobile-nav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levidurfee%2Fmobile-nav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levidurfee%2Fmobile-nav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levidurfee","download_url":"https://codeload.github.com/levidurfee/mobile-nav/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levidurfee%2Fmobile-nav/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30078308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T08:01:56.766Z","status":"ssl_error","status_checked_at":"2026-03-04T08:00:42.919Z","response_time":59,"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":[],"created_at":"2025-01-09T23:45:44.628Z","updated_at":"2026-03-04T10:32:02.893Z","avatar_url":"https://github.com/levidurfee.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mobile-nav\n\nUser friendly mobile navigation for displaying parent pages as a child.\n\nIf you use a CMS that generates the navigation for you, and you need the parent page in the child ul, this will **definitely** help.\n\n## demo\n\n[click here for the demo](https://cdn.ween.io/j/demo.html).\n\n## usage\n\nThe main ul has to have a class of `navigation`.\n\nThe top level li's need to have a class of `level-1`.\n\nThe above mentioned can be altered in the [nav.js](https://github.com/levidurfee/mobile-nav/blob/master/nav.js) file.\n\n## example html\n\n### script src\n\n```html\n\u003cscript src=\"https://cdn.ween.io/j/nav.min.js\"\u003e\u003c/script\u003e\n```\n\n### nav block\n\n```html\n\u003cnav\u003e\n\t\u003cul class=\"navigation\"\u003e\n\t\t\u003cli class=\"level-1 first\"\u003e\u003ca href=\"http://www.example.com/about-us/\"\u003eAbout Us\u003c/a\u003e\n\t\t\u003cul\u003e\n\t\t\t\u003cli class=\"level-2 first\"\u003e\u003ca href=\"http://www.example.com/about-us/our-team/\"\u003eOur Team\u003c/a\u003e\u003c/li\u003e\n\t\t\t\u003cli class=\"level-2 last\"\u003e\u003ca href=\"http://www.example.com/about-us/faq/\"\u003eFAQs\u003c/a\u003e\u003c/li\u003e\n\t\t\u003c/ul\u003e\n\t\t\u003c/li\u003e\n\t\t\u003cli class=\"level-1\"\u003e\u003ca href=\"http://www.example.com/our-services/\"\u003eOur Services\u003c/a\u003e\n\t\t\u003cul\u003e\n\t\t\t\u003cli class=\"level-2 first\"\u003e\u003ca href=\"http://www.example.com/our-services/service-areas/\"\u003eService Areas\u003c/a\u003e\u003c/li\u003e\n\t\t\t\u003cli class=\"level-2\"\u003e\u003ca href=\"http://www.example.com/our-services/testimonials/\"\u003eTestimonials\u003c/a\u003e\u003c/li\u003e\n\t\t\t\u003cli class=\"level-2 last\"\u003e\u003ca href=\"http://www.example.com/our-services/before-afters/\"\u003eBefore \u0026amp; Afters\u003c/a\u003e\u003c/li\u003e\n\t\t\u003c/ul\u003e\n\t\t\u003c/li\u003e\n\t\t\u003cli class=\"level-1\"\u003e\u003ca href=\"http://www.example.com/employment/\"\u003eEmployment\u003c/a\u003e\n\t\t\u003cul\u003e\n\t\t\t\u003cli class=\"level-2 first\"\u003e\u003ca href=\"http://www.example.com/employment/working-for-us/\"\u003eWorking For Us\u003c/a\u003e\u003c/li\u003e\n\t\t\t\u003cli class=\"level-2\"\u003e\u003ca href=\"http://www.example.com/employment/opportunities/\"\u003eOpportunities\u003c/a\u003e\u003c/li\u003e\n\t\t\t\u003cli class=\"level-2 last\"\u003e\u003ca href=\"http://www.example.com/employment/application/\"\u003eApplication\u003c/a\u003e\u003c/li\u003e\n\t\t\u003c/ul\u003e\n\t\t\u003c/li\u003e\n\t\t\u003cli class=\"level-1 last\"\u003e\u003ca href=\"http://www.example.com/contact-us/\"\u003eContact Us\u003c/a\u003e\n\t\t\u003cul\u003e\n\t\t\t\u003cli class=\"level-2 first last\"\u003e\u003ca href=\"http://www.example.com/contact-us/contact-locations/\"\u003eContact \u0026amp; Locations\u003c/a\u003e\u003c/li\u003e\n\t\t\u003c/ul\u003e\n\t\t\u003c/li\u003e\n\t\u003c/ul\u003e\n\u003c/nav\u003e\n```\n\n## example js\n\n```js\n$(document).ready(function() {\n    $('.navigation \u003e li \u003e a').each( function(){\n        var $this = $(this);\n        $newLI = $('\u003cli\u003e').append( $this.clone() );\n        $newLI.insertBefore(    $this.next('ul').find('.first') );\n    });\n    \n    $(\"ul li ul\").hide();\n    \n    $(\".level-1\").click(function(event) {\n        $(\"ul li ul\").hide();\n        $(this).children(\"li ul\").toggle();     \n    });\n    \n    $(\".level-1 \u003e a\").click(function(event) {\n        event.preventDefault(); \n    });\n});\n```\n\nView the demo on [jsfiddle](http://jsfiddle.net/levidurfee/bmms2vvu/1/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevidurfee%2Fmobile-nav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevidurfee%2Fmobile-nav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevidurfee%2Fmobile-nav/lists"}