-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.html
45 lines (39 loc) · 1.82 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/styles.css">
<link rel='shortcut icon' type='image/x-icon' href='favicon.ico' />
<title>CALC</title>
</head>
<body>
<div class="calculator">
<div class="visor">
<div id="accumulator" class="acc"></div>
<div id="total" class="total" hidden></div>
</div>
<div class="numeric action" onclick="CleanAll()">C</div>
<div class="numeric action" onclick="CleanCurrentEntry()">CE</div>
<div class="numeric action" onclick="Percentage()">%</div>
<div class="numeric action" onclick="CalcAction('/')">/</div>
<div class="numeric" onclick="AddNumber(7)">7</div>
<div class="numeric" onclick="AddNumber(8)">8</div>
<div class="numeric" onclick="AddNumber(9)">9</div>
<div class="numeric action" onclick="CalcAction('x')">x</div>
<div class="numeric" onclick="AddNumber(4)">4</div>
<div class="numeric" onclick="AddNumber(5)">5</div>
<div class="numeric" onclick="AddNumber(6)">6</div>
<div class="numeric action" onclick="CalcAction('-')">-</div>
<div class="numeric" onclick="AddNumber(1)">1</div>
<div class="numeric" onclick="AddNumber(2)">2</div>
<div class="numeric" onclick="AddNumber(3)">3</div>
<div class="numeric action" onclick="CalcAction('+')">+</div>
<div class="numeric zero" onclick="AddNumber(0)">0</div>
<div class="numeric" onclick="AddComma()">,</div>
<div class="numeric action result" onclick="Result()">=</div>
</div>
<div class="footer">
<p>developed with bugs by <a href="https://github.com/x0uter" target="_blank">x0uter</a></p>
</div>
</body>
<script src="js/calculator.js"></script>
</html>