{"id":20815876,"url":"https://github.com/aurbano/html-clock","last_synced_at":"2026-05-04T23:38:47.635Z","repository":{"id":21996603,"uuid":"25321646","full_name":"aurbano/HTML-Clock","owner":"aurbano","description":":watch: Clock made with HTML5+CSS3+JS","archived":false,"fork":false,"pushed_at":"2019-12-11T17:02:11.000Z","size":527,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T15:51:28.313Z","etag":null,"topics":["clock","css","html-clock","javascript"],"latest_commit_sha":null,"homepage":"https://aurbano.github.io/HTML-Clock/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aurbano.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":"2014-10-16T21:02:56.000Z","updated_at":"2023-03-08T04:57:01.000Z","dependencies_parsed_at":"2022-08-20T04:21:47.536Z","dependency_job_id":null,"html_url":"https://github.com/aurbano/HTML-Clock","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/aurbano%2FHTML-Clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurbano%2FHTML-Clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurbano%2FHTML-Clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurbano%2FHTML-Clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aurbano","download_url":"https://codeload.github.com/aurbano/HTML-Clock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243163403,"owners_count":20246519,"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":["clock","css","html-clock","javascript"],"created_at":"2024-11-17T21:26:41.546Z","updated_at":"2026-05-04T23:38:42.604Z","avatar_url":"https://github.com/aurbano.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#HTML Clock\n\n\u003e Display an HTML rendered functioning clock. Probably useless, but it was interesting to code.\n\n![HTML Clock](http://urbanoalvarez.es/HTML-Clock/misc/html-clock.gif)\n\n##Installation\nDownload the source code and include the files in the `src` folder (css and js). You can obviously customize the css to your needs.\n\nIt requires jQuery to work, so make sure it's included before the `html-clock.js` script.\n\n##Usage\nAdd the following HTML, the `.clock` container is optional, you can have the clock occupy the full screen if you want.\n\n```html\n\u003cdiv class=\"clock\"\u003e\n  \u003cdiv class=\"htmlClock\" id=\"clock1\"\u003e\n    \u003cdiv class=\"htmlClock-visor\"\u003e\u003c/div\u003e\n    \u003cdiv class=\"htmlClock-view hourView\"\u003e\u003c/div\u003e\n    \u003cdiv class=\"htmlClock-view minuteView\"\u003e\u003c/div\u003e\n    \u003cdiv class=\"htmlClock-view secondView\"\u003e\u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\nNow add the following script:\n\n```javascript\n$(document).ready(function(){\n  var clock = new HTMLClock();\n\n  clock.init({\n    container: $('#clock1')\n  });\n});\n```\n\n##Settings\nThe `init` method takes one argument that is the settings used. You can set the following:\n\n| Parameter   |      Values      |  Description |\n|-------------|------------------|--------------|\n| container   | `$('#element')`    | jQuery element where the clock should appear |\n\n##Roadmap\nThe HTML clock is in a very early version, I have only spent a couple of hours on it so far, so lots of improvements need to be made. Feel free to create an issue if you spot anything that could be improved.\n\nFuture development:\n* Adjustable size: Probably with a setting that will multiply all the sizes.\n* Themes: Add a couple of css files that will change the appearance of the clock.\n* Responsive: Similar to the adjustable size, but adapting to the container. It kind of works already, except for the fonts.\n\n##License\nThe HTML Clock is released under the GNU GPLv2 License.\n\n[![Analytics](https://ga-beacon.appspot.com/UA-3181088-16/HTML-Clock/readme)](https://github.com/aurbano)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faurbano%2Fhtml-clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faurbano%2Fhtml-clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faurbano%2Fhtml-clock/lists"}