-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (72 loc) · 3.31 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>JS Calculator</title>
<meta name="description"
content="This is a simple calculator that supports basic arithmetical operations. it was created using HTML, CSS and JavaScript.">
<meta name="author" content="Sofiia Trokhymchuk">
<meta property="og:title" content="JS Calculator">
<meta property="og:description"
content="This is a simple calculator that supports basic arithmetical operations. it was created using HTML, CSS and JavaScript.">
<meta property="og:url" content="https://sofiiatrokhymchuk.github.io/vanilla-js-calculator/" />
<meta property="og:image"
content="https://github.com/SofiiaTrokhymchuk/vanilla-js-calculator/assets/93663923/965a7220-f437-4f08-b0be-9d6e47e0a0d5" />
<link rel="stylesheet" href="styles/main.css" />
</head>
<body>
<div class="wrapper">
<div class="calculator">
<div class="calculator-screen">
<div class="screen-result">0</div>
<div class="screen-input"> </div>
</div>
<div class="buttons-container">
<button class="calculator-button calculator-button__functionality calculator-button__wide" id="clear"
data-key="functionality">
AC
</button>
<button class="calculator-button calculator-button__functionality calculator-button__wide" id="delete"
data-key="functionality">
DEL
</button>
<button class="calculator-button" data-key="digit">(</button>
<button class="calculator-button" data-key="digit">)</button>
<button class="calculator-button calculator-button__operator" id="mod-divide" data-key="operator">
%
</button>
<button class="calculator-button calculator-button__operator" id="divide" data-key="operator">
÷
</button>
<button class="calculator-button" data-key="digit">7</button>
<button class="calculator-button" data-key="digit">8</button>
<button class="calculator-button" data-key="digit">9</button>
<button class="calculator-button calculator-button__operator" id="multiply" data-key="operator">
×
</button>
<button class="calculator-button" data-key="digit">4</button>
<button class="calculator-button" data-key="digit">5</button>
<button class="calculator-button" data-key="digit">6</button>
<button class="calculator-button calculator-button__operator" id="substract" data-key="operator">
-
</button>
<button class="calculator-button" data-key="digit">1</button>
<button class="calculator-button" data-key="digit">2</button>
<button class="calculator-button" data-key="digit">3</button>
<button class="calculator-button calculator-button__operator" id="add" data-key="operator">
+
</button>
<button class="calculator-button calculator-button__wide" data-key="digit">
0
</button>
<button class="calculator-button">.</button>
<button class="calculator-button calculator-button__functionality" id="equals" data-key="functionality">
=
</button>
</div>
</div>
</div>
<script async type="module" src="scripts/main.js"></script>
</body>
</html>