-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (44 loc) · 1.68 KB
/
index.html
File metadata and controls
46 lines (44 loc) · 1.68 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
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Favourite Calculator</title>
<!-- attach css file -->
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<!-- create calculator -->
<div id="calculator">
<!-- create text input field (display) -->
<input type="text" id="display" disabled>
<!-- create field for buttons -->
<div id="buttons">
<!-- create all necessary buttons -->
<div class="button reset">C</div>
<div class="button roundBr">()</div>
<div class="button persent">%</div>
<div class="button division">/</div>
<div class="button seven">7</div>
<div class="button eight">8</div>
<div class="button nine">9</div>
<!-- 0215 on the numbers on the right, type the code without quotes to receive 'х' -->
<div class="button multiplication">×</div>
<div class="button four">4</div>
<div class="button five">5</div>
<div class="button six">6</div>
<div class="button minus">-</div>
<div class="button one">1</div>
<div class="button two">2</div>
<div class="button three">3</div>
<div class="button plus">+</div>
<div class="button change">+ / -</div>
<div class="button zero">0</div>
<div class="button point">.</div>
<div class="button equals">=</div>
</div>
</div>
<!-- attach js file -->
<script src="scripts/main.js"></script>
</body>
</html>