Difference between revisions of "Template:SJTU-BioX-Shanghai/Alpha/Header"
Line 24: | Line 24: | ||
console.log(prev_a[0], a[0]); | console.log(prev_a[0], a[0]); | ||
prev_a.removeClass('reading'); | prev_a.removeClass('reading'); | ||
+ | prev_a.addClass('reading'); | ||
a.addClass('reading'); | a.addClass('reading'); | ||
} | } | ||
Line 29: | Line 30: | ||
$('#toc div#toctitle + ul a').click( | $('#toc div#toctitle + ul a').click( | ||
function(evnt){ | function(evnt){ | ||
+ | setTimeout("scrollBy(0, -20)", 10);return; | ||
evnt.preventDefault(); | evnt.preventDefault(); | ||
Revision as of 06:48, 17 August 2015