-
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
This is absolutely not up to our standards right now:
$('#nutri_modal').click(function() {
$("#nutriscore").css("display", "block")
$(".container").addClass('modalIsOpen').removeClass('modalIsClosed')
event.stopPropagation();
});
$('.modal_close').click(function() {
$("#nutriscore").addClass('fadeOutDown')
$(".container").removeClass('modalIsOpen').addClass('modalIsClosed')
setTimeout(function() {
$("#nutriscore").css("display", "none")
$("#nutriscore").removeClass('fadeOutDown')
$("#nutriscore").addClass('fadeInUp')
}, 200);
});
Please consider using a solution that targets all modals for example with data-trigger
/data-toggle
or sth else.