Update main.js

This commit is contained in:
Dean Attali 2015-09-08 03:09:02 -07:00
parent 083cc2d6c4
commit 4ae3aef7ef

View File

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