Skip to content

Obiorakingsley/Currency-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧮💱 Calculator & Currency Converter Web App

A sleek two-in-one web app featuring a smart calculator 🤖 and real-time currency converter 🌍, built with vanilla JavaScript.


✨ Key Features

🧮 Calculator Page

  • 🚨 Regex-powered input validation → Blocks invalid math expressions
  • 🔄 Real-time evaluation → See results as you type (2+2= shows 4 instantly)
  • 🗑️ Smart deletionDEL button removes chars without breaking logic
  • 🚦 Error prevention → Stops invalid submits like 5+/
  • 📱 Custom keypad

📸 Calculator Page Preview

Calculator Screenshot


💰 Currency Converter Page

  • 🌐 160+ currencies with live rates via ExchangeRate-API
  • 🔄 One-click swap ↔️ between currencies
  • 📱 Mobile-friendly keypad → No annoying keyboard popups!
  • 📡 Offline-friendly → Shows helpful errors when offline
  • 🏷️ Dynamic descriptions → Shows full currency names (USD → US Dollar)

📸 Currency Page Preview

Calculator Screenshot


🛠️ Tech Stack

Frontend API Magic
HTML5 ExchangeRate-API Regex
CSS3 REST ES6+
              | ![Fetch API](https://img.shields.io/badge/Fetch_API-5A29E4?style=flat)               | ![Responsive](https://img.shields.io/badge/Responsive-563D7C?style=flat)                           |

🚀 Installation

git clone https://github.com/Obiorakingsley/Currency-Calculator.git
cd currency-calculator
# No dependencies! Just open index.html 🎉

About

Calculator & Currency Converter Web App

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published