Spaces:
Running
Running
File size: 792 Bytes
4b06534 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ```javascript
document.addEventListener('DOMContentLoaded', function() {
// Initialize any interactive elements
console.log('Learning App initialized');
// Example quiz functionality
const quizOptions = document.querySelectorAll('input[name="quiz"]');
quizOptions.forEach(option => {
option.addEventListener('change', function() {
console.log('Selected option:', this.id);
});
});
// Example course card click handler
const courseCards = document.querySelectorAll('.course-card');
courseCards.forEach(card => {
card.addEventListener('click', function() {
console.log('Course selected:', this.querySelector('h3').textContent);
});
});
// Mobile menu toggle would go here
});
``` |