-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (35 loc) · 1.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./css/index.css">
<title>document</title>
</head>
<body>
<div id ="c" class='calculatr'>
<button id="e" class="er" onclick="erase2()">⌫</button>
<button id="e2" class="er2" onclick="erase3()"> ⌦</button>
<div class = "d">
<input id="box" type="text" class="box" disabled="" style="color: black;"></div>
<button id="n1" onclick="onclicks(this.innerText)" class='num'>1</button>
<button id="n2" onclick="onclicks(this.innerText)" class='num'>2</button>
<button id="n3" onclick="onclicks(this.innerText)" class='num'>3</button>
<button id="dev"onclick="onclicks(this.innerText)" class='sm'>/</button>
<button id="n4" onclick="onclicks(this.innerText)" class='num'>4</button>
<button id="n5" onclick="onclicks(this.innerText)" class='num'>5</button>
<button id="n6" onclick="onclicks(this.innerText)" class='num'>6</button>
<button id="x" onclick="onclicks(this.innerText)" class='sm'>x</button>
<button id="n7" onclick="onclicks(this.innerText)" class='num'>7</button>
<button id="n8" onclick="onclicks(this.innerText)" class='num'>8</button>
<button id="n9" onclick="onclicks(this.innerText)" class='num'>9</h1</button>
<button id="min" onclick="onclicks(this.innerText)" class='smmin'>-</button>
<button id="n0" onclick="onclicks(this.innerText)" class='num'>0</button>
<button id="dot" onclick="onclicks(this.innerText)" class='num'>.</button>
<button id="clear" onclick="erase()" class='cl'>C</button>
<button id="plus" onclick="onclicks(this.innerText)" class=' sm '>+</button>
<button id="eq" onclick="eq()" class='sm0 '>=</button>
</div>
<script src="./JS/index.js"></script>
</body>
</html>