{"id":29822896,"url":"https://github.com/ctxhou/onepage","last_synced_at":"2025-07-29T01:12:14.908Z","repository":{"id":23242099,"uuid":"26599831","full_name":"ctxhou/onepage","owner":"ctxhou","description":"Simple way to create onepage website.","archived":false,"fork":false,"pushed_at":"2014-11-23T09:17:52.000Z","size":284,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-04T07:40:36.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ctxhou.github.io/onepage","language":"CSS","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/ctxhou.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-11-13T17:44:23.000Z","updated_at":"2018-01-23T20:23:05.000Z","dependencies_parsed_at":"2022-08-21T14:40:24.656Z","dependency_job_id":null,"html_url":"https://github.com/ctxhou/onepage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ctxhou/onepage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctxhou%2Fonepage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctxhou%2Fonepage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctxhou%2Fonepage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctxhou%2Fonepage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctxhou","download_url":"https://codeload.github.com/ctxhou/onepage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctxhou%2Fonepage/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267613865,"owners_count":24115702,"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-07-28T02:00:09.689Z","response_time":68,"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":"2025-07-29T01:12:09.841Z","updated_at":"2025-07-29T01:12:14.900Z","avatar_url":"https://github.com/ctxhou.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# onepage\n\nSimple way to create onepage website.\n\n## Usage\n\n### Including files: \n\n```html\n\u003clink rel=\"stylesheet\" href=\"onepage.css\"\u003e\n\u003cscript src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"vendors/jquery.scrollTo.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"js/jquery.onepage.js\"\u003e\u003c/script\u003e\n```\n\n### HTML structure\n\n**Set one content in each page view**\n\n```html\n\u003cdiv class=\"onepage-wrapper\" id=\"onepage-wrapper\"\u003e\n    \u003cdiv id=\"onepage\"\u003e\n        \u003csection class=\"page_view\" id=\"first\"\u003e\u003ch1\u003eFirst View\u003c/h1\u003e\u003c/section\u003e\n        \u003csection class=\"page_view\" id=\"second\"\u003e\u003ch1\u003eSecond View\u003c/h1\u003e\u003c/section\u003e\n        \u003csection class=\"page_view\" id=\"third\"\u003e\u003ch1\u003eThird View\u003c/h1\u003e\u003c/section\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n```\n**Set multi content in some page views**\n\ninsert `page_content` class in page_view\n\n```html\n\u003cdiv class=\"onepage-wrapper\" id=\"onepage-wrapper\"\u003e\n    \u003cdiv id=\"onepage\"\u003e\n        \u003csection class=\"page_view\" id=\"first\"\u003e\u003ch1\u003eFirst View\u003c/h1\u003e\u003c/section\u003e\n        \u003csection class=\"page_view\" id=\"second\"\u003e\n            \u003cdiv class=\"page_content\"\u003e\n                \u003ch1\u003esecond view first content\u003c/h1\u003e\n            \u003c/div\u003e\n            \u003cdiv class=\"page_content\"\u003e\n                \u003ch1\u003esecond view second content\u003c/h1\u003e\n            \u003c/div\u003e\n        \u003c/section\u003e\n        \u003csection class=\"page_view\" id=\"third\"\u003e\u003ch1\u003eThird View\u003c/h1\u003e\u003c/section\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n```\n\n**Set the header anchor link**\n\n```html\n\u003ca href=\"#first\" class=\"header-choice-link\"\u003echoice1\u003c/a\u003e\n\u003ca href=\"#second\" class=\"header-choice-link\"\u003echoice2\u003c/a\u003e\n\u003ca href=\"#third\" class=\"header-choice-link\"\u003echoice3\u003c/a\u003e\n```\n\n\n### Initialization\nDefault Initialization:\n\n```javascript\n$(\"#onepage\").onepage();\n```\nAlter options:\n\n```javascript\n$(\"#onepage\").onepage({\n    'resize': true,\n    'navLink': '.header-choice-link',\n    'sectionSelector': '.page_view',\n    'bg_color': '[\"yellow\", \"blue\"]'\n});\n```\n\n\n### Options\n\n| Options         | value       | default             | explain                                   |example|\n|-----------------|--------------|---------------------|--------------------------------------------|--------------------------------------------|\n| resize          | true / false | true                | true: page_view is full height; vice versa ||\n| navLink         | class name   | .header-choice-link | customize your header link class           ||\n| sectionSelector | class name   | .page_view          | customize your section view class          ||\n| bkg_color | [section color]   | [ ]         | customize your section color         |[[\"#aaa\",\"blue\"], \"tomato\"]|\n\n\n## Develop\n### Environment\n\nFirst, install the needed ruby gem\n    \n    bundle install\n\n### Compile css file\n\n    compass watch\n\n    \n#License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctxhou%2Fonepage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctxhou%2Fonepage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctxhou%2Fonepage/lists"}