Add support modal and toggle button for user feedback and support

This commit is contained in:
Will Miao
2025-03-05 20:47:17 +08:00
parent 520a4b10ae
commit 493dff5c19
5 changed files with 254 additions and 0 deletions

View File

@@ -52,6 +52,15 @@ export class ModalManager {
document.body.classList.remove('modal-open');
}
});
// Add supportModal registration
this.registerModal('supportModal', {
element: document.getElementById('supportModal'),
onClose: () => {
this.getModal('supportModal').element.style.display = 'none';
document.body.classList.remove('modal-open');
}
});
document.addEventListener('keydown', this.boundHandleEscape);
this.initialized = true;