-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (51 loc) · 2.96 KB
/
Copy pathindex.html
File metadata and controls
51 lines (51 loc) · 2.96 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
<!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/main.css">
<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">
<title>Frontend Mentor | Calculator app</title>
</head>
<body class="main">
<section class="calculator-wrapper">
<div class="header">
<h1 class="header__logo">calc</h1>
<div class="header__theme">
<h2 class="header__theme-text">theme</h2>
<div class="header__theme-input">
<label for="theme">2</label>
<input type="range" id="theme" name="theme" min="1" max="3" value="1">
</div>
</div>
</div>
<div class="output">
<p class="output__text"></p>
</div>
<div class="input">
<input class="input__btn input__btn--regular" type="button" value="7" onclick="inputFunc(7)">
<input class="input__btn input__btn--regular" type="button" value="8" onclick="inputFunc(8)">
<input class="input__btn input__btn--regular" type="button" value="9" onclick="inputFunc(9)">
<input class="input__btn input__btn--blue" type="button" value="DEL" onclick="inputFunc('del')">
<input class="input__btn input__btn--regular" type="button" value="4" onclick="inputFunc(4)">
<input class="input__btn input__btn--regular" type="button" value="5" onclick="inputFunc(5)">
<input class="input__btn input__btn--regular" type="button" value="6" onclick="inputFunc(6)">
<input class="input__btn input__btn--regular" type="button" value="+" onclick="inputFunc('add')">
<input class="input__btn input__btn--regular" type="button" value="1" onclick="inputFunc(1)">
<input class="input__btn input__btn--regular" type="button" value="2" onclick="inputFunc(2)">
<input class="input__btn input__btn--regular" type="button" value="3" onclick="inputFunc(3)">
<input class="input__btn input__btn--regular" type="button" value="-" onclick="inputFunc('substract')">
<input class="input__btn input__btn--regular" type="button" value="." onclick="inputFunc('decimal')">
<input class="input__btn input__btn--regular" type="button" value="0" onclick="inputFunc(0)">
<input class="input__btn input__btn--regular" type="button" value="/" onclick="inputFunc('devide')">
<input class="input__btn input__btn--regular" type="button" value="x" onclick="inputFunc('multiply')">
<input class="input__btn input__btn--blue-big" type="button" value="RESET" onclick="inputFunc('reset')">
<input class="input__btn input__btn--red-big" type="button" value="=" onclick="inputFunc('result')">
</div>
</section>
<script src="app.js"></script>
</body>
</html>