{"id":15952327,"url":"https://github.com/try0/simple-timeline","last_synced_at":"2025-04-04T04:44:45.442Z","repository":{"id":144153874,"uuid":"458212401","full_name":"try0/simple-timeline","owner":"try0","description":"Simple timeline. js css勉強用","archived":false,"fork":false,"pushed_at":"2022-02-23T04:03:29.000Z","size":560,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T16:14:57.725Z","etag":null,"topics":["browser","history","javascript","js","schedule","timeline","web"],"latest_commit_sha":null,"homepage":"","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/try0.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-11T14:09:59.000Z","updated_at":"2023-05-01T02:35:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"59e4a988-aaf4-42b9-a712-dcca1fafb587","html_url":"https://github.com/try0/simple-timeline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/try0%2Fsimple-timeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/try0%2Fsimple-timeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/try0%2Fsimple-timeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/try0%2Fsimple-timeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/try0","download_url":"https://codeload.github.com/try0/simple-timeline/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247123099,"owners_count":20887259,"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","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":["browser","history","javascript","js","schedule","timeline","web"],"created_at":"2024-10-07T13:08:13.856Z","updated_at":"2025-04-04T04:44:45.420Z","avatar_url":"https://github.com/try0.png","language":"JavaScript","readme":"# simple-timeline\n\n\n[Example](https://try0.github.io/simple-timeline/example/index.html)\n\n![simple-timeline](https://user-images.githubusercontent.com/17096601/153722631-52e8e604-ab30-4383-a99f-073020a0a4cb.gif)\n\n\n\n\n\n```js\nconst stl = new SimpleTimeline(document.getElementById(\"timeline-container\"), {\n    option: {\n        progress: true,\n        currentLabel: \"Current\"\n    },\n    items: [\n        {\n            state: \"passed\",\n            date: \"2022-01-01\",\n            title: \"Passed item\",\n            content: \"Passed item\",\n        },\n        {\n            state: \"current\",\n            date: \"2022-01-02\",\n            title: \"Current item\",\n            content: \"Current item\",\n        },\n        {\n            state: \"schedule\",\n            date: \"2022-01-03\",\n            title: \"Schedule item\",\n            content: \"Schedule item\",\n        },\n    ]\n});\n```\n\n\n\n```js\nSimpleTimeline.setGlobalOption({\n// your global options\n});\n```\n\n|  Option  |    |\n| ---- | ---- |\n|  progress  |  ステータスを考慮して、ラインを描画する  |\n|  progressInverted  |  ラインの進行状況を逆にする  |\n|  autoProgress  |  現在日時と比較してラインを描画する  |\n|  dateFormatter  |  日付フォーマッター  |\n|  currentLabel  |  現在のアイテムを強調するラベル文字列  |\n|  header  |  ヘッダー\u003cbr\u003e{ label: \"Header\" } |\n|  footer  |  フッター\u003cbr\u003e{ label: \"Footer\" } |\n\n[Example](https://github.com/try0/simple-timeline/blob/main/example/index.html)\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftry0%2Fsimple-timeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftry0%2Fsimple-timeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftry0%2Fsimple-timeline/lists"}