-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (47 loc) · 2.15 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
<!DOCTYPE html>
<html>
<head>
<title>Calculator</title>
<link href="css/cal.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="mainContainer" style="">
<form name="myform">
<input type="text" name="textview" placeholder="check your result" disabled />
</form>
<table>
<tr>
<td><input type="button" class="btn symbol" onclick="SR('r')" id="r" value="√" disabled /></td>
<td><input type="button" class="btn symbol" onclick="SR('s')" id="s" value="ײ" disabled /></td>
<td><input type="button" class="btn symbol" onclick="back()" value="←"/></td>
<td><input type="button" class="btn symbol" onclick="insertOpt('/')" value="÷"/></td>
</tr>
<tr>
<td><input type="button" class="btn number" onclick="insertNum(7)" value="7"/></td>
<td><input type="button" class="btn number" onclick="insertNum(8)" value="8"/></td>
<td><input type="button" class="btn number" onclick="insertNum(9)" value="9"/></td>
<td><input type="button" class="btn symbol" onclick="insertOpt('*')" value="×"/></td>
</tr>
<tr>
<td><input type="button" class="btn number" onclick="insertNum(4)" value="4"/></td>
<td><input type="button" class="btn number" onclick="insertNum(5)" value="5"/></td>
<td><input type="button" class="btn number" onclick="insertNum(6)" value="6"/></td>
<td><input type="button" class="btn symbol" onclick="insertOpt('-')" value="-"/></td>
</tr>
<tr>
<td><input type="button" class="btn number" onclick="insertNum(1)" value="1"/></td>
<td><input type="button" class="btn number" onclick="insertNum(2)" value="2"/></td>
<td><input type="button" class="btn number" onclick="insertNum(3)" value="3"/></td>
<td><input type="button" class="btn symbol" onclick="insertOpt('+')" value="+"/></td>
</tr>
<tr>
<td><input type="button" class="btn symbol" onclick="clean()" value="C"/></td>
<td><input type="button" class="btn number" onclick="insertNum(0)" value="0"/></td>
<td><input type="button" class="btn symbol" onclick="insertDec()" value="."/></td>
<td><input type="button" class="btn symbol" onclick="equalTo()" value="="/></td>
</tr>
</table>
</div>
<script src="js/cal.js" type="text/javascript"></script>
</body>
</html>