Skip to content

Commit e011611

Browse files
committed
fixed issue visibility #18
1 parent 15e6ded commit e011611

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"liveServer.settings.port": 5501
2+
"liveServer.settings.port": 5502
33
}

hist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function showHistory() {
2323
const element = calcHistory[index];
2424
let historyItem = document.createElement('div');
2525
historyItem.className = 'historyelement';
26-
historyItem.innerHTML = `${element.lastScreenValue} = ${element.result}`;
26+
historyItem.innerHTML = `${element.lastScreenValue} = <span style="color: ${element.result < 0 ? 'red' : 'green'}">${element.result}</span>`;//Actually I have added this that makes red color in the history section .............
2727
history.appendChild(historyItem);
2828
if (index > 0) history.appendChild(document.createElement('hr'));
2929
}

0 commit comments

Comments
 (0)