Skip to content

Commit

Permalink
Merge pull request #184 from unki11/main
Browse files Browse the repository at this point in the history
Sidebar position issue
  • Loading branch information
dokabi authored Aug 31, 2023
2 parents ed54ddb + b692c59 commit 9fcd573
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions js/customscripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@ $('#mysidebar').height($(".nav").height());

$( document ).ready(function() {

//this script says, if the height of the viewport is greater than 800px, then insert affix class, which makes the nav bar float in a fixed
// position as your scroll. if you have a lot of nav items, this height may not work for you.
var h = $(window).height();
//console.log (h);
if (h > 800) {
$( "#mysidebar" ).attr("class", "nav affix");
}
$( "#mysidebar" ).attr("class", "nav affix");

// activate tooltips. although this is a bootstrap js function, it must be activated this way in your theme.
$('[data-toggle="tooltip"]').tooltip({
placement : 'top'
Expand Down

0 comments on commit 9fcd573

Please sign in to comment.