File size: 1,061 Bytes
2fd1f03 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | // Main application script
document.addEventListener('DOMContentLoaded', () => {
// Initialize any necessary functionality
console.log('InterVue Clone loaded');
// Example: Smooth scroll for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Future interview type selection functionality
const interviewCards = document.querySelectorAll('#start-interview [class*="border-gray-200"]');
interviewCards.forEach(card => {
card.addEventListener('click', function() {
// Remove active class from all cards
interviewCards.forEach(c => c.classList.remove('border-indigo-500', 'bg-indigo-50'));
// Add active class to clicked card
this.classList.add('border-indigo-500', 'bg-indigo-50');
});
});
}); |