-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebCalc.html
76 lines (75 loc) · 3.6 KB
/
webCalc.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html>
<title>WebCalc</title>
<!--Bootstrap-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!--Custom CSS-->
<link rel="stylesheet" type="text/css" href="main.css">
<!--JQuery-->
<script type='text/javascript' src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!--Custom Scripts-->
<script type='text/javascript' src="main.js"></script>
<body>
<main>
<h1 style="text-align:center; color:white; font-family:monospace">freeCodeCamp</h1>
<article class="calculator">
<div class="display-container">
<span class="upperDisplay"></span>
<span class="lowerDisplay"></span>
</div>
<div class="btn-container">
<div class="row-one">
<div class="btn-one"><button id="ac" class="function" value="AC"><span>AC</span></button>
<div class="btn-n"><button id="ce" class="function" value="CE"><span>CE</span></button>
<div class="btn-n"><button id="del" class="function" value="<"><span><</span></button>
<div class="btn-n"><button id="pct" class="function" value="%"><span>%</span></button>
</div>
</div>
</div>
</div>
<div class="row-n">
<div class="btn-one"><button class="digit" value="7"><span>7</span></button>
<div class="btn-n"><button class="digit" value="8"><span>8</span></button>
<div class="btn-n"><button class="digit" value="9"><span>9</span></button>
<div class="btn-n"><button id="div" class="function" value="/"><span>/</span></button>
</div>
</div>
</div>
</div>
<div class="row-n">
<div class="btn-one"><button class="digit" value="4"><span>4</span></button>
<div class="btn-n"><button class="digit" value="5"><span>5</span></button>
<div class="btn-n"><button class="digit" value="6"><span>6</span></button>
<div class="btn-n"><button id="mult" class="function" value="*"><span>x</span></button>
</div>
</div>
</div>
</div>
<div class="row-n">
<div class="btn-one"><button class="digit" value="1"><span>1</span></button>
<div class="btn-n"><button class="digit" value="2"><span>2</span></button>
<div class="btn-n"><button class="digit" value="3"><span>3</span></button>
<div class="btn-n"><button id="sub" class="function" value="-"><span>-</span></button>
</div>
</div>
</div>
</div>
<div class="row-n">
<div class="btn-one"><button class="digit" value="0"><span>0</span></button>
<div class="btn-n"><button id="dec" class="function" value="."><span>.</span></button>
<div class="btn-n"><button id="equ" class="function" value="="><span>=</span></button>
<div class="btn-n"><button id="add" class="function" value="+"><span>+</span></button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</article>
</main>
</body>
</html>