-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug-event-test.html
More file actions
42 lines (37 loc) · 1.38 KB
/
Copy pathdebug-event-test.html
File metadata and controls
42 lines (37 loc) · 1.38 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
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Debug Event Handling</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Debug Event Handling Test</h1>
<button id="add-player-btn">Add Player</button>
<button id="bulk-add-btn">Bulk Add Players</button>
<button id="generate-pods-btn">Generate Pods</button>
<button id="reset-all-btn">Reset All</button>
<button id="display-mode-btn">Display Mode</button>
<button id="help-btn">Help</button>
<div id="player-rows-container">
<!-- Player rows will be added here -->
</div>
<div id="output-section">
<div id="results-card"></div>
</div>
</div>
<script src="script.js"></script>
<script>
// Add console logging to see if events are firing
document.addEventListener('click', function(e) {
console.log('Click detected on:', e.target.tagName, e.target.className, e.target.id);
});
// Test if buttons are responding
document.getElementById('add-player-btn').addEventListener('click', function() {
console.log('Add player button clicked directly!');
});
</script>
</body>
</html>