Educational Progressive Web App (PWA) to teach children how to read an analog clock. Features Norwegian language interface with interactive practice and quiz modes.
- 🕐 Interactive Analog Clock - Drag the clock hands to set time (desktop & touch devices)
- 📝 Norwegian Time Descriptions - Live text shows time in Norwegian (e.g., "tyve minutter over tre")
- 🎯 Quiz Mode - Test knowledge with randomized questions using 24-hour format
- 📊 Score Tracking - Earn points for correct answers
- 🎨 Child-Friendly Design - Colorful and easy to use
- 📱 Works Offline - Install as PWA and use without internet
- 🌐 Cross-Platform - Works on desktop, tablet, and mobile devices
- Install dependencies:
npm install- Run the development server:
npm startThe app will automatically open at http://localhost:3000
- Drag the hour hand (short) and minute hand (long) to practice setting different times
- Works with both mouse and touch gestures
- The digital time and Norwegian description update in real-time
- Examples: "Klokka er tolv", "Kvart over fire", "Halv tre", "tyve minutter over åtte"
- The clock shows a random time with AM/PM indicator
- Select the correct hour (24-hour format: 0-23) and minute from the dropdowns
- Times appear in 5-minute intervals (00, 05, 10, 15, etc.)
- Click "Sjekk Svar" to check if you're right
- Earn 10 points for each correct answer!
When you open the app in a modern browser (Chrome, Edge, Safari), you'll see an install prompt. Click it to:
- Add the app to your home screen (mobile)
- Install as a desktop app (desktop)
- Use offline without internet connection
Note: For full PWA functionality, create icons following ICON-INSTRUCTIONS.md
- Push your code to GitHub
- Go to repository Settings > Pages
- Select branch:
main, folder:/ (root) - Wait 1-2 minutes for deployment
- Access at
https://yourusername.github.io/your-repo-name/
- Drag and drop the project folder to Netlify Drop
- Or connect your GitHub repository for automatic deployments
npx vercelUpload all files to any static web hosting with HTTPS support (required for service workers).
- Vanilla HTML/CSS/JavaScript (no frameworks)
- Progressive Web App (PWA) with service worker
- Norwegian language UI
- Responsive design for all devices
- Touch-optimized for tablets and mobile
- ✅ Chrome/Edge (desktop & mobile)
- ✅ Firefox (desktop & mobile)
- ✅ Safari (desktop & iOS)
- ✅ Any modern browser with PWA support
For full PWA functionality, create two icon files. See ICON-INSTRUCTIONS.md for detailed guide:
icon-192.png- 192x192 pixelsicon-512.png- 512x512 pixels
The app works without icons but needs them for installation prompts.
Contributions are welcome! Feel free to:
- Report bugs or issues
- Suggest new features
- Submit pull requests
- Improve documentation
- Translate to other languages
This project is licensed under the MIT License - see the LICENSE file for details.
Built with vanilla JavaScript for maximum compatibility and performance. Norwegian language implementation for educational purposes.