mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-09 23:09:47 +00:00
Fix modal closing
This commit is contained in:
parent
5ccd6795b2
commit
2246ec7370
10 changed files with 10 additions and 9 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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="}}
|
|
@ -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");}});
|
File diff suppressed because one or more lines are too long
|
@ -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="}}
|
|
@ -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");}});
|
File diff suppressed because one or more lines are too long
|
@ -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="}}
|
|
@ -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");}});
|
Loading…
Reference in a new issue