Team Ai
Apppublic

BiLL1403/codegenius-ai-academy-free-programming-logic-course

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
script.js16 linesDownload Raw Back to root
1document.addEventListener('DOMContentLoaded', function() {2    // Initialize tooltips3    const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))4    tooltipTriggerList.map(function (tooltipTriggerEl) {5        return new bootstrap.Tooltip(tooltipTriggerEl)6    });7 8    // Track course clicks9    document.querySelectorAll('custom-course-card').forEach(card => {10        card.addEventListener('click', function() {11            const courseTitle = this.getAttribute('title');12            console.log(`Course selected: ${courseTitle}`);13            // In a real implementation, you would redirect to the course page14        });15    });16});