-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
152 lines (152 loc) · 5.32 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Calculator app</title>
<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=League+Spartan:wght@700&display=swap"
rel="stylesheet"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<link rel="stylesheet" href="/main.css" />
<script src="/app.js" defer></script>
</head>
<body>
<script>
(function () {
if (localStorage.getItem('userTheme') !== null) {
document.documentElement.dataset.theme =
localStorage.getItem('userTheme');
}
})();
</script>
<main>
<div class="calculator-wrapper">
<div class="calculator">
<header class="calculator-header">
<h1 class="calculator-title">
calc
<span class="sr-only"
>A calculator app, where you can perform basic mathematical
operations like addition, subtraction, division,
multiplication.</span
>
</h1>
<div class="theme-container">
<span class="theme-text">THEME</span>
<form class="theme-form">
<div class="radio-buttons">
<div class="radio-item">
<label for="light-theme" class="theme-label"
><span class="sr-only">Theme</span>1</label
>
<input
class="theme-input"
type="radio"
value="light"
id="light-theme"
name="theme"
/>
</div>
<div class="radio-item">
<label for="dark-theme" class="theme-label"
><span class="sr-only">Theme</span>2</label
>
<input
class="theme-input"
type="radio"
value="dark"
id="dark-theme"
name="theme"
/>
</div>
<div class="radio-item">
<label for="cool-theme" class="theme-label"
><span class="sr-only">Theme</span>3</label
>
<input
class="theme-input"
type="radio"
value="cool"
id="cool-theme"
name="theme"
/>
</div>
</div>
</form>
</div>
</header>
<div class="result-screen">
<h2 class="result-text">0</h2>
</div>
<div class="keypad">
<button class="key key-number">
<span class="key-text">7</span>
</button>
<button class="key key-number">
<span class="key-text">8</span>
</button>
<button class="key key-number">
<span class="key-text">9</span>
</button>
<button class="key key-del" aria-label="delete">
<span class="key-text">DEL</span>
</button>
<button class="key key-number">
<span class="key-text">4</span>
</button>
<button class="key key-number">
<span class="key-text">5</span>
</button>
<button class="key key-number">
<span class="key-text">6</span>
</button>
<button class="key key-operator key-addition" aria-label="plus">
<span class="key-text">+</span>
</button>
<button class="key key-number">
<span class="key-text">1</span></button
><button class="key key-number">
<span class="key-text">2</span>
</button>
<button class="key key-number">
<span class="key-text">3</span></button
><button
class="key key-operator key-subtraction"
aria-label="minus"
>
<span class="key-text">-</span>
</button>
<button class="key key-decimal" aria-label="decimal separator">
<span class="key-text">.</span></button
><button class="key key-number">
<span class="key-text">0</span>
</button>
<button class="key key-operator key-division" aria-label="divide">
<span class="key-text">/</span></button
><button
class="key key-operator key-multiplication"
aria-label="times"
>
<span class="key-text">x</span>
</button>
<button class="key key-reset">
<span class="key-text">RESET</span>
</button>
<button class="key key-equal" aria-label="Calculate">
<span class="key-text">=</span>
</button>
</div>
</div>
</div>
</main>
</body>
</html>