No description
- HTML 57.1%
- JavaScript 30.4%
- Shell 12.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| images | ||
| .gitignore | ||
| deploy.sh | ||
| favicon.ico | ||
| index.html | ||
| manifest.json | ||
| README.md | ||
| service-worker.js | ||
Tap Counter
A simple Progressive Web App (PWA) with a blue background that responds to user taps by flashing green and incrementing a counter. Works offline after installation.
Features
- Installable PWA — Add to home screen on iOS and Android
- Offline Support — Works without internet connectivity after first load
- Tap Counter — Counts and displays the number of taps with green flash feedback
- Optimized for Mobile — iOS Safari toolbar matches the blue background theme
- Responsive Icons — Multiple icon sizes for different devices
Installation
On iOS
- Open this website in Safari
- Tap the Share button
- Tap "Add to Home Screen"
- Confirm the name and tap "Add"
On Android
- Open this website in Chrome
- Tap the menu button (⋮)
- Tap "Install app"
- Confirm installation
How to Use
- Open the app (or visit the website)
- Tap anywhere on the screen
- The screen flashes green and the counter increments
- Turn off internet connectivity to verify offline functionality
Project Structure
├── index.html # Main HTML file with tap counter logic
├── service-worker.js # Service worker for offline caching
├── manifest.json # PWA manifest with app metadata
├── favicon.ico # Favicon
└── images/ # Icon assets in various sizes
├── tap-icon-128.png
├── tap-icon-192.png
├── tap-icon-256.png
└── tap-icon-512.png
Technical Details
- Service Worker — Caches all assets on first visit for offline support
- Web App Manifest — Defines app name, display mode, theme colors, and icons
- Meta Tags — iOS-specific configuration for home screen appearance
- Touch Events — Optimized touch handling for mobile browsers
Browser Support
- iOS Safari 11+
- Chrome/Android 39+
- Firefox 50+
- Edge 17+
Development
To modify or extend this project, edit the relevant files and test in your target browser. The service worker will need to be cleared for changes to take effect on already-installed apps.