This is a simple calculator web application that mimics the design and functionality of the Apple Calculator App in portrait mode (pre-iOS 18). It allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division, with an intuitive and visually appealing interface.
- Clear display (
AC
) - Toggle between positive and negative (
+/-
) - Percentage calculation (
%
) - Basic operations: Addition, Subtraction, Multiplication, Division
- Equal sign (
=
) for performing calculations
- HTML: Structure of the calculator interface
- CSS: Styling to replicate Apple's calculator design with a dark theme and rounded buttons
- JavaScript: Handles the calculator's logic and operations
-
index.html
This file contains the structure of the calculator interface and links the CSS and JavaScript files. :contentReference[oaicite:0]{index=0} -
style.css
Defines the design and appearance of the calculator, styled similarly to Apple's calculator app (pre-iOS 18). :contentReference[oaicite:1]{index=1} -
script.js
Handles the interactive features and operations of the calculator, including clearing inputs, performing arithmetic, and evaluating expressions. :contentReference[oaicite:2]{index=2}
- Clone this repository to your local machine:
git clone https://github.com/avnirastogi14/calculator.git