-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (74 loc) · 2.95 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
<!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="css/theme.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/media-queries.css">
<title>Calculator app</title>
</head>
<body class="theme-first">
<div class="container">
<header>
<div class="title">
<h1>calc</h1>
</div>
<div class="themeselector-container">
<p class="themeselector-text">theme</p>
<form class="themeselector">
<input type="radio" id="th-radio1" name="radios" value="theme-first" checked>
<label for="th-radio1" data-text="1"></label>
<input type="radio" id="th-radio2" name="radios" value="theme-second">
<label for="th-radio2" data-text="2"></label>
<input type="radio" id="th-radio3" name="radios" value="theme-third">
<label for="th-radio3" data-text="3"></label>
<div class="themeselector-dot"></div>
</form>
</div>
</header>
<main>
<div class="calc-screen">
<div class="calc-output_prev">
<span class="calc-output_operation"></span>
</div>
<div class="calc-output_current"></div>
</div>
<div class="calc-keyboard">
<!-- first row -->
<button class="btn" data-number>7</button>
<button class="btn" data-number>8</button>
<button class="btn" data-number>9</button>
<button class="btn func-btn" data-delete>del</button>
<!-- second row -->
<button class="btn" data-number>4</button>
<button class="btn" data-number>5</button>
<button class="btn" data-number>6</button>
<button class="btn" data-operation>+</button>
<!-- third row -->
<button class="btn" data-number>1</button>
<button class="btn" data-number>2</button>
<button class="btn" data-number>3</button>
<button class="btn" data-operation>-</button>
<!-- fourth row -->
<button class="btn" data-number>.</button>
<button class="btn" data-number>0</button>
<button class="btn" data-operation>/</button>
<button class="btn" data-operation>x</button>
<!-- fifth row -->
<button class="btn func-btn" data-reset>ac</button>
<button class="btn func-btn" data-negate>±</button>
<button class="btn hlighted" data-equals>=</button>
</div>
</main>
<footer class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://github.com/Haxikowy" target="_blank">Szymon Dolnik</a>.
</footer>
</div>
<script src="scripts/theme.js"></script>
<script src="scripts/calculate.js"></script>
<script src="scripts/app.js"></script>
</body>
</html>