diff --git a/calculator.html b/calculator.html index 83f569b..88dda0e 100644 --- a/calculator.html +++ b/calculator.html @@ -51,6 +51,7 @@ button:hover { background-color: #eaeaea; + transition: 0.5s; } .operator { @@ -85,6 +86,10 @@ grid-gap: 20px; padding: 20px; } + .num { + color: #000; + background-color: #c5abac; + } @@ -95,28 +100,28 @@
- - - - + + + + - - - + + + - - - + + + - - - + + + - - + + diff --git a/task.js b/task.js index afea252..d6ca0af 100644 --- a/task.js +++ b/task.js @@ -11,6 +11,10 @@ const performCalculation = { '-': (firstOperand, secondOperand) => firstOperand - secondOperand, + '*': (firstOperand, secondOperand) => firstOperand * secondOperand, + + '/': (firstOperand, secondOperand) => firstOperand / secondOperand, + '=': (firstOperand, secondOperand) => secondOperand }; @@ -103,4 +107,5 @@ keys.addEventListener('click', (event) => { inputDigit(target.value); updateDisplay(); -}); \ No newline at end of file +}); +