major updates across the theme to make it more user-centered

This commit is contained in:
Tom Johnson
2015-05-05 14:06:11 -07:00
parent a44149986a
commit 18e31994f2
67 changed files with 1048 additions and 683 deletions

View File

@@ -30,11 +30,20 @@ function setNavigation() {
}
});
$("ul.pagination a").each(function () {
var href = $(this).attr('href');
if (path.substring(0, href.length) === href) {
$(this).closest('li').addClass('active');
$(this).closest('li').parents().addClass('active');
}
}
})
}
)}
$('#mysidebar').height($(".nav").height());
// only use the affix class if the viewport is greater than 500px. otherwise it gets cut off.
@@ -42,13 +51,15 @@ $('#mysidebar').height($(".nav").height());
$( document ).ready(function() {
var h = $(window).height();
console.log (h);
if (h > 700) {
if (h > 600) {
$( "#mysidebar" ).attr("class", "nav affix");
}
});
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip({
placement : 'top'
});
});
});