Template:SUSTC-Shenzhen/main-content-begin

From 2014.igem.org

(Difference between revisions)
 
(8 intermediate revisions not shown)
Line 13: Line 13:
    .removeClass("toc")
    .removeClass("toc")
    .children()
    .children()
 +
            .children()
 +
            .children()
 +
            .children()
      .clone();
      .clone();
          
          
Line 20: Line 23:
.remove()
.remove()
.end()
.end()
-
.html(
+
.html('<div class="bs-docs-sidebar hidden-print hidden-xs hidden-sm" id="page-contents"></div>');
-
'<div class="panel panel-default">' +
+
-
  '<div class="panel-heading">' +
+
-
    '<h3 class="panel-title">Contents</h3>' +
+
-
  '</div>' +
+
-
  '<div class="panel-body" id="toc-body">' +
+
-
    '' +
+
-
  '</div>' +
+
-
'</div>');
+
-
toc_tbl.appendTo("#toc-body");
+
toc_tbl.appendTo("#page-contents");
-
         $("#toctitle,#tocnumber").remove();
+
         $("#page-contents ul").addClass("nav");
 +
        $("#page-contents > ul").addClass("bs-docs-sidenav");
 +
        $("#toctitle").remove();
 +
        $(".tocnumber").remove();
   </script>
   </script>
     <div class="col-md-9" id="document-body">
     <div class="col-md-9" id="document-body">
</html>
</html>

Latest revision as of 10:38, 29 November 2014