-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdebug-fix.js
More file actions
30 lines (26 loc) · 1.22 KB
/
Copy pathdebug-fix.js
File metadata and controls
30 lines (26 loc) · 1.22 KB
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
27
28
29
30
// Debug script to check if talks array exists and is accessible
document.addEventListener('DOMContentLoaded', function() {
console.log('Debug: Checking if talks array is accessible in palestras.html');
try {
if (typeof talks !== 'undefined') {
console.log('Success: Talks array found with', talks.length, 'items');
// Código de correção para palestras removido - Camila Marques e Laryssa Rocha não fazem mais parte do evento
// Now render the talks
if (typeof renderTalksPage === 'function') {
console.log('Calling renderTalksPage() function');
renderTalksPage();
} else {
console.error('Error: renderTalksPage function not found');
}
// Render timeline as well
if (typeof renderScheduleTimeline === 'function') {
console.log('Calling renderScheduleTimeline() function');
renderScheduleTimeline();
}
} else {
console.error('Error: talks array is not defined or not accessible');
}
} catch (error) {
console.error('Error in debug script:', error);
}
});