Fix modal closing

This commit is contained in:
Hanzei 2018-07-19 15:15:30 +02:00
parent 5ccd6795b2
commit 2246ec7370
No known key found for this signature in database
GPG key ID: 69A2DEFD98937BA0
10 changed files with 10 additions and 9 deletions

View file

@ -20,5 +20,6 @@ $('.modal-close').click(function () {
$(document).keypress(function(e) { $(document).keypress(function(e) {
if(e.which == 0) { if(e.which == 0) {
$('.modal.is-active').removeClass('is-active'); $('.modal.is-active').removeClass('is-active');
$("html").removeClass("modal-open");
} }
}); });

View file

@ -1 +1 @@
{"Target":"js/bundle.1234609e6363cb2247099ce4cc4701ab8e722de386b18674fc5d19941697d812.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-EjRgnmNjyyJHCZzkzEcBq45yLeOGsYZ0/F0ZlBaX2BI="}} {"Target":"js/bundle.41083b6c6cc8f18bf6349ab84f46b25dd6373822f5450e0064959d72e42b36f5.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-QQg7bGzI8Yv2NJq4T0ayXdY3OCL1RQ4AZJWdcuQrNvU="}}

View file

@ -1,2 +1,2 @@
$('a[href^="#"]').click(function(e){e.preventDefault();$('html, body').animate({scrollTop:$(this.hash).offset().top},500);$("#nav-menu").removeClass("is-active");return true;}) $('a[href^="#"]').click(function(e){e.preventDefault();$('html, body').animate({scrollTop:$(this.hash).offset().top},500);$("#nav-menu").removeClass("is-active");return true;})
$('.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){$('.modal.is-active').removeClass('is-active');}}); $('.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){$('.modal.is-active').removeClass('is-active');$("html").removeClass("modal-open");}});

View file

@ -1 +1 @@
{"Target":"js/bundle.1234609e6363cb2247099ce4cc4701ab8e722de386b18674fc5d19941697d812.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-EjRgnmNjyyJHCZzkzEcBq45yLeOGsYZ0/F0ZlBaX2BI="}} {"Target":"js/bundle.41083b6c6cc8f18bf6349ab84f46b25dd6373822f5450e0064959d72e42b36f5.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-QQg7bGzI8Yv2NJq4T0ayXdY3OCL1RQ4AZJWdcuQrNvU="}}

View file

@ -1,2 +1,2 @@
$('a[href^="#"]').click(function(e){e.preventDefault();$('html, body').animate({scrollTop:$(this.hash).offset().top},500);$("#nav-menu").removeClass("is-active");return true;}) $('a[href^="#"]').click(function(e){e.preventDefault();$('html, body').animate({scrollTop:$(this.hash).offset().top},500);$("#nav-menu").removeClass("is-active");return true;})
$('.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){$('.modal.is-active').removeClass('is-active');}}); $('.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){$('.modal.is-active').removeClass('is-active');$("html").removeClass("modal-open");}});

View file

@ -1 +1 @@
{"Target":"js/bundle.1234609e6363cb2247099ce4cc4701ab8e722de386b18674fc5d19941697d812.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-EjRgnmNjyyJHCZzkzEcBq45yLeOGsYZ0/F0ZlBaX2BI="}} {"Target":"js/bundle.41083b6c6cc8f18bf6349ab84f46b25dd6373822f5450e0064959d72e42b36f5.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-QQg7bGzI8Yv2NJq4T0ayXdY3OCL1RQ4AZJWdcuQrNvU="}}

View file

@ -1,2 +1,2 @@
$('a[href^="#"]').click(function(e){e.preventDefault();$('html, body').animate({scrollTop:$(this.hash).offset().top},500);$("#nav-menu").removeClass("is-active");return true;}) $('a[href^="#"]').click(function(e){e.preventDefault();$('html, body').animate({scrollTop:$(this.hash).offset().top},500);$("#nav-menu").removeClass("is-active");return true;})
$('.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){$('.modal.is-active').removeClass('is-active');}}); $('.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){$('.modal.is-active').removeClass('is-active');$("html").removeClass("modal-open");}});