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

github.com/varkai/hugo-theme-zozo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/zozo.js')
-rw-r--r--static/js/zozo.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/static/js/zozo.js b/static/js/zozo.js
index 2781442..9aaa550 100644
--- a/static/js/zozo.js
+++ b/static/js/zozo.js
@@ -25,6 +25,21 @@ $(document).ready((function (_this) {
}
})(this))
+// nav-toggle
+$(document).ready((function (_this) {
+ return function () {
+ let nav,icon
+ icon = $('#menu_icon')
+ nav = $('#site_nav')
+ if ($(document).width() < 768) {
+ nav.css('display', 'none')
+ }
+ icon.click(function () {
+ nav.slideToggle(250)
+ })
+ }
+})(this))
+
// fancybox
$(document).ready((function (_this) {
return function() {