-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (36 loc) · 1.25 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
50
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>CalculatorJS</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<body ng-app="calculatorApp">
<div class="container" ng-controller="StartUpController" ng-keypress="escribirTeclado($event)"> <!-- missing backspace. catches with keydown that doesnt catck aritmetic operators keys +-*/ function in escribirTecladoBack
Aritmetic Operators Char Codes are different when handling events with KeyDown rather than KeyPress.
Missing reserch.
-->
<div class="calculadora">
<hgroup>
<h1>JS Calculator</h1>
<h3>by <a href="https://codepen.io/bidego/" target="_blank">bidego</a></h3>
</hgroup>
<form>
<hgroup class="visor">
<h6 ng-bind="acumulador.operacion"></h6>
<h2 ng-bind="acumulador.total"></h2>
</hgroup>
<div class="botones">
<div class="{{boton.class}}" ng-repeat="boton in boton">
<button ng-click="escribir(boton.respuesta)">{{boton.boton}}</button>
</div>
</div>
</form>
</div>
</div>
</body>
<script src='https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js'></script>
<script src="js/index.js"></script>
</body>
</html>