From 9f72a929035c7b072003c63efbf18c04fa9cf066 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:15:26 +0200 Subject: [PATCH] Add files via upload --- kontakt/index.html | 83 ++++++++++++++++++++-------------------------- 1 file changed, 36 insertions(+), 47 deletions(-) diff --git a/kontakt/index.html b/kontakt/index.html index b53af38..4d20adc 100644 --- a/kontakt/index.html +++ b/kontakt/index.html @@ -60,14 +60,14 @@
`; } + function highlightText(text, query) { + if (!query || !text) return text; + const regex = new RegExp(`(${query})`, 'gi'); + return text.replace(regex, '$1'); + } + async function reloadContacts() { const btn = document.getElementById('reloadBtn'); const originalText = btn.innerHTML;