Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Updated js and html files #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion calculator.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
border: 1px solid #c4c4c4;
background-color: transparent;
font-size: 2rem;
color: #333;
color: lightblue;
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);
Expand Down
4 changes: 4 additions & 0 deletions task.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const performCalculation = {
'-': (firstOperand, secondOperand) => firstOperand - secondOperand,

'=': (firstOperand, secondOperand) => secondOperand

'*': (firstOperand, secondOperand) => firstOperand * secondOperand,

'/': (firstOperand, secondOperand) => firstOperand / secondOperand,
};

function inputDigit(digit) {
Expand Down