-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (62 loc) · 2.41 KB
/
index.html
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!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" />
<script src="script.js" defer></script>
<title>Calculator</title>
</head>
<body>
<div id="calculator">
<div id="display" class="display">0</div>
<div class="containers">
<button type="button" class="buttons button-operation" id="clear">
<span></span>
</button>
<button type="button" class="buttons button-operation" id="sign">
<span>+/-</span>
</button>
<button type="button" class="buttons button-operation" id="percentage">
<span>%</span>
</button>
<button type="button" class="buttons button-operation" id="divide">
<span>÷</span>
</button>
</div>
<div class="containers">
<button type="button" class="buttons" id="seven"><span>7</span></button>
<button type="button" class="buttons" id="eight"><span>8</span></button>
<button type="button" class="buttons" id="nine"><span>9</span></button>
<button type="button" class="buttons button-operation" id="multiply">
<span>x</span>
</button>
</div>
<div class="containers">
<button type="button" class="buttons" id="four"><span>4</span></button>
<button type="button" class="buttons" id="five"><span>5</span></button>
<button type="button" class="buttons" id="six"><span>6</span></button>
<button type="button" class="buttons button-operation" id="subtract">
<span>-</span>
</button>
</div>
<div class="containers">
<button type="button" class="buttons" id="one"><span>1</span></button>
<button type="button" class="buttons" id="two"><span>2</span></button>
<button type="button" class="buttons" id="three"><span>3</span></button>
<button type="button" class="buttons button-operation" id="plus">
<span>+</span>
</button>
</div>
<div class="containers">
<button type="button" class="buttons" id="zero"><span>0</span></button>
<button type="button" class="buttons" id="decimal">
<span>,</span>
</button>
<button type="button" class="buttons button-operation" id="equal">
<span>=</span>
</button>
</div>
</div>
</body>
</html>