-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculator.html
103 lines (94 loc) · 3.72 KB
/
calculator.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<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">
<title>Calculatron</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
<link href="./css/calculator-styles.css" rel="stylesheet">
</head>
<body>
<div class='container'>
<div class='row'>
<div class='col-md-4 col-md-offset-4'>
<div id='calc'>
<h1 class='center' id='heading'>Calculatron</h1>
<input type="text" disabled id='screen' value="">
<div class='row'>
<div class='col-xs-2 col-xs-offset-2'>
<button class='calc-btn clear-btn' id='oper-ac'>AC</button>
</div>
<div class='col-xs-2'>
<button class='calc-btn clear-btn' id='oper-ce'>CE</button>
</div>
<div class='col-xs-2'>
<button class='calc-btn oper-btn' id='oper-percent'>%</button>
</div>
<div class='col-xs-2'>
<button class='calc-btn oper-btn' id='oper-divide' operator='/'>÷</button>
</div>
</div>
<div class='row'>
<div class='col-xs-2 col-xs-offset-2'>
<button class='calc-btn num-btn' id='num-9' number='9'>9</button>
</div>
<div class='col-xs-2'>
<button class='calc-btn num-btn' id='num-8' number='8'>8</button>
</div>
<div class='col-xs-2'>
<button class='calc-btn num-btn' id='num-7' number='7'>7</button>
</div>
<div class='col-xs-2'>
<button class='calc-btn oper-btn' id='oper-times' operator='*'>×</button>
</div>
</div>
<div class='row'>
<div class='col-xs-2 col-xs-offset-2'>
<button class='calc-btn num-btn' id='num-6' number='6'>6</button>
</div>
<div class='col-xs-2'>
<button class='calc-btn num-btn' id='num-5' number='5'>5</button>
</div>
<div class='col-xs-2'>
<button class='calc-btn num-btn' id='num-4' number='4'>4</button>
</div>
<div class='col-xs-2'>
<button class='calc-btn oper-btn' id='oper-minus' operator='-'>−</button>
</div>
</div>
<div class='row'>
<div class='col-xs-2 col-xs-offset-2'>
<button class='calc-btn num-btn' id='num-3' number='3'>3</button>
</div>
<div class='col-xs-2'>
<button class='calc-btn num-btn' id='num-2' number='2'>2</button>
</div>
<div class='col-xs-2'>
<button class='calc-btn num-btn' id='num-1' number='1'>1</button>
</div>
<div class='col-xs-2'>
<button class='calc-btn oper-btn' id='oper-plus' operator='+'>+</button>
</div>
</div>
<div class='row'>
<div class='col-xs-2 col-xs-offset-2'>
<button class='calc-btn num-btn' id='num-0' number='0'>0</button>
</div>
<div class='col-xs-2'>
<button class='calc-btn num-btn' id='num-dec' number='.'>.</button>
</div>
<div class='col-xs-4'>
<button class='calc-btn' id='equals-btn'>=</button>
</div>
</div>
</div>
</div>
</div>
<h3><a href='https://github.com/4xDMG/freeCodeCamp/tree/master/Front-End-Development-Projects/Calculator' target=_blank>See source code on GitHub</a></h3>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="./js/calculator-js.js"></script>
</body>
</html>