# WorkClock - Salary Calculator ## Project Overview WorkClock is a free online salary calculator designed for office workers. It helps track earnings in real-time, calculate salary per second/minute/hour/day/month/year, and provides work countdown timers. ## Core Features - Real-time salary calculation with live earnings display - Work countdown timer (countdown to work/off) - Monthly calendar view with work day indicators - Chinese statutory holidays support - Multi-language support (English, Chinese) - Data export (CSV, Excel) - Settings import/export - Dark mode and light mode - PWA support for offline use - Responsive design for mobile and desktop ## Pages - index.html: Main salary calculator page - about.html: About WorkClock - privacy.html: Privacy Policy - terms.html: Terms of Service - contact.html: Contact Information ## Technical Stack - HTML5, CSS3, JavaScript (Vanilla JS) - No frameworks or build tools required - LocalStorage for data persistence - Google AdSense for monetization - PWA with Service Worker ## Key Files - js/i18n.js: Multi-language system - js/holidays.js: Chinese statutory holidays data - js/salary.js: Salary calculation engine - js/export.js: Data export functionality - js/chart.js: Chart rendering - js/app.js: Main application logic - css/style.css: All styles with dark mode support ## Usage 1. Open index.html in a browser 2. Click settings to configure monthly salary 3. Set work times and entry date 4. View real-time earnings and countdown 5. Export data as needed ## Privacy All data is stored locally in browser localStorage. No personal information is collected or sent to servers. ## Monetization The project uses Google AdSense for revenue. Ad slots are positioned at: - Top banner - Left sidebar - Right sidebar - Bottom banner ## PWA Features - Can be installed on desktop and mobile - Works offline - Has app icon and manifest ## Browser Compatibility - Chrome 90+ - Firefox 88+ - Safari 14+ - Edge 90+