-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (70 loc) · 3.32 KB
/
index.html
File metadata and controls
74 lines (70 loc) · 3.32 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
<!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>HTML</title>
<!-- HTML -->
<!-- Custom Styles -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Simple Calc</h1>
<div>
<!-- <input type="text" name="" id="" value="" /> -->
<table class="center">
<tr>
<th><input id="entry" type="text" name="" id="" value="" /></th>
</tr>
<tr>
<th>
<table border="0">
<tr>
<th><button style='background-color: #d4ffd4;' id='cbtn' onclick="clearing(clearBtn)" type='submit'>C</button></th>
<th><button style='background-color: #d4ffd4;' type='submit' id='curlsbtn' onclick="get(curlsbtn)" value="()">()</button></th>
<th><button style='background-color: #d4ffd4;' type='submit' onclick="get(modulus);" value="%" id='perc'>%</button></th>
<th><button id='divbtn' style='background-color: #d4ffd4;' onclick="get(divide);" value="/" type='submit'>/</button></th>
</tr>
<tr>
<th><button id='num7' type='submit' value='7' onclick='get(num7);'>7</button></th>
<th><button id='num8' type='submit' value='8' onclick='get(num8);'>8</button></th>
<th><button id='num9' type='submit' value='9' onclick='get(num9);'>9</button></th>
<th><button style='background-color: #d4ffd4;' id='multiply' onclick="get(multiply);" type='submit' value="*">X</button></th>
</tr>
<tr>
<th><button type='submit' id='num4' value='4' onclick='get(num4);'>4</button></th>
<th><button id='num5' type='submit' value='5' onclick='get(num5);'>5</button></th>
<th><button type='submit' id='num6' value='6' onclick='get(num6);'>6</button></th>
<th><button style='background-color: #d4ffd4;' type='submit' id='minus' value='-' onclick="get(minus);">-</button></th>
</tr>
<tr>
<th><button type='submit' id='num1' onclick='get(num1);' value='1'>1</button></th>
<th><button type='submit' id='num2' value=2 onclick='get(num2);'>2</button></th>
<th><button type='submit' id='num3' value=3 onclick='get(num3);'>3</button></th>
<th><button style='background-color: #d4ffd4;' type='submit' onclick="get(plus);" id='plus' value="+">+</button></th>
</tr>
<tr>
<th><button type='submit' value="(-" onclick=negativate()>+/-</button></th>
<th><button type='submit' id='num0' onclick='get(num0);' value='0'>0</button></th>
<th><button type='submit' id='point' onclick="get(point);" value=".">.</button></th>
<th><button style='background-color: #00ff00' type='submit' id='equals' value='=' onclick='getAns(equals);'>=</button></th>
</tr>
</table>
</th>
</tr>
</table>
</div>
<div>
<footer>
<address>
<h3>About project</h3>
name: Simple Calc <br />
Authors: John Delvin and jamyJames<br />
<a href="https://github.com/John4650-hub/Simple-calc">Project at github</a>
</address>
</footer>
</div>
<script src="main.js"></script>
</body>
</html>