-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcal.html
More file actions
65 lines (58 loc) · 3.31 KB
/
Copy pathcal.html
File metadata and controls
65 lines (58 loc) · 3.31 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calculator</title>
<link rel="stylesheet" href="s1.css">
<link rel="shortcut icon" href="C:\Users\Dell\Desktop\S\.vscode\calculator\IMG\Capture.JPG" type="image/x-icon">
</head>
<div class="im"><pre>Calculator</pre></div>
<body class="body">
<form class="form" name="calculator">
<table style="width:100%">
<tr>
<td colspan="4">
<input
style="height:2cm;width:8cm;font-size:1cm;background-color:black;color:aquamarine;border-color:aquamarine"
type="text" onclick="display" name="display" disabled>
</td>
</tr>
<tr style="height:1cm;width:1cm">
<td><input class="in" type="button" name=”one” value="1" onclick="calculator.display.value +='1'"></td>
<td><input class="in" type="button" name="two" value="2" onclick="calculator.display.value +='2'"></td>
<td><input class="in" type="button" name="three" value="3" onclick="calculator.display.value +='3'">
</td>
<td><input class="in" class="op" type="button" name="plus" value="+"
onclick="calculator.display.value +='+'"></td>
</tr>
<tr>
<td><input class="in" type="button" name=”four” value="4" onclick="calculator.display.value +='4'"></td>
<td><input class="in" type="button" name="five" value="5" onclick="calculator.display.value +='5'"></td>
<td><input class="in" type="button" name="six" value="6" onclick="calculator.display.value +='6'"></td>
<td><input class="in" class="op" type="button" name="minus" value="-"
onclick="calculator.display.value +='-'"></td>
</tr>
<tr>
<td><input class="in" type="button" name=”seven” value="7" onclick="calculator.display.value +='7'">
</td>
<td><input class="in" type="button" name="eight" value="8" onclick="calculator.display.value +='8'">
</td>
<td><input class="in" type="button" name="nine" value="9" onclick="calculator.display.value +='9'"></td>
<td><input class="in" class="op" type="button" name="mul" value="*"
onclick="calculator.display.value +='*'"></td>
</tr>
<tr>
<td><input class="in" type="button" id="clear" name=”cancel” value="C"
onclick="calculator.display.value =''"></td>
<td><input class="in" type="button" name="zero" value="0" onclick="calculator.display.value +='0'"></td>
<td><input class="in" type="button" name="equal" value="="
onclick="calculator.display.value = eval(calculator.display.value)"></td>
<td><input class="in" class="op" type="button" name="div" value="/"
onclick="calculator.display.value +='/'"></td>
</tr>
</table>
</form>
</body>
</html>