{"id":21557725,"url":"https://github.com/danielrohers/countdown","last_synced_at":"2025-10-05T14:52:37.339Z","repository":{"id":151566907,"uuid":"102389061","full_name":"danielrohers/countdown","owner":"danielrohers","description":"Simple countdown","archived":false,"fork":false,"pushed_at":"2017-09-04T18:29:11.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-13T19:39:58.331Z","etag":null,"topics":["countdown","javascript"],"latest_commit_sha":null,"homepage":"https://danielrohers.com/countdown/","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/danielrohers.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":"2017-09-04T18:10:18.000Z","updated_at":"2017-09-04T18:25:04.000Z","dependencies_parsed_at":"2023-07-12T02:16:24.880Z","dependency_job_id":null,"html_url":"https://github.com/danielrohers/countdown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danielrohers/countdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrohers%2Fcountdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrohers%2Fcountdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrohers%2Fcountdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrohers%2Fcountdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielrohers","download_url":"https://codeload.github.com/danielrohers/countdown/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrohers%2Fcountdown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278470181,"owners_count":25992203,"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-10-05T02:00:06.059Z","response_time":54,"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":["countdown","javascript"],"created_at":"2024-11-24T08:13:00.608Z","updated_at":"2025-10-05T14:52:37.320Z","avatar_url":"https://github.com/danielrohers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# countdown\n\nSimple countdown\n\n```js\n  var date = new Date();\n  date.setMonth(date.getMonth() + 1);\n\n  // start countdown with end time\n  var countdown = new Countdown(date.getTime());\n  \n  // populate template DOM with ids: day, hour, minute, second, clock\n  countdown.populate();\n  \n  // callback executed at each iteration\n  countdown.time(function (days, hours, minutes, seconds) {\n    ...\n  });\n  \n  // callback executed at the end of countdown\n  countdown.done = function () {\n    ...\n  };\n```\n\nExample template:\n```html\n  \u003cdiv id=\"clock\"\u003e\n      \u003cspan id=\"day\"\u003e\u003c/span\u003e\n      \u003cspan id=\"hour\"\u003e\u003c/span\u003e\n      \u003cspan id=\"minute\"\u003e\u003c/span\u003e\n      \u003cspan id=\"second\"\u003e\u003c/span\u003e\n  \u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielrohers%2Fcountdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielrohers%2Fcountdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielrohers%2Fcountdown/lists"}