Aniworld/src/server/web/static/js/drag_drop.js
Lukas 99e24a2fc3 feat: Integrate HTML templates with FastAPI
- Created template_helpers.py for centralized template rendering
- Added ux_features.css for enhanced UX styling
- Implemented JavaScript modules for:
  - Keyboard shortcuts (Ctrl+K, Ctrl+R navigation)
  - User preferences persistence
  - Undo/redo functionality (Ctrl+Z/Ctrl+Y)
  - Mobile responsive features
  - Touch gesture support
  - Accessibility features (ARIA, focus management)
  - Screen reader support
  - Color contrast compliance (WCAG)
  - Multi-screen support
- Updated page_controller.py and error_controller.py to use template helpers
- Created comprehensive template integration tests
- All templates verified: index.html, login.html, setup.html, queue.html, error.html
- Maintained responsive layout and theme switching
- Updated instructions.md (removed completed task)
- Updated infrastructure.md with template integration details
2025-10-17 12:01:22 +02:00

27 lines
640 B
JavaScript

/**
* Drag and Drop Module
* Handles drag-and-drop functionality for series cards
*/
(function() {
'use strict';
/**
* Initialize drag and drop
*/
function initDragDrop() {
console.log('[Drag & Drop] Module loaded (functionality to be implemented)');
// TODO: Implement drag-and-drop for series cards
// This will allow users to reorder series or add to queue via drag-and-drop
}
// Initialize on DOM ready
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', initDragDrop);
} else {
initDragDrop();
}
})();