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

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/js/journal.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/static/js/journal.js b/static/js/journal.js
index 50927c6..0848409 100644
--- a/static/js/journal.js
+++ b/static/js/journal.js
@@ -44,6 +44,10 @@ app = new Vue({
this.isDrawerOpen = !this.isDrawerOpen;
document.getElementsByTagName('html')[0].style.overflow = this.isDrawerOpen ? 'hidden' : 'unset';
},
+ closeDrawer() {
+ this.isDrawerOpen = false;
+ document.getElementsByTagName('html')[0].style.overflow = this.isDrawerOpen ? 'hidden' : 'unset';
+ },
},
created() {
window.addEventListener('scroll', this.handleScroll);