-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (70 loc) · 2.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Calculator app challenge" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<link rel="stylesheet" href="css/main.css" />
<title>Frontend Mentor | Calculator app</title>
</head>
<body>
<main>
<div class="container">
<div class="calculator">
<div class="calculator-header">
<h1>calc</h1>
<form id="theme-switcher">
<label for="default">1</label>
<label for="light">2</label>
<label for="dark">3</label>
<button
type="submit"
aria-label="switch to light theme"
id="toggler-button"
>
<span id="circle"></span>
</button>
</form>
</div>
<div id="calculator-screen"><p></p></div>
<div class="calculator-body">
<button class="regular-button number">7</button>
<button class="regular-button number">8</button>
<button class="regular-button number">9</button>
<button id="del-button" class="blue-button">DEL</button>
<button class="regular-button number">4</button>
<button class="regular-button number">5</button>
<button class="regular-button number">6</button>
<button class="regular-button operator">+</button>
<button class="regular-button number">1</button>
<button class="regular-button number">2</button>
<button class="regular-button number">3</button>
<button class="regular-button operator">-</button>
<button class="regular-button number">.</button>
<button class="regular-button number">0</button>
<button class="regular-button operator">/</button>
<button class="regular-button operator">x</button>
<button id="reset-button" class="bigger-button blue-button">
Reset
</button>
<button id="equals-button" class="bigger-button">=</button>
</div>
</div>
<div class="attribution">
Challenge by
<a href="https://www.frontendmentor.io?ref=challenge" target="_blank"
>Frontend Mentor</a
>. Coded by <a href="#">Catalina Hasnas</a>.
</div>
</div>
</main>
<script src="javascript/theme.js"></script>
<script src="javascript/calculator.js"></script>
</body>
</html>