-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (33 loc) · 1.45 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
<!doctype html>
<html ng-app="myCalculator">
<head>
<link rel="stylesheet" href="css/style.css">
</head>
<body ng-controller="myCalculateCtrl">
<div class="container">
<div class="page-header">
<h1>Calculangular</h1>
</div>
<!--<div ng-view></div>-->
<div align="center">
<div class="inputDiv center">
<input class="inputBox" ng-model="operand1" type="text">
<input class="inputBox" ng-model="operand2" type="text">
</div>
<div class="calculatorButtons center">
<button ng-click="add()" class="getCalculating">+</button>
<button ng-click="subtract()" class="getCalculating">-</button>
<button ng-click="multiply()" class="getCalculating">x</button>
<button ng-click="divide()" class="getCalculating">/</button>
</div>
<div>
<p>The result of {{math}} {{op1}} {{word}} {{op2}} is {{result}}.</p>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.7/angular.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.7/angular-route.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.7/angular-resource.js"></script>
<script src="controller.js"></script>
</body>
</html>