Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.html #513

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified public/Vanilla-JavaScript-Calculator-master/img/download (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
113 changes: 76 additions & 37 deletions public/Vanilla-JavaScript-Calculator-master/index.html
Original file line number Diff line number Diff line change
@@ -1,45 +1,84 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Calculator</title>
<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>
</head>
<body>
<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 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>
<div>
<button>7</button>
<button>8</button>
<button>9</button>
<button class="operator">*</button>
<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>
<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>
<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>
</body>
</html>
</html>
Loading
Loading