Skip to content

Commit 9573ea2

Browse files
Merge pull request harsh98trivedi#26 from Akshat162001/master
fixed issue visibility harsh98trivedi#18
2 parents e89e08f + e011611 commit 9573ea2

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)