Team:UT-Tokyo/Templates/BeginContent
From 2011.igem.org
(Difference between revisions)
m |
|||
Line 415: | Line 415: | ||
position:absolute; | position:absolute; | ||
z-index:5; | z-index:5; | ||
+ | } | ||
+ | |||
+ | #references ul li { | ||
+ | list-style-type: none; | ||
+ | font-size: 15px; | ||
} | } | ||
Line 682: | Line 687: | ||
*/ | */ | ||
} | } | ||
+ | |||
+ | $('sup.ref').each(function() { | ||
+ | var m = $(this).html(); | ||
+ | var num = m.substr(1, m.length-2); | ||
+ | $(this).css('cursor', 'pointer').css('color', '#7FB9FF').click(function() { | ||
+ | $.scrollTo('#ref_'+num, 0); | ||
+ | $('#references ul li').css('background-color', '#383838'); | ||
+ | $('#ref_'+num).css('background-color', '#655'); | ||
+ | }); | ||
+ | }); | ||
$("p:empty").remove(); // remove empty p element generated by MediaWiki | $("p:empty").remove(); // remove empty p element generated by MediaWiki |
Revision as of 11:07, 3 October 2011