-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (54 loc) · 2.83 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<link rel="stylesheet" href="style.css">
<title>Frontend Mentor | Calculator app</title>
<script src="script.js"></script>
</head>
<body>
<main>
<!-- theme changer -->
<div class="top">
<h1>calc</h1>
<div class="theme">
<p>theme</p>
<div class="input-theme">
<button class="input-theme-button first" onclick="themChenger(1)"><p class="theme-p">1</p><div class="tball t1" id='th1'></div></button>
<button class="input-theme-button" onclick="themChenger(2)"><p class="theme-p">2</p><div class="tball t2" id='th2'></div></button>
<button class="input-theme-button last" onclick="themChenger(3)"><p class="theme-p">3</p><div class="tball t3" id='th3'></div></button>
</div>
</div>
</div>
<!-- display -->
<div class="display">
<p id="operation"></p>
<h1 id="display"></h1>
</div>
<!-- input butons -->
<div class="input-buttons-container">
<div class="buttons-grid"></div>
<div class="button1"> <button class="keys" onclick="press(0)">7</button></div>
<div class="button2"> <button class="keys" onclick="press(1)">8</button></div>
<div class="button3"><button class="keys" onclick="press(2)">9</button> </div>
<div class="button4"> <button class="del keys" onclick="deleteLast()">DEL</button></div>
<div class="button5"> <button class="keys" onclick="press(4)">4</button></div>
<div class="button6"> <button class="keys" onclick="press(5)">5</button></div>
<div class="button7"> <button class="keys" onclick="press(6)">6</button></div>
<div class="button8"> <button class="keys" onclick="press(7)">+</button></div>
<div class="button9"> <button class="keys" onclick="press(8)">1</button></div>
<div class="button10"> <button class="keys" onclick="press(9)">2</button></div>
<div class="button11"><button class="keys" onclick="press(10)">3</button> </div>
<div class="button12"><button class="keys" onclick=" press(11)">-</button> </div>
<div class="button13"> <button class="keys" onclick="press(12)">.</button></div>
<div class="button14"> <button class="keys" onclick="press(13)">0</button></div>
<div class="button15"> <button class="keys" onclick="press(14)">/</button></div>
<div class="button16"> <button class="keys" onclick="press(15)">x</button></div>
<div class="button17"> <button class="reset keys" onclick="reset()">RESET</button></div>
<div class="button18"> <button class="equal keys" onclick="equal()">=</button></div>
</div>
</main>
</body>
</html>