Welcome to WorldTimeZone, a minimal and responsive world clock app built in vanilla HTML/CSS/JS.
It allows users to browse timezones, view live clocks, and switch between themes β all with smooth UI interactions.
- π Real-Time Clock β Displays the current time and date for a selected city
- π 18+ Timezones β Easily switch between major global timezones
- π Emoji Flags β Country flags with city names for better clarity
- π Theme Switcher β Toggle between light and dark themes (with emoji buttons)
- π± Responsive Design β Mobile-friendly and sleek layout
- β‘ Pure Frontend β No frameworks, no libraries β 100% vanilla JS
- HTML5 β Semantic layout structure
- CSS3 β Flexbox, transitions, dark/light mode
- JavaScript (ES6) β Timezone switching, DOM interaction, real-time updates
- Google Fonts β IBM Plex Mono
WorldTimeZone/
β
βββ index.html β Main HTML structure
βββ style.css β All styling and themes
βββ script.js β Clock logic, city menu, theme switching
βββ favicon.ico β Page favicon
git clone https://github.com/NotElyoo/WorldTimeZone.git
cd WorldTimeZoneJust open index.html with your favorite browser:
open index.htmlβ No build step or dependencies required.
- When the page loads, it defaults to Paris (GMT+1).
- You can open the dropdown to select a city β the time updates instantly.
- Theme icons (π/π) let you toggle between light/dark modes.
- The clock updates every second using
setInterval()and adjusts according to the selected timezone viaIntl.DateTimeFormat.
A live version will be available soon (or feel free to host it yourself via GitHub Pages!)
Feel free to fork the project, suggest improvements or create pull requests!
git checkout -b feature/your-feature
git commit -m "Add your feature"
git push origin feature/your-featureThis project is licensed under custom terms written by the author:
- β You are free to view, use, and modify the code for non-commercial purposes.
- β Attribution is required β please credit the author by name or link.
- β Commercial use of this code is not permitted without explicit permission.
Please refer to the LICENSE file for full details.
π§ Email: contact@miyeon.fr
π¦ Twitter: @NotElyoo
β
Add analog clock mode
β
Add option to save preferred city in localStorage
β
Support more cities / timezones
β
Localized language support (FR/EN)
β
Animations on theme change