diff --git a/static/js/index.js b/static/js/index.js index 195ad57..08ef756 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -11,9 +11,11 @@ $('a[href^="#"]').click(function(e) { // Modal closer $('.card').click(function () { $($(this).attr('data-target')).addClass('is-active'); + $("html").addClass("modal-open"); }); $('.modal-close').click(function () { $($(this).attr('data-target')).removeClass('is-active'); + $("html").removeClass("modal-open"); }); $(document).keypress(function(e) { if(e.which == 0) {