Update main.js

This commit is contained in:
Dean Attali 2015-09-08 03:09:02 -07:00
parent 083cc2d6c4
commit 4ae3aef7ef
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
// Dean Attali / Beautiful Jekyll 2015
// Shorten the navbar after scrolling a little bit down
$(window).scroll(function() {
if ($(".navbar").offset().top > 50) {
@ -13,4 +15,4 @@ $('#main-navbar').on('show.bs.collapse', function () {
})
$('#main-navbar').on('hidden.bs.collapse', function () {
$(".navbar").removeClass("top-nav-expanded");
})
})