A progressive web app (PWA) calculator that works online and offline, providing a fast, responsive, and feature-rich calculator experience. Built with HTML, CSS, and JavaScript, it includes basic & advanced operations, theme support, and a mobile-first design.
⚠️ This project is primarily a frontend demonstration and does not store user data.
- 0️⃣ Basic arithmetic operations (+, -, ×, ÷)
- 🧮 Advanced functions (%, √, x², 1/x)
- 🖤 Light & Dark theme toggle
- 📱 Mobile-first responsive design
- 🖥️ Desktop-friendly layout
- 💾 Offline-ready as a PWA
- 🎨 Clean, modern UI
- 🧹 Well-structured, readable code
- Open the app in your browser
- Click or tap the buttons to input numbers and operations
- Press = to get results
- Use the theme toggle for light/dark mode
- Uses Vanilla JavaScript for all calculations
- Handles input, operations, and result display dynamically
- Registers as a Progressive Web App to support offline usage
- Uses localStorage to optionally remember user settings (theme, last calculation)
- HTML5 – Semantic structure
- CSS3 – Responsive UI, themes, animations
- JavaScript (Vanilla) – Calculator logic, event handling
- PWA Features – Service worker & manifest for offline support
smart-calculator-pwa/
│── index.html
│── style.css
│── app.js
│── manifest.json
│── service-worker.js
│── assets/
│ └── sounds/
│ └── icons/
└── README.md
In app.js:
const CONFIG = {
defaultTheme: "light" // options: "light" or "dark"
};Service worker is pre-configured in service-worker.js to cache assets automatically.
✅ Chrome (Desktop & Android)
✅ Edge
✅ Firefox
Best experience on Chrome or Edge
- 🧠 Scientific calculator functions
- 🔢 History of calculations
- 🎨 Customizable themes
- 🌗 Dark mode toggle saved in localStorage
- 📱 Swipe gestures for input
- ⚛️ React / Next.js version
MIT License
Feel free to use, modify, and learn from this project.
| Platform | Link |
|---|---|
| https://twitter.com/einzigartigetec/ | |
| https://www.facebook.com/einzigartige/ | |
| https://www.linkedin.com/company/einzigartige/ | |
| YouTube | https://www.youtube.com/@einzigartige_/ |
| Website | http://einzigartige.in/ |
👉 Subscribe here: https://www.youtube.com/@einzigartige_/
Einzigartige - Web & App Development Company
Website: http://einzigartige.in/
⭐ If you like this project, consider giving it a star!