On page load, scroll sidebar to active section.

This commit is contained in:
asolove 2015-12-26 20:45:50 -07:00
parent a2b25232d3
commit 1de00f9cd7
1 changed files with 7 additions and 0 deletions

View File

@ -50,6 +50,13 @@ $( document ).ready(function() {
});
// Scroll sidebar to current active section
var activeSection = sidebar.find(".active");
if(activeSection.length) {
sidebar.scrollTop(activeSection.offset().top);
}
// Print button
$("#print-button").click(function(){
var printWindow = window.open("print.html");