From 97dc951052248d6c5e0052184a7cb039f8cacaad Mon Sep 17 00:00:00 2001 From: giuliof Date: Fri, 17 Apr 2020 22:41:50 +0200 Subject: [PATCH] [F.END] Display cancelled/not confirmed --- frontend/frontend.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/frontend.js b/frontend/frontend.js index c186645..7c91c98 100644 --- a/frontend/frontend.js +++ b/frontend/frontend.js @@ -60,13 +60,13 @@ function zerocalcareDisplay() { // Check if event is not confirmed if (typeof json_obj[i]['STATUS'] === 'string') { // Strike time, date and location to remark this concept - var strikeEvent = function () { + var strikeEvent = function (message) { dateText.style.textDecoration = 'line-through'; timeText.style.textDecoration = 'line-through'; locationText.style.textDecoration = 'line-through'; var unconfirmedElement = document.createElement('div'); unconfirmedElement.style.fontWeight = 'bold'; - unconfirmedElement.appendChild(document.createTextNode('⚠️ Non confermato!')); + unconfirmedElement.appendChild(document.createTextNode(message)); eventElement.appendChild(unconfirmedElement); }