(function(b){b.extend(verge);var d=b("body"),a=b("#navigation"),e=b("#main_content"),j=b("#onSite"),h=b("footer"),c=b("header"),f=0,i=function(l,o){var k=0,p=[],n=b("<div>"),q=n,m=null;b(l).find(":header").each(function(){var s=parseInt(this.nodeName.charAt(1)),u,t;if(k<s){k=s;m=b("<ol/>");n.append(m)}else{if(k===s){}else{if(k>s){u=k-s;k=s;for(t=0;t<u;t++){n=b(m.parent().get(0));m=b(n.parent().get(0))}}}}var v=(b(this).text()),r=b('<li class="header'+s+'"><a href="#'+b(this).attr("id")+'">'+v+"</a></li>");m.append(r);n=r});b(o).html(q)},g=function(){j.find("a").removeClass("in-viewport");j.find("a").each(function(){var k=b(this);if(b.inViewport(b(k.attr("href")))){k.addClass("in-viewport")}})};i(e,j);a.css("max-height",b(window).height());e.css("min-height",b(window).height()-(h.outerHeight()+c.outerHeight()));b("#navHandle").click(function(k){d.toggleClass("menu-open");k.preventDefault()});window.setInterval(function(){if(f===d[0].scrollTop){return}f=d[0].scrollTop;if(d[0].scrollTop>100){d.addClass("scroll");a.css("height",b(window).height());g()}else{d.removeClass("scroll")}if(b.inViewport(h)){a.css("height",b(window).height()-h.outerHeight())}},500)}(jQuery,verge));
(function(b){b.extend(verge);var c=b("body"),d=b("#navigation"),e=b("#main_content"),f=b("#onSite"),g=b("footer"),h=b("header"),j=b(window),k=0,m=function(){f.find("a").removeClass("in-viewport"),f.find("a").each(function(){var n=b(this);b.inViewport(b(n.attr("href")))&&n.addClass("in-viewport")})};(function(n,o){var p=0,r=b("<div>"),s=r,t=null;b(n).find(":header").each(function(){var v,w,u=parseInt(this.nodeName.charAt(1));if(p<u)p=u,t=b("<ol/>"),r.append(t);else if(p===u);else if(p>u)for(v=p-u,p=u,w=0;w<v;w++)r=b(t.parent().get(0)),t=b(r.parent().get(0));var x=b(this).text(),y=b("<li class=\"header"+u+"\"><a href=\"#"+b(this).attr("id")+"\">"+x+"</a></li>");t.append(y),r=y}),b(o).html(s)})(e,f),d.css("max-height",j.height()),e.css("min-height",j.height()-(g.outerHeight()+h.outerHeight())),b("#navHandle").click(function(n){c.toggleClass("menu-open"),n.preventDefault()}),window.setInterval(function(){var n=j.scrollTop();k===n||(k=n,100<n?(c.addClass("scroll"),d.css("height",j.height()),m()):c.removeClass("scroll"),b.inViewport(g)&&d.css("height",j.height()-g.outerHeight()))},500)})(jQuery,verge);

Update app.min.js