bug fixes
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 2m25s
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 2m25s
This commit is contained in:
@@ -145,12 +145,12 @@
|
||||
function openModal(id) {
|
||||
document.getElementById('modal-' + id).style.display = 'flex';
|
||||
}
|
||||
|
||||
function closeModal() {
|
||||
const modals = document.querySelectorAll('.modal-overlay');
|
||||
modals.forEach(el => el.style.display = 'none');
|
||||
}
|
||||
|
||||
// Schließen wenn man daneben klickt
|
||||
|
||||
window.onclick = function(event) {
|
||||
if (event.target.classList.contains('modal-overlay')) {
|
||||
closeModal();
|
||||
|
||||
Reference in New Issue
Block a user