-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
92 lines (92 loc) · 4.05 KB
/
index.html
File metadata and controls
92 lines (92 loc) · 4.05 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Calculator</title>
<link rel="stylesheet" type="text/css" href="index.css">
<script type="text/javascript" src="calculator.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>
<body class="yo">
<table class="mx-auto mt-3 table-sm table-dark">
<thead>
<tr>
<tr>
<th class=" text-center">
Calculator
</th>
</tr>
</thead>
<tbody>
<td>
<input class="text-right input-group " type="text" id="myInput" placeholder="0" readonly="readonly" >
<input class="text-right input-group " type="text" id="answer" readonly="readonly" >
</td>
</tr>
<tr>
<td>
<input class="btn btn-danger" type="button" value=" CE " onclick="clearAll()" >
<input class="btn btn-primary" type="button" value=" / " onclick="getOperands('/')" >
<input class="btn btn-primary" type="button" value=" * " onclick="getOperands('*')" >
<input class="btn btn-warning" type="button" value=" ← " onclick="del()" >
</td>
</tr>
<tr>
<td>
<input class="btn btn-primary" type="button" value=" 1 " onclick="getNumbers(1)" >
<input class="btn btn-primary" type="button" value=" 2 " onclick="getNumbers(2)" >
<input class="btn btn-primary" type="button" value=" 3 " onclick="getNumbers(3)" >
<input class="btn btn-primary" type="button" value=" + " onclick="getOperands('+')" >
</td>
</tr>
<tr>
<td>
<input class="btn btn-primary" type="button" value=" 4 " onclick="getNumbers(4)" >
<input class="btn btn-primary" type="button" value=" 5 " onclick="getNumbers(5)" >
<input class="btn btn-primary" type="button" value=" 6 " onclick="getNumbers(6)" >
<input class="btn btn-primary" type="button" value=" - " onclick="getOperands('-')" >
</td>
</tr>
<tr>
<td>
<input class="btn btn-primary" type="button" value=" 7 " onclick="getNumbers(7)" >
<input class="btn btn-primary" type="button" value=" 8 " onclick="getNumbers(8)" >
<input class="btn btn-primary" type="button" value=" 9 " onclick="getNumbers(9)" >
<input class="btn btn-primary" type="button" value=" % " onclick="getOperands('%')" >
</td>
</tr>
<tr>
<td>
<input class="btn btn-primary" type="button" value=" +/- " onclick="getOperands('+/-')" >
<input class="btn btn-primary" type="button" value=" 0 " onclick="getNumbers(0)" >
<input class="btn btn-primary" type="button" value=" , " onclick="getOperands('.')" >
<input class="btn btn-primary" type="button" value=" ( ) " onclick="getBracket()" >
</td>
</tr>
<tr>
<td>
<input class="forge btn btn-warning " type="button" value=" Forge of Empires *1.9 " onclick="getNumbers('forge')" >
</td>
</tr>
<tr>
<td>
<input class="mb-1 btn btn-success" type="button" value=" = " onclick="compute()" >
</td>
</tr>
</tbody>
</table>
<table class="mx-auto mt-3 table-sm table-striped table-bordered table-dark">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Calculation</th>
<th scope="col">Value</th>
</tr>
</thead>
<tbody id="newrow" >
</tbody>
</table>
</body>
</html>