-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (67 loc) · 2.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<title>Frontend Mentor | Calculator app</title>
<link href="https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<header>
<h1>calc</h1>
<div class="switch-container">
<div class="theme-number">
<span>1</span>
<span>2</span>
<span>3</span>
</div>
<div class="switch">
<input type="checkbox" name="theme" value="theme-1" class="selected">
<input type="checkbox" name="theme" value="theme-2">
<input type="checkbox" name="theme" value="theme-3">
</div> <!-- switch -->
</div> <!-- switch-container -->
</header>
<div class="calculator-container">
<div data-previous-operand class="previous-data"></div>
<div data-current-operand class="screen" id="output"></div>
<div class="keypad">
<div class="key-row">
<button data-number class="key">7</button>
<button data-number class="key">8</button>
<button data-number class="key">9</button>
<button data-delete class="spe-key">del</button>
</div>
<div class="key-row">
<button data-number class="key">4</button>
<button data-number class="key">5</button>
<button data-number class="key">6</button>
<button data-operation class="key">+</button>
</div>
<div class="key-row">
<button data-number class="key">1</button>
<button data-number class="key">2</button>
<button data-number class="key">3</button>
<button data-operation class="key">-</button>
</div>
<div class="key-row">
<button data-number class="key">.</button>
<button data-number class="key">0</button>
<button data-operation class="key">/</button>
<button data-operation class="key">x</button>
</div>
<div class="key-row-b">
<button data-reset class="spe-key">reset</button>
<button data-equal class="equal-key">=</button>
</div>
</div>
</div> <!-- calculator-container -->
<div class="attribution">
<p>Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>. Coded by <a href="https://nadiafigo.github.io/">Nadia Figueroa</a>.</p>
</div>
<script src="./js/calculator.js"></script>
<script src="./js/theme.js"></script>
</body>
</html>