diff --git a/webseite/assets/js/search.js b/webseite/assets/js/search.js deleted file mode 100644 index 0fa586b..0000000 --- a/webseite/assets/js/search.js +++ /dev/null @@ -1,31 +0,0 @@ -// Update search function with fallback animation -function handleSearch() { - const searchTerm = document.getElementById('searchInput').value.toLowerCase(); - const topicCards = document.querySelectorAll('.topic-card'); - - topicCards.forEach(card => { - const title = card.querySelector('.topic-title')?.textContent.toLowerCase() || ''; - const description = card.querySelector('.topic-description')?.textContent.toLowerCase() || ''; - const relatedTopics = Array.from(card.querySelectorAll('.related-topics li')) - .map(li => li.textContent.toLowerCase()) - .join(' '); - - const content = `${title} ${description} ${relatedTopics}`; - - if (content.includes(searchTerm)) { - card.style.display = 'block'; - if (window.gsap) { - gsap.to(card, { - opacity: 1, - y: 0, - duration: 0.3 - }); - } else { - card.style.opacity = 1; - card.style.transform = 'translateY(0)'; - } - } else { - card.style.display = 'none'; - } - }); -} \ No newline at end of file diff --git a/webseite/header.php b/webseite/header.php index 3e53161..2684036 100644 --- a/webseite/header.php +++ b/webseite/header.php @@ -17,12 +17,11 @@