Difference between revisions of "Template:SJTU-BioX-Shanghai/Alpha/Header"
Line 6: | Line 6: | ||
ctt.classList.toggle('nav-toggle') | ctt.classList.toggle('nav-toggle') | ||
} | } | ||
+ | function init() { | ||
+ | $('#toc ul a').click(function(){setTimeout("scrollBy(0, -20)", 100)}) | ||
+ | } | ||
+ | |||
+ | $(document).ready(init) | ||
</script> | </script> | ||
Line 109: | Line 114: | ||
border-left: 1em solid; | border-left: 1em solid; | ||
padding-left: 1em; | padding-left: 1em; | ||
+ | } | ||
+ | #toc ul ul a { | ||
+ | padding-left: 3em; | ||
} | } | ||
Revision as of 14:45, 16 August 2015