From 6850de022bcf8c41229a1d4f734fdfe26a3e5ae2 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 09:30:12 +0200 Subject: [PATCH] Add files via upload --- kontakt/index.html | 50 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/kontakt/index.html b/kontakt/index.html index 9bddcd6..312dcce 100644 --- a/kontakt/index.html +++ b/kontakt/index.html @@ -55,17 +55,22 @@ - -
- - - + +
+
+ + +
@@ -296,6 +301,29 @@
`; } + function showContacts(type) { + const mainDiv = document.getElementById('contacts'); + const internalDiv = document.getElementById('internal-contacts'); + const mainBtn = document.getElementById('showMainContacts'); + const internalBtn = document.getElementById('showInternalContacts'); + + if (type === 'main') { + mainDiv.classList.remove('hidden'); + internalDiv.classList.add('hidden'); + mainBtn.classList.add('bg-blue-600', 'text-white'); + mainBtn.classList.remove('bg-gray-100', 'text-gray-700'); + internalBtn.classList.remove('bg-blue-600', 'text-white'); + internalBtn.classList.add('bg-gray-100', 'text-gray-700'); + } else { + mainDiv.classList.add('hidden'); + internalDiv.classList.remove('hidden'); + mainBtn.classList.remove('bg-blue-600', 'text-white'); + mainBtn.classList.add('bg-gray-100', 'text-gray-700'); + internalBtn.classList.add('bg-blue-600', 'text-white'); + internalBtn.classList.remove('bg-gray-100', 'text-gray-700'); + } + } + async function reloadContacts() { const btn = document.getElementById('reloadBtn'); const originalText = btn.innerHTML;