{"id":24875533,"url":"https://github.com/simplecyber/digital-watch","last_synced_at":"2026-01-06T09:06:51.019Z","repository":{"id":273742039,"uuid":"920731325","full_name":"SimpleCyber/Digital-Watch","owner":"SimpleCyber","description":"The watch updates in real-time, providing an elegant visual experience.","archived":false,"fork":false,"pushed_at":"2025-02-11T19:44:15.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T20:33:27.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://simplecyber.github.io/Digital-Watch/","language":"HTML","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/SimpleCyber.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":"2025-01-22T17:16:48.000Z","updated_at":"2025-02-11T19:44:18.000Z","dependencies_parsed_at":"2025-01-22T18:37:05.999Z","dependency_job_id":null,"html_url":"https://github.com/SimpleCyber/Digital-Watch","commit_stats":null,"previous_names":["simplecyber/digital-watch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimpleCyber%2FDigital-Watch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimpleCyber%2FDigital-Watch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimpleCyber%2FDigital-Watch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimpleCyber%2FDigital-Watch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimpleCyber","download_url":"https://codeload.github.com/SimpleCyber/Digital-Watch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245772983,"owners_count":20669718,"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":[],"created_at":"2025-02-01T08:17:07.829Z","updated_at":"2026-01-06T09:06:50.992Z","avatar_url":"https://github.com/SimpleCyber.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Digital Watch\n\n## Summary\nThis project is a **digital watch** implemented in pure HTML, CSS, and JavaScript. It dynamically displays the current date, hours, minutes, and seconds, styled with a sleek and modern design. The watch updates in real-time, providing an elegant visual experience.\n\n---\n\n## Features\n- Real-time **digital clock** showing:\n  - Current hour, minute, and second.\n  - Current date in `DD/MM/YYYY` format.\n- Modern and minimal **UI design** with:\n  - Dark theme.\n  - A dash-bordered container.\n  - Color-coded elements for clear distinction.\n- Fully responsive layout using CSS Flexbox.\n\n---\n\n## Folder Structure\n```\nproject-folder\n├── index.html  # Main HTML file\n└── styles.css  # Inline CSS for styling (integrated into the HTML)\n```\n\n---\n\n## Setup and Usage\n1. Download or clone the repository.\n2. Open the `index.html` file in any modern web browser.\n3. The digital watch will automatically display the current date and time.\n\n---\n\n## How It Works\n1. **HTML Structure:**\n   - A container (`.main`) holds the watch components.\n   - Three boxes (`.box`) represent hours, minutes, and seconds.\n   - A date element displays the current date.\n\n2. **CSS Styling:**\n   - Dark-themed design with accent colors like `tomato` for the date.\n   - Flexbox used for layout alignment and spacing.\n   - Fonts set to `cursive` for an aesthetic feel.\n\n3. **JavaScript Logic:**\n   - The `time()` function:\n     - Fetches the current time and date using the `Date` object.\n     - Dynamically updates the content of corresponding elements (`#hour`, `#minute`, `#second`, `#date`).\n     - Recalls itself every 500ms for real-time updates.\n\n---\n\n## Future Enhancements\n- Add options for changing themes (light/dark mode).\n- Enable user-selected time formats (12-hour or 24-hour).\n- Implement a stopwatch or countdown timer.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplecyber%2Fdigital-watch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplecyber%2Fdigital-watch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplecyber%2Fdigital-watch/lists"}