
































































if (!info || !title || !list) return;
const items = Array.from(list.querySelectorAll('li')); const contactItems = items.filter(function(li) { const text = li.textContent.trim(); return text.includes('@') || text.includes('+420') || text.includes('http'); });
if (!contactItems.length) return;
const contactBox = document.createElement('div'); contactBox.className = 'km-contact';
contactItems.forEach(function(li) { const link = li.querySelector('a'); if (link) { contactBox.appendChild(link.cloneNode(true)); } else { const text = li.textContent.trim(); const a = document.createElement('a');
if (text.includes('@')) { a.href = 'mailto:' + text; } else if (text.includes('+420')) { a.href = 'tel:' + text.replace(/\s/g, ''); } else { a.href = text; }
a.textContent = text; contactBox.appendChild(a); }
li.remove(); });
title.insertAdjacentElement('afterend', contactBox); });