A simple world clock web app that shows the current time across different countries / time zones.
- Displays country name + flag
- Shows corresponding time zone
- Updates times live (real-time)
- Clean, minimal UI
- When the page loads, it fetches the current time for each configured country / timezone.
- It displays the country name, flag icon, and the current offset (e.g.
UTC +5:30). - The UI automatically updates so the clocks remain accurate.
/
βββ index.html
βββ css/
β βββstyle.css
βββ js/
β βββscript.js
βββ img/
β βββ β icons
β
βββ README.md
- index.html β Main HTML file that holds the structure of the world clock view
- style.css β Styles for layout, flags, typography
- script.js β Logic to compute and update time displays
- assets/flags β Country flags / icons
- Clone or download the repo
git clone https://github.com/suyxcode/world-clock.git
- Open
index.htmlin a browser - The clocks should display current times automatically
- HTML
- CSS
- JavaScript
-
To add a new country / timezone:
- In
js/script.js, include its timezone offset and display logic - Add corresponding HTML markup or dynamically generate
- Custom styling: modify
style.css
- In
π€ Suyash Singh
π Github
πΌ Linkedin
π Portfolio
