GitHunt
RI

Rishabh-Verma-thc/javascript-calculator

Web-based calculator app with keyboard support - built with HTML, CSS, and JavaScript

Calculator (Vanilla JS)

A simple, clean-looking calculator built with HTML, CSS, and JavaScript.
Supports basic arithmetic operations, keyboard input, and visual feedback for button presses.

๐Ÿ”— Live Demo

You can view the live version here.

Calculator Screenshot

๐Ÿง  Features

  • Addition, Subtraction, Multiplication, Division
  • Decimal support
  • Clear (C) and Backspace functionality
  • Full keyboard support
  • Visual button glow on keyboard press
  • Responsive, styled interface with hover and active states

โŒจ๏ธ Keyboard Controls

Key Action
0-9 Enter numbers
+ - * / Operations
. Decimal point
Enter or = Equals / Calculate
Backspace Delete last digit
C Clear everything

๐Ÿš€ How to Run Locally

  1. Clone the repository:

    git clone https://github.com/your-username/calculator
  1. Navigate to project directory:

    cd javascript-calculator
  2. Open index.html in your web browser to view the website.

Languages

JavaScript44.7%CSS27.8%HTML27.5%

Contributors

Created July 14, 2025
Updated July 14, 2025
Rishabh-Verma-thc/javascript-calculator | GitHunt