// 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");
})

// If the page was given multiple large images to randomly select from
$("#header-big-imgs").load(function() {
  if ($("#header-big-imgs").length > 0) {
    var bigImgEl = $("#header-big-imgs")[0];
    var numImgs = bigImgEl.getAttribute("data-num-img");
	var randNum = Math.floor((Math.random() * numImgs) + 1);
    var src = bigImgEl.getAttribute("data-big-img-" + randNum);
    $(".intro-header.big-img").css("background-image", 'url(' + src + ')');
  }
});
@@ -628,16 +628,34 @@
 ion() %7B%0A
+console.log(%22F%22);%0A
   if ($(
@@ -991,12 +991,64 @@
 )');%0A  %7D%0A%7D);
+%0A%0A$(document).ready(function() %7Bconsole.log(%22H%22);%7D);

add js tests