From 5ce50ee8d3e46abba2340c940b8ce11105645f9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Dvo=C5=99=C3=A1k?= <150935816+Dvorinka@users.noreply.github.com> Date: Fri, 23 May 2025 10:39:39 +0200 Subject: [PATCH] Add files via upload --- kontakt/index.html | 47 ++++++++++++++++++---------------------------- 1 file changed, 18 insertions(+), 29 deletions(-) diff --git a/kontakt/index.html b/kontakt/index.html index 83330d8..3e01fde 100644 --- a/kontakt/index.html +++ b/kontakt/index.html @@ -269,37 +269,26 @@ .join(''); } - function formatContactCard(contact, searchQuery) { - const name = contact.name || 'Bez jména'; - const position = contact.position || ''; + function formatContactCard(contact, highlight = '') { + const highlightClass = highlight ? 'bg-yellow-100' : ''; - return `
${contact.position || '—'}
+${highlightText(position, searchQuery)}
` : ''} -Bez telefonu
' : ''} -