-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
17 lines (14 loc) · 513 Bytes
/
main.js
File metadata and controls
17 lines (14 loc) · 513 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$(document).ready(function() {
// main menu toggle
var toggleButton = document.getElementById("menu-toggle");
var menu = document.getElementById("primary-nav");
if (toggleButton && menu) {
toggleButton.addEventListener("click", function() {
menu.classList.toggle("js-menu-is-open");
});
}
// initialize smooth scroll
$("a").smoothScroll({ offset: -20 });
// add lightbox class to all image links
$("a[href$='.jpg'], a[href$='.png'], a[href$='.gif']").attr("data-lity", "");
});