-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
135 lines (131 loc) · 5.21 KB
/
Copy pathindex.html
File metadata and controls
135 lines (131 loc) · 5.21 KB
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
<!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"
/>
<link rel="stylesheet" href="./styles.css" />
<script src="./index.js" defer></script>
<title>Frontend Mentor | Calculator app</title>
</head>
<body>
<main>
<section class="calc">
<section class="calc__header">
<h1>calc</h1>
<div class="calc__theme">
<h2>theme</h2>
<div class="calc--themes">
<div>
<label for="theme__one">1</label
><input
type="radio"
name="themes"
id="theme__one"
value="theme one"
checked
/>
</div>
<div>
<label for="theme__two">2</label
><input
type="radio"
name="themes"
id="theme__two"
value="theme two"
/>
</div>
<div>
<label for="theme__three">3</label
><input
type="radio"
name="themes"
id="theme__three"
value="theme three"
/>
</div>
</div>
</div>
</section>
<section class="calc__display">
<p id="result" readonly></p>
</section>
<section class="calc__buttons">
<div class="buttons numbers" onclick="appendValue('7')">
<p>7</p>
</div>
<div class="buttons numbers" onclick="appendValue('8')">
<p>8</p>
</div>
<div class="buttons numbers" onclick="appendValue('9')">
<p>9</p>
</div>
<div class="buttons commands buttons--del" id="delete">
<p>del</p>
</div>
<div class="buttons numbers" onclick="appendValue('4')">
<p>4</p>
</div>
<div class="buttons numbers" onclick="appendValue('5')">
<p>5</p>
</div>
<div class="buttons numbers" onclick="appendValue('6')">
<p>6</p>
</div>
<div class="buttons operators" onclick="appendValue('+')">
<p>+</p>
</div>
<div class="buttons numbers" onclick="appendValue('1')">
<p>1</p>
</div>
<div class="buttons numbers" onclick="appendValue('2')">
<p>2</p>
</div>
<div class="buttons numbers" onclick="appendValue('3')">
<p>3</p>
</div>
<div class="buttons operators" onclick="appendValue('-')">
<p>-</p>
</div>
<div class="buttons operators" onclick="appendValue('.')">
<p>.</p>
</div>
<div class="buttons numbers" onclick="appendValue('0')">
<p>0</p>
</div>
<div class="buttons operators" onclick="appendValue('/')">
<p>/</p>
</div>
<div class="buttons operators" onclick="appendValue('x')">
<p>x</p>
</div>
<div class="buttons commands buttons--reset" id="reset">
<p>reset</p>
</div>
<div
class="buttons commands buttons--result"
id="showResults"
>
<p>=</p>
</div>
</section>
</section>
</main>
<footer>
<div class="attribution">
Challenge by
<a
href="https://www.frontendmentor.io?ref=challenge"
target="_blank"
>Frontend Mentor</a
>
Coded by <a href="https://linktr.ee/Dev_Savion">Savion</a>
</div>
</footer>
</body>
</html>