A simple web app to help track beer consumption using a cooldown timer.
- Click the "Beer Button" to start a cooldown timer
- Configurable cooldown duration (30 minutes to 3 hours, default: 1 hour)
- Countdown timer displays remaining time
- Cooldown state persists across page refreshes (using localStorage)
- Modern, clean UI with visual feedback
- Progressive Web App (PWA) - can be installed on Android home screen
Since PWAs require HTTP/HTTPS (not file://), you need to run a local web server on your Android device. Here are the easiest options:
- Install "Simple HTTP Server" or "HTTP Server" from Google Play Store
- Copy the
beercdfolder to your phone (via USB, cloud storage, etc.) - Open the app and select the
beercdfolder - Start the server (usually shows an IP like
http://192.168.x.x:8080) - Open that URL in Chrome on your phone
- Install the app to home screen when prompted
- Install Termux from F-Droid or Play Store
- Copy the
beercdfolder to your phone - Open Termux and run:
cd /path/to/beercd python3 -m http.server 8080 - Open
http://localhost:8080in Chrome - Install the app to home screen
- Upload to GitHub Pages, Netlify, or Vercel (all free)
- Access from your phone's browser
- Install as PWA from the hosted URL
- Open the app in your browser (or install as PWA)
- Select your desired cooldown duration
- Click the "Beer Button" to start the cooldown
- Wait for the countdown to complete before having another beer!
index.html- Main HTML structurestyle.css- Styling and layoutscript.js- Cooldown logic and timer functionalitymanifest.json- PWA manifest for Android installationservice-worker.js- Service worker for offline functionalityicons/- App icons for home screen
When you click the beer button, a cooldown period starts. The timer counts down in real-time, and the button is disabled until the cooldown completes. The cooldown state is saved to your browser's localStorage, so it persists even if you close the page or the app is backgrounded.