- 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>
15 lines
529 B
JavaScript
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();
|
|
}
|
|
});
|
|
});
|