2015-09-08 12:09:02 +02:00
|
|
|
// Dean Attali / Beautiful Jekyll 2015
|
|
|
|
|
2015-03-02 21:06:05 +01:00
|
|
|
// Shorten the navbar after scrolling a little bit down
|
|
|
|
$(window).scroll(function() {
|
|
|
|
if ($(".navbar").offset().top > 50) {
|
|
|
|
$(".navbar").addClass("top-nav-short");
|
|
|
|
} else {
|
|
|
|
$(".navbar").removeClass("top-nav-short");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
// On mobile, hide the avatar when expanding the navbar menu
|
|
|
|
$('#main-navbar').on('show.bs.collapse', function () {
|
|
|
|
$(".navbar").addClass("top-nav-expanded");
|
|
|
|
})
|
|
|
|
$('#main-navbar').on('hidden.bs.collapse', function () {
|
|
|
|
$(".navbar").removeClass("top-nav-expanded");
|
2015-09-08 12:09:02 +02:00
|
|
|
})
|
2015-09-17 02:52:35 +02:00
|
|
|
|
|
|
|
// 2fc73a3a967e97599c9763d05e564189
|