-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcalculator.html
More file actions
38 lines (36 loc) · 1.1 KB
/
calculator.html
File metadata and controls
38 lines (36 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>JavaScript Calculator</title>
<link rel="stylesheet" href="calculator.css">
<script src="calculator.js" defer></script>
</head>
<body>
<div class="calculator-container">
<div class="display">
<p data-previous-value></p>
<p data-current-value></p>
</div>
<button data-all-clear class="spaced">CLEAR</button>
<button data-delete>DEL</button>
<button data-operations>÷</button>
<button data-number>1</button>
<button data-number>2</button>
<button data-number>3</button>
<button data-operations>+</button>
<button data-number>4</button>
<button data-number>5</button>
<button data-number>6</button>
<button data-operations>*</button>
<button data-number>7</button>
<button data-number>8</button>
<button data-number>9</button>
<button data-operations>-</button>
<button data-number>.</button>
<button data-number>0</button>
<button data-equals class="spaced">=</button>
</div>
</body>
</html>