Initial commit
This commit is contained in:
17
assets/script.js
Normal file
17
assets/script.js
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
function toggleOverlay(id) {
|
||||
document.getElementById(id).style.display = 'flex';
|
||||
['zusage', 'absage'].forEach(otherId => {
|
||||
if (otherId !== id) {
|
||||
document.getElementById(otherId).style.display = 'none';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
document.querySelectorAll('.overlay').forEach(overlay => {
|
||||
overlay.addEventListener('click', function (e) {
|
||||
if (e.target === overlay) {
|
||||
overlay.style.display = 'none';
|
||||
}
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user