-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (57 loc) · 2.11 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>
<head>
<meta charset="utf-8">
<title>Calculator App</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="coantainer">
<div class="title">
<div class="toggle">
<h3>Calc</h3>
<div class="right">
<p id="one">1</p>
<p id="two">2</p>
<p id="three">3</p>
</div>
</div>
<div class="control">
<p>Theme</p>
<div class="box">
<div id="circle"></div>
</div>
</div>
</div>
<div class="screen">
<form name="calc">
<input type="text" name="text" readonly id="screen">
</form>
</div>
<div class="cal-body">
<div class="btn">
<button class="num" onclick="document.calc.text.value+='7'">7</button>
<button class="num" onclick="document.calc.text.value+='8'">8</button>
<button class="num" onclick="document.calc.text.value+='9'">9</button>
<button class="del" onclick="del()">DEL</button>
<button class="num" onclick="document.calc.text.value+='4'">4</button>
<button class="num" onclick="document.calc.text.value+='5'">5</button>
<button class="num" onclick="document.calc.text.value+='6'">6</button>
<button onclick="document.calc.text.value+='+'">+</button>
<button class="num" onclick="document.calc.text.value+='1'">1</button>
<button class="num" onclick="document.calc.text.value+='2'">2</button>
<button class="num" onclick="document.calc.text.value+='3'">3</button>
<button onclick="document.calc.text.value+='-'">-</button>
<button onclick="document.calc.text.value+='.'">.</button>
<button class="num" onclick="document.calc.text.value+='0'">0</button>
<button onclick="document.calc.text.value+='/'">/</button>
<button onclick="document.calc.text.value+='*'">X</button>
<button class="reset" onclick="document.calc.text.value=''">RESET</button>
<button class="equal" onclick="document.calc.text.value= eval(calc.text.value)">=</button>
</div>
</div>
</div>
<script src="calculator.js"></script>
</body>
</html>