Difference between revisions of "Template:SJTU-BioX-Shanghai/Alpha/Header"
Line 9: | Line 9: | ||
$('#toc span.toctext').click( | $('#toc span.toctext').click( | ||
function(evnt){ | function(evnt){ | ||
+ | alert(); return; | ||
var ele = $(evnt.target.parentElement.attributes["href"].nodeValue) | var ele = $(evnt.target.parentElement.attributes["href"].nodeValue) | ||
console.log(ele, ele.offset().top); | console.log(ele, ele.offset().top); |
Revision as of 01:27, 17 August 2015