Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/index.js')
-rw-r--r--static/js/index.js2
1 files changed, 2 insertions, 0 deletions
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) {