major updates across the theme to make it more user-centered
This commit is contained in:
@@ -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'
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user