-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCalc.HTML
54 lines (52 loc) · 3.41 KB
/
Calc.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
<HTML>
<head>
<link rel="stylesheet" href="mystyles.css">
<script src="cal.js"></script>
</head>
<body>
<div style="width: 400px; height:580px; border:5px solid black; float:left; background-color:blue;"
class="display3">
<div class="display" id="display"></div>
<div class="displayLine1"><button class="button"
onclick="clearScreen()">CE</button></div>
<div class="displayLine1" style="margin-left:2px;"><button class="button"
onclick="clearScreen()">C</button></div>
<div class="displayLine1" style="margin-left:2px;"><button class="button"
onclick="backSpace()">x</button></div>
<div class="displayLine1" style="margin-left:2px;"><button class="button"
onclick="keyPadClickHandler(event)">/</button></div>
<div class="displayLine2"><button class="button"
onclick="keyPadClickHandler(event)">7</button></div>
<div class="displayLine2" style="margin-left:2px;" ><button class="button"
onclick="keyPadClickHandler(event)">8</button></div>
<div class="displayLine2" style="margin-left:2px;"><button class="button"
onclick="keyPadClickHandler(event)">9</button></div>
<div class="displayLine2" style="margin-left:2px;"><button class="button"
onclick="keyPadClickHandler(event)">*</button></div>
<div class="displayLine2"><button class="button"
onclick="keyPadClickHandler(event)">4</button></div>
<div class="displayLine2" style="margin-left:2px;"><button class="button"
onclick="keyPadClickHandler(event)">5</button></div>
<div class="displayLine2" style="margin-left:2px;"><button class="button"
onclick="keyPadClickHandler(event)">6</button></div>
<div class="displayLine2" style="margin-left:2px;"><button class="button"
onclick="keyPadClickHandler(event)">-</button></div>
<div class="displayLine2"><button class="button"
onclick="keyPadClickHandler(event)">1</button></div>
<div class="displayLine2" style="margin-left:2px;"><button class="button"
onclick="keyPadClickHandler(event)">2</button></div>
<div class="displayLine2" style="margin-left:2px;"><button class="button"
onclick="keyPadClickHandler(event)">3</button></div>
<div class="displayLine2" style="margin-left:2px;"><button class="button"
onclick="keyPadClickHandler(event)">+</button></div>
<div class="displayLine2"><button class="button"
onclick="keyPadClickHandler(event)">%</button></div>
<div class="displayLine2" style="margin-left:2px;"><button class="button"
onclick="keyPadClickHandler(event)">0</button></div>
<div class="displayLine2" style="margin-left:2px;"><button class="button"
onclick="keyPadClickHandler(event)">.</button></div>
<div class="displayLine2" style="margin-left:2px;"><button class="button"
onclick="evalu()">=</button></div>
</div>
</body>
</HTML>