|
|
@ -6,7 +6,6 @@ modal.addEventListener('click', function (event) {
|
|
|
|
modalId.classList.add('open');
|
|
|
|
modalId.classList.add('open');
|
|
|
|
|
|
|
|
|
|
|
|
var exits = modalId.querySelectorAll('.modal-exit');
|
|
|
|
var exits = modalId.querySelectorAll('.modal-exit');
|
|
|
|
console.log(exits)
|
|
|
|
|
|
|
|
exits.forEach(function (exit) {
|
|
|
|
exits.forEach(function (exit) {
|
|
|
|
exit.addEventListener('click', function (event) {
|
|
|
|
exit.addEventListener('click', function (event) {
|
|
|
|
event.preventDefault();
|
|
|
|
event.preventDefault();
|
|
|
|