[F.END] Display cancelled/not confirmed

This commit is contained in:
giuliof 2020-04-17 22:41:50 +02:00
parent 14b36061f5
commit 97dc951052
1 changed files with 2 additions and 2 deletions

View File

@ -60,13 +60,13 @@ function zerocalcareDisplay() {
// Check if event is not confirmed // Check if event is not confirmed
if (typeof json_obj[i]['STATUS'] === 'string') { if (typeof json_obj[i]['STATUS'] === 'string') {
// Strike time, date and location to remark this concept // Strike time, date and location to remark this concept
var strikeEvent = function () { var strikeEvent = function (message) {
dateText.style.textDecoration = 'line-through'; dateText.style.textDecoration = 'line-through';
timeText.style.textDecoration = 'line-through'; timeText.style.textDecoration = 'line-through';
locationText.style.textDecoration = 'line-through'; locationText.style.textDecoration = 'line-through';
var unconfirmedElement = document.createElement('div'); var unconfirmedElement = document.createElement('div');
unconfirmedElement.style.fontWeight = 'bold'; unconfirmedElement.style.fontWeight = 'bold';
unconfirmedElement.appendChild(document.createTextNode('⚠️ Non confermato!')); unconfirmedElement.appendChild(document.createTextNode(message));
eventElement.appendChild(unconfirmedElement); eventElement.appendChild(unconfirmedElement);
} }