in js/customscripts.js [4:36]
$(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");
}
// activate tooltips. although this is a bootstrap js function, it must be activated this way in your theme.
$('[data-toggle="tooltip"]').tooltip({
placement: 'bottom'
});
/**
* AnchorJS
*/
anchors.add('h2,h3,h4,h5');
/*To hide and show the bottom button on scroll*/
$(window).scroll(function() {
if ($(this).scrollTop() > 82) {
$("#toTop").addClass("show");
$("#toTop").removeClass("hide");
} else {
$("#toTop").removeClass("show");
$("#toTop").addClass("hide");
}
});
});