From da633f4466afc63a33b4ef8b686ab44f8849e456 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Thu, 30 May 2024 19:30:34 +0200 Subject: [PATCH] show contact list before description --- app_only.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app_only.html b/app_only.html index 9ea73fd..6392c0e 100644 --- a/app_only.html +++ b/app_only.html @@ -863,6 +863,13 @@ questionContainer.appendChild(buttonContainer); + if ('contacts' in question) { + Object.keys(question.contacts).forEach(function(key) { + var contact = question.contacts[key]; + renderContact(contact.name, contact.title, contact.tel, contact.mail, contact.web, contact.address); + }); + } + if ("description" in question) { var descriptionDiv = document.createElement('div'); descriptionDiv.classList.add('descriptionContainer'); @@ -871,15 +878,8 @@ }; feather.replace(); - questionContainer.classList.add('show'); - if ('contacts' in question) { - Object.keys(question.contacts).forEach(function(key) { - var contact = question.contacts[key]; - renderContact(contact.name, contact.title, contact.tel, contact.mail, contact.web, contact.address); - }); - } }, 500); }