diff --git a/calculator.html b/calculator.html index 83f569b..0d5c2c6 100644 --- a/calculator.html +++ b/calculator.html @@ -43,7 +43,7 @@ border: 1px solid #c4c4c4; background-color: transparent; font-size: 2rem; - color: #333; + color: #2ECC71; background-image: linear-gradient(to bottom, transparent, transparent 50%, rgba(0, 0, 0, .04)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 1px 0 0 rgba(255, 255, 255, .45), inset 0 -1px 0 0 rgba(255, 255, 255, .15), 0 1px 0 0 rgba(255, 255, 255, .15); text-shadow: 0 1px rgba(255, 255, 255, .4); diff --git a/task.js b/task.js index afea252..dfc9a98 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 };