Goondex/internal/web/static/css/gx/GX_Pagination.js
Stu Leak 16fb407a3c v0.1.0-dev4: Add web frontend with UI component library
- Implement full web interface with Go html/template server
- Add GX component library (buttons, dialogs, tables, forms, etc.)
- Create scene/performer/studio/movie detail and listing pages
- Add Adult Empire scraper for additional metadata sources
- Implement movie support with database schema
- Add import and sync services for data management
- Include comprehensive API and frontend documentation
- Add custom color scheme and responsive layout

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 10:47:30 -05:00

15 lines
529 B
JavaScript

document.querySelectorAll(".gx-pagination").forEach(pag => {
pag.addEventListener("keydown", e => {
const buttons = [...pag.querySelectorAll(".gx-page-btn:not(.disabled)")];
const active = pag.querySelector(".gx-page-btn.active");
const index = buttons.indexOf(active);
if (e.key === "ArrowRight" && index < buttons.length - 1) {
buttons[index + 1].focus();
}
if (e.key === "ArrowLeft" && index > 0) {
buttons[index - 1].focus();
}
});
});