[F.END] Handle description

This commit is contained in:
giuliof 2020-09-20 22:30:09 +02:00
parent bb04543424
commit ad715d301a
1 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,14 @@ function zerocalcareDisplay() {
}
locationElement.appendChild(document.createTextNode('📍 '));
locationElement.appendChild(locationText);
if (json_obj[i]['DESCRIPTION'] !== undefined && json_obj[i]['DESCRIPTION'] != '') {
var descriptionElement = document.createElement('div');
var descriptionText = document.createElement('span');
descriptionText.appendChild(document.createTextNode(json_obj[i]['DESCRIPTION']));
descriptionElement.appendChild(document.createTextNode('📝 '));
descriptionElement.appendChild(descriptionText);
}
eventElement.appendChild(titleElement);
// Check if event is not confirmed