Difference between revisions of "Template:SJTU-BioX-Shanghai/Alpha/Header"

Line 22: Line 22:
 
   var prev_a = $('#toc a.reading');
 
   var prev_a = $('#toc a.reading');
 
   var a = $('a[herf$="#'+ id +'"]');
 
   var a = $('a[herf$="#'+ id +'"]');
   console.log(prev_a, a);
+
   console.log(prev_a[0], a[0]);
 
   prev_a.removeClass('reading');
 
   prev_a.removeClass('reading');
 
   a.addClass('reading');
 
   a.addClass('reading');

Revision as of 02:52, 17 August 2015