Template:SUSTC-Shenzhen/themeJs

From 2014.igem.org

(Difference between revisions)
Line 54: Line 54:
   </script>
   </script>
   <script>
   <script>
-
   $('#toc-body a').click(function() {
+
   $('#page-contents a').click(function() {
     console.log(this.hash);
     console.log(this.hash);
     if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')  
     if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')  

Revision as of 02:02, 17 October 2014