m |
m |
||
Line 20: | Line 20: | ||
var nav = $("#toc"); | var nav = $("#toc"); | ||
$(window).scroll(function () { | $(window).scroll(function () { | ||
− | if ($(this).scrollTop() > | + | if ($(this).scrollTop() > 40) { |
nav.addClass("fixedmenups"); | nav.addClass("fixedmenups"); | ||
} else { | } else { |
Revision as of 11:32, 10 July 2016