-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (49 loc) · 2.81 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
<html>
<head>
<link rel="stylesheet" href="css/cal.css">
<script src="js/cal.js"></script>
<title>Project: calculator</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="body">
<div class="memoryContainer">
<div class="nav">
<span id="clearMem" onclick="clearMemory()">Clear Memory</span>
<span id="close" onclick="closeMemory()">Close</span>
</div>
<div class="memory"></div>
</div>
<div class="display">
<span id="zero">0</span>
</div>
<div class="controlsContainer green"><div class="controls">
<!-- Row One -->
<div class="button red" name='bs' id="bs" onclick="enterBs()"><</div>
<div class="button white" name="7" id="7" onclick="enterDigit(this)">7</div>
<div class="button white" name="8" id="8" onclick="enterDigit(this)">8</div>
<div class="button white" name="9" id="9" onclick="enterDigit(this)">9</div>
<div class="button black" name="dv" id="dv" onclick="operate(this)">÷</div>
<!-- Row 2 -->
<div class="button black" name="mem" id="mem" onclick="openMemory()">M</div>
<div class="button white" name="4" id="4" onclick="enterDigit(this)">4</div>
<div class="button white" name="5" id="5" onclick="enterDigit(this)">5</div>
<div class="button white" name="6" id="6" onclick="enterDigit(this)">6</div>
<div class="button black" name="ml" id="ml" onclick="operate(this)">*</div>
<!-- Row 3 -->
<div class="button black" name="sign" id="sign" onclick="enterSign()">+/-</div>
<div class="button white" name="1" id="1" onclick="enterDigit(this)">1</div>
<div class="button white" name="2" id="2" onclick="enterDigit(this)">2</div>
<div class="button white" name="3" id="3" onclick="enterDigit(this)">3</div>
<div class="button black" name="sb" id="sb" onclick="operate(this)">-</div>
<!-- Row 4 -->
<div class="button red" name="c" id="c" onclick='enterClear()'>C</div>
<div class="button white" name="0" id="0" onclick="enterDigit(this)">0</div>
<div class="button black" name="dec" id="dec" onclick="enterDec()">.</div>
<div class="button blue" name="eq" id="eq" onclick="calculate()">=</div>
<div class="button black" name="ad" id="ad" onclick="operate(this)">+</div>
</div></div>
</div>
</body>
</html>