|
@@ -39,3 +39,18 @@
|
|
// };
|
|
// };
|
|
// table.onmouseover = (event) => changeBg(event, "black", "white");
|
|
// table.onmouseover = (event) => changeBg(event, "black", "white");
|
|
// table.onmouseout = (event) => changeBg(event, "", "");
|
|
// table.onmouseout = (event) => changeBg(event, "", "");
|
|
|
|
+
|
|
|
|
+// CALC
|
|
|
|
+// calc.onclick = function () {
|
|
|
|
+// resultNumber = +number1.value + +number2.value;
|
|
|
|
+// var result = document.getElementById("result");
|
|
|
|
+// result.value = resultNumber;
|
|
|
|
+// };
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+// Calc Live
|
|
|
|
+// function calc() {
|
|
|
|
+// result.value =( (+number1.value) + (+number2.value));
|
|
|
|
+// }
|
|
|
|
+// number1.oninput = calc;
|
|
|
|
+// number2.oninput = calc;
|