-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
37 lines (31 loc) · 828 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$(function() {
$.scrollify({
section : ".scroll-section",
sectionName : "section-name",
interstitialSection : "header-wrapper",
easing: "easeOutExpo",
scrollSpeed: 1100,
offset : 0,
scrollbars: false,
standardScrollElements: "",
setHeights: true,
overflowScroll: true,
updateHash: true,
touchScroll:true,
before:function() {},
after:function() {},
afterResize:function() {},
afterRender:function() {
$(".site-logo a, .main-nav a, .main-footer a").on("click",$.scrollify.move);
}
});
});
function updateMenuButton() {
$('.nav-toggle, .nav-wrapper, .nav-container, .main-nav, .site-logo ').toggleClass('is-active');
}
$(document).ready(function() {
$('.nav-toggle').click(function(e){
e.preventDefault();
updateMenuButton();
});
});