-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6c161a
commit f5a3d75
Showing
3 changed files
with
115 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,45 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Calculator</title> | ||
<link href="styles.css" rel="stylesheet"> | ||
<script src="script.js" defer></script> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="style.css"> | ||
<title>Calculator</title> | ||
</head> | ||
<body> | ||
<div id="basic-calculator" class="calculator-grid"> | ||
<div class="output"> | ||
<button id="toggle-scientific"> | ||
<img src="../Vanilla-JavaScript-Calculator-master/img/download (1).png" alt="Toggle Scientific Calculator" style="width: 24px; height: 24px;"> | ||
</button> | ||
<div data-previous-operand class="previous-operand"></div> | ||
<div data-current-operand class="current-operand"></div> | ||
<div class="calculator"> | ||
<input type="text" placeholder="0" id="inputBox"> | ||
</div> | ||
<div> | ||
<button class="operator">AC</button> | ||
<button class="operator">DEL</button> | ||
<button class="operator">%</button> | ||
<button class="operator">/</button> | ||
</div> | ||
<button data-all-clear class="span-two">AC</button> | ||
<button data-delete>DEL</button> | ||
<button data-operation>÷</button> | ||
<button data-number>1</button> | ||
<button data-number>2</button> | ||
<button data-number>3</button> | ||
<button data-operation>*</button> | ||
<button data-number>4</button> | ||
<button data-number>5</button> | ||
<button data-number>6</button> | ||
<button data-operation>+</button> | ||
<button data-number>7</button> | ||
<button data-number>8</button> | ||
<button data-number>9</button> | ||
<button data-operation>-</button> | ||
<button data-number>.</button> | ||
<button data-number>0</button> | ||
<button data-equals class="span-two">=</button> | ||
</div> | ||
<div id="scientific-calculator" class="calculator-grid hidden"> | ||
<div class="output"> | ||
<button id="toggle-scientific"> | ||
<img src="../Vanilla-JavaScript-Calculator-master/img/download (1).png" alt="Toggle Scientific Calculator" style="width: 24px; height: 24px;"> | ||
</button> | ||
<div data-previous-operand class="previous-operand"></div> | ||
<div data-current-operand class="current-operand"></div> | ||
<div> | ||
<button>7</button> | ||
<button>8</button> | ||
<button>9</button> | ||
<button class="operator">*</button> | ||
</div> | ||
<button data-function="rad">Rad</button> | ||
<button data-function="deg">Deg</button> | ||
<button data-function="factorial">x!</button> | ||
<button data-function="left-paren">(</button> | ||
<button data-function="right-paren">)</button> | ||
<button data-delete>DEL</button> | ||
<button data-all-clear>AC</button> | ||
<button data-function="percent">%</button> | ||
<button data-function="sin">sin</button> | ||
<button data-function="ln">ln</button> | ||
<button data-number>7</button> | ||
<button data-number>8</button> | ||
<button data-number>9</button> | ||
<button data-operation>÷</button> | ||
<button data-function="pi">π</button> | ||
<button data-function="cos">cos</button> | ||
<button data-function="log">log</button> | ||
<button data-number>4</button> | ||
<button data-number>5</button> | ||
<button data-number>6</button> | ||
<button data-operation>*</button> | ||
<button data-function="e">e</button> | ||
<button data-function="tan">tan</button> | ||
<button data-function="sqrt">√</button> | ||
<button data-number>1</button> | ||
<button data-number>2</button> | ||
<button data-number>3</button> | ||
<button data-operation>-</button> | ||
<button data-function="ans">Ans</button> | ||
<button data-function="exp">EXP</button> | ||
<button data-function="pow">x^y</button> | ||
<button data-number>.</button> | ||
<button data-number>0</button> | ||
<button data-equals>=</button> | ||
<button data-operation>+</button> | ||
</div> | ||
<div> | ||
<button>4</button> | ||
<button>5</button> | ||
<button>6</button> | ||
<button class="operator">-</button> | ||
</div> | ||
<div> | ||
<button>1</button> | ||
<button>2</button> | ||
<button>3</button> | ||
<button class="operator">+</button> | ||
</div> | ||
<div> | ||
<button>00</button> | ||
<button>0</button> | ||
<button>.</button> | ||
<button class="equalBtn">=</button> | ||
</div> | ||
<script src="script.js"></script> | ||
</body> | ||
</html> | ||
</html> |
Oops, something went wrong.