Spaces:
Configuration error
Configuration error
File size: 606 Bytes
298575c dab6192 298575c dab6192 298575c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
document.addEventListener('DOMContentLoaded', function() {
// Tab switching functionality for code preview
const tabs = document.querySelectorAll('custom-code-preview .tab');
tabs.forEach(tab => {
tab.addEventListener('click', function() {
tabs.forEach(t => t.classList.remove('active'));
this.classList.add('active');
});
});
// Sidebar navigation
const logo = document.querySelector('custom-sidebar .logo');
if (logo) {
logo.addEventListener('click', function() {
window.location.href = '/';
});
}
});
|