Commit Graph

6 Commits

Author SHA1 Message Date
itsaygea 33029e53aa Add extensive debugging for suggestion clicks 2026-01-24 09:13:23 -07:00
itsaygea 4017893616 Use event delegation for suggestion clicks + add debug log
- Single onclick handler on list container
- Uses closest() to find clicked item
- Added console.log for debugging
2026-01-24 09:10:24 -07:00
itsaygea ac3c07cbe5 Fix clickable suggestions using addEventListener
- Use data-operator-id attribute instead of inline onclick
- Add event listeners after creating DOM elements
- More reliable than global function approach
2026-01-24 09:08:15 -07:00
itsaygea 03b88dbddc Fix: Make onclick handlers work by using window.*
- addToTeamFromSuggestion - now global, clicking suggestions works
- clearTeam - now global
- showTeamBuilds - now global
- closeBuildsModal - now global

Inline onclick handlers need global scope functions
2026-01-24 09:04:37 -07:00
itsaygea 9152adfc46 Make team suggestions clickable
- Added addToTeamFromSuggestion function
- Clicking a suggestion now adds it to your team (up to 4 operators)
- Visual feedback with cursor pointer and + indicator
2026-01-24 08:53:29 -07:00
itsaygea e2d79ba453 Split files into CSS/JS/HTML + add mobile menu
- Extracted CSS to css/style.css (978 lines)
- Extracted JS to js/main.js (708 lines)
- index.html now only 608 lines (was 2289)
- Added mobile hamburger menu for navigation
- Mobile menu toggles with animated icon
- Menu closes when clicking links or outside
2026-01-24 07:45:59 -07:00