mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-09 23:09:47 +00:00
parent
297ac04015
commit
2b57377409
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue