-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (63 loc) · 2.64 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Calculator</title>
<link rel="stylesheet" href="./css/styles.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap"
rel="stylesheet"
/>
</head>
<body class="dark-theme flex">
<main class="calculator flex">
<section class="toggle__section">
<label class="toggle" for="themeToggle">
<input class="toggle__input" name="" type="checkbox" id="themeToggle">
<div class="toggle__fill"></div>
</label>
</section>
<section class="output">
<article class="previous__output"></article>
<article class="current__output">0</article>
</section>
<section class="buttons grid">
<button data-button-extra>MC</button>
<button data-button-extra>M+</button>
<button data-button-extra>M-</button>
<button data-button-extra>MR</button>
<button data-button-extra>AC</button>
<button data-button-extra>+/-</button>
<button data-button-extra>%</button>
<button data-button-operator>÷</button>
<button data-button-number>7</button>
<button data-button-number>8</button>
<button data-button-number>9</button>
<button data-button-operator>x</button>
<button data-button-number>4</button>
<button data-button-number>5</button>
<button data-button-number>6</button>
<button data-button-operator>-</button>
<button data-button-number>1</button>
<button data-button-number>2</button>
<button data-button-number>3</button>
<button data-button-operator>+</button>
<button data-button-number>0</button>
<button data-button-comma class="button__comma">,</button>
<button data-button-extra class="buttons__extra--delete"></button>
<button data-button-operator>=</button>
</section>
</main>
<script src="./src/utils/utils.js"></script>
<script src="./src/models/operation.js"></script>
<script src="./src/models/extraOperations.js"></script>
<script src="./src/models/memoryOperations.js"></script>
<script src="./src/controllers/calculator-controller.js"></script>
<script src="./src/views/calculator-view.js"></script>
<script src="./src/index.js"></script>
</body>
</html>