-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
26 lines (26 loc) · 843 Bytes
/
app.js
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
define(["require", "exports", './file1'], function (require, exports, file1_1) {
function main(oper) {
var x = document.getElementById("x");
var y = document.getElementById("y");
var CalcObj = new file1_1.Calc(x, y);
var answer = document.getElementById("answer");
switch (oper) {
case "sum":
answer.value = CalcObj.Sum();
break;
case "mul":
answer.value = CalcObj.Mul();
break;
case "diff":
answer.value = CalcObj.Diff();
break;
case "div":
answer.value = CalcObj.Div();
break;
default:
alert("something is wrong");
}
}
window["main"] = main;
});
//# sourceMappingURL=app.js.map