Template:SUSTC-Shenzhen/themeJs

From 2014.igem.org

(Difference between revisions)
Line 70: Line 70:
   </script>
   </script>
   <script>
   <script>
-
  $("#toc")
+
  var toc_tbl = $("#toc")
-
    .prop("id","table-contents")
+
    .prop("id","table-contents")
-
    .addClass("panel panel-primary")
+
    .addClass("panel panel-primary")
-
    .removeClass("toc")
+
    .removeClass("toc")
-
    .children("h2")
+
    .children()
-
      .remove();
+
      .clone();
 +
 +
$("#document-sidebar")
 +
.children()
 +
.remove()
 +
.end();
 +
 
 +
toc_tbl.appendTo("#document-sidebar");
   </script>
   </script>
</footer>
</footer>
</html>
</html>

Revision as of 12:08, 27 September 2014