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

github.com/zhe/hugo-theme-slim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/slim.js')
-rw-r--r--static/js/slim.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/static/js/slim.js b/static/js/slim.js
new file mode 100644
index 0000000..8514e38
--- /dev/null
+++ b/static/js/slim.js
@@ -0,0 +1,4 @@
+document.querySelector('.nav-btn').onclick = function(e) {
+ e.preventDefault();
+ this.classList.toggle('is-on');
+};