Skip to content

Repository files navigation

CalcHub - All-in-One Calculator

CalcHub Logo

GitHub starsGitHub forksLicense

🚀 Overview

Calculator Hub is a comprehensive web-based calculator application featuring 12 different calculator modes in a single, beautifully designed interface. Built with vanilla JavaScript, PHP, and modern CSS, it offers both functionality and aesthetics.

✨ Features

🎯 12 Calculator Modes

ModeDescription
🧮 NormalBasic arithmetic operations with keyboard support
🔬 ScientificAdvanced functions (sin, cos, tan, log, ln, sqrt, power, factorial, π, e)
💱 CurrencyReal-time currency conversion with names & codes
🌤️ WeatherTemperature, humidity, wind data for any location
🎂 AgeCalculate age in years, months, days, hours, minutes
📊 PercentageCalculate percentages, increases, decreases, ratios
📏 Unit ConverterLength, weight, temperature, volume conversions
💻 ProgrammingNumber base conversions (dec, bin, oct, hex)
📅 Date CalculatorDays between dates, future/past date calculations
📈 StatisticsMean, median, mode, standard deviation calculations
🎨 Color CodeConvert between HEX, RGB, HSL and preview colors
🛣️ Distance & SpeedDistance and speed unit conversion with travel time
🎨 ColorConvert between RGB, HEX, and HSL color codes
🚗 DistanceCalculate distances, speeds, and travel times

🎨 Design Highlights

  • Responsive Design - Mobile-first approach with flexible layouts
  • Animated UI - Smooth transitions and button press effects
  • Multiple Themes - Light, Dark, Neon, Nature, Ocean themes
  • Modern Interface - Clean, intuitive sidebar navigation
  • Live Calculation - Real-time expression evaluation
  • History Tracking - Local storage for calculation history

⌨️ Keyboard Support

Type calculations directly! The Normal and Scientific calculators support:

0-9 : Input numbers
+ - * / : Arithmetic operators
Enter = : Calculate result
Escape : Clear (AC)
Backspace: Delete last character
% : Percentage
. : Decimal point

🌍 Currency Names

All currency options display both name and code:

  • US Dollar (USD)
  • Euro (EUR)
  • British Pound (GBP)
  • Japanese Yen (JPY)
  • And 150+ more major currencies

📊 GitHub Stats

GitHub StarsGitHub ForksGitHub IssuesLast Commit

🛠️ Installation

  1. Clone the repository:
git clone https://github.com/SyntX34/Calculator.git
  1. Run on a web server with PHP support

  2. No database required, runs entirely client-side with optional PHP features

📁 Project Structure

Calculator/
├── index.php # Main entry point
├── js/
│ └── main.js # Calculator logic & interactions
├── styles/
│ └── main.css # All styling with CSS variables
├── pages/
│ ├── calculator.php # Calculator modes
│ ├── about.php # About page
│ └── contact.php # Contact form
├── includes/
│ ├── header.php # Navigation header
│ ├── sidebar.php # Mode selector sidebar
│ ├── footer.php # Footer
│ ├── functions.php # PHP utilities
│ └── cookie-handler.php # Cookie consent handler
└── images/
├── logo.svg # Logo
├── steam.svg # Steam icon
├── discord.svg # Discord icon
└── ... # Other image assets

🎨 Themes

ThemePreview
LightClean white interface
DarkEasy on the eyes
NeonCyberpunk aesthetic
NatureGreen, earthy tones
OceanBlue, watery theme

🤝 Contributing

Contributions welcome! Feel free to submit issues and pull requests.

📄 License

MIT License see LICENSE file for details.


Made with ❤️ for calculations by Samir Neupane a.k.a SyntX

About

Calculator Hub is a comprehensive web-based calculator application featuring 10 different calculator modes in a single, beautifully designed interface. Built with vanilla JavaScript, PHP, and modern CSS, it offers both functionality and aesthetics.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages