Update main.js
This commit is contained in:
parent
083cc2d6c4
commit
4ae3aef7ef
@ -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");
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user