(Blanked the page) |
|||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <html> | ||
+ | <head> | ||
+ | <!-- Bootstrap CSS --> | ||
+ | <link rel="stylesheet" type="text/css" href="https://2018.igem.org/Team:USTC/BScss?action=raw&ctype=text/css"> | ||
+ | <!-- Scrollbal Custom CSS --> | ||
+ | <link rel="stylesheet" type="text/css" href="https://2018.igem.org/Team:USTC/customScrollbarCSS?action=raw&ctype=text/css"> | ||
+ | <!-- Custom CSS --> | ||
+ | <link rel="stylesheet" type="text/css" href="https://2018.igem.org/Team:USTC/CSS/mobile?action=raw&ctype=text/css"> | ||
+ | <!-- Font Awsome CSS --> | ||
+ | <link rel="stylesheet" type="text/css" href="https://2018.igem.org/Team:USTC/fontawsome?action=raw&ctype=text/css"> | ||
+ | |||
+ | |||
+ | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
+ | </head> | ||
+ | |||
+ | |||
+ | |||
+ | <body> | ||
+ | <div class="wrapper"> | ||
+ | <!-- Sidebar --> | ||
+ | <nav id="sidebar"> | ||
+ | <div id="dismiss"> | ||
+ | <i class="fas fa-arrow-left"></i> | ||
+ | </div> | ||
+ | |||
+ | <div class="navbar-brand"> | ||
+ | <img width="270px" src="https://static.igem.org/mediawiki/2018/1/1e/T--USTC--sidenav-logo.png" /> | ||
+ | </div> | ||
+ | <ul class="list-unstyled components"> | ||
+ | <li class="active"> | ||
+ | <a href="#">HOME</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#projectSubmenu" data-toggle="collapse" aria-expanded="false">PROJECT <i class="fa fa-caret-down"></i></a> | ||
+ | <ul class="collapse list-unstyled" id="projectSubmenu"> | ||
+ | <li> | ||
+ | <a href="#">Description</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Design</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Results</a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <!--Project--> | ||
+ | <li> | ||
+ | <a href="#modelSubmenu" data-toggle="collapse" aria-expanded="false">MODEL <i class="fa fa-caret-down"></i></a> | ||
+ | <ul class="collapse list-unstyled" id="modelSubmenu"> | ||
+ | <li> | ||
+ | <a href="#">Overview</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Single-cell Model</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">System Analysis</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Effectiveness</a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <!--Model--> | ||
+ | <li> | ||
+ | <a href="#">INTERLAB</a> | ||
+ | </li> | ||
+ | <!--Interlab--> | ||
+ | <li> | ||
+ | <a href="#partsSubmenu" data-toggle="collapse" aria-expanded="false">PARTS <i class="fa fa-caret-down"></i></a> | ||
+ | <ul class="collapse list-unstyled" id="partsSubmenu"> | ||
+ | <li> | ||
+ | <a href="#">Basic Parts</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Composite Parts</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Contributions</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Improve</a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <!--Parts--> | ||
+ | <li> | ||
+ | <a href="#notebookSubmenu" data-toggle="collapse" aria-expanded="false">NOTEBOOK <i class="fa fa-caret-down"></i></a> | ||
+ | <ul class="collapse list-unstyled" id="notebookSubmenu"> | ||
+ | <li> | ||
+ | <a href="#">Monthly Diary</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Protocols</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Materials</a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <!--Notebook--> | ||
+ | <li> | ||
+ | <a href="#HPSubmenu" data-toggle="collapse" aria-expanded="false">HUMAN PRACTICE <i class="fa fa-caret-down"></i></a> | ||
+ | <ul class="collapse list-unstyled" id="HPSubmenu"> | ||
+ | <li> | ||
+ | <a href="#">Overview</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Survey</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Analyze</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Practice</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Teamwork</a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <!--Human practice--> | ||
+ | <li> | ||
+ | <a href="#">COLLABORATION</a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">TEAM</a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </nav> | ||
+ | |||
+ | <!-- Page Content --> | ||
+ | <div id="content"> | ||
+ | |||
+ | <nav class="navbar navbar-expand-lg navbar-light bg-light shadow-lg sticky-top" id="navId"> | ||
+ | <div class="container-fluid"> | ||
+ | |||
+ | <button type="button" id="sidebarCollapse" class="btn btn-info"> | ||
+ | <i class="fas fa-align-left"></i> | ||
+ | <span>Nav</span> | ||
+ | </button> | ||
+ | <img height="40px" src="https://static.igem.org/mediawiki/2018/5/5b/T--USTC--mobile-title.png"> | ||
+ | <div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
+ | <ul class="nav navbar-nav ml-auto"> | ||
+ | <li class="nav-item"> | ||
+ | <a class="nav-link" href="#section1">Page</a> | ||
+ | </li> | ||
+ | <li class="nav-item"> | ||
+ | <a class="nav-link" href="#section2">Page</a> | ||
+ | </li> | ||
+ | <li class="nav-item"> | ||
+ | <a class="nav-link" href="#section3">Page</a> | ||
+ | </li> | ||
+ | <li class="nav-item"> | ||
+ | <a class="nav-link" href="#section4">Page</a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | <button class="btn btn-dark d-inline-block d-lg-none ml-auto" type="button" data-toggle="collapse" | ||
+ | data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" | ||
+ | aria-label="Toggle navigation"> | ||
+ | <i class="fas fa-align-justify"></i> | ||
+ | </button> | ||
+ | </div> | ||
+ | </nav> | ||
+ | |||
+ | <div id="section1"> | ||
+ | <h2>Collapsible Sidebar Using Bootstrap 4</h2> | ||
+ | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore | ||
+ | et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut | ||
+ | aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
+ | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in | ||
+ | culpa qui officia deserunt mollit anim id est laborum.</p> | ||
+ | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore | ||
+ | et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut | ||
+ | aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
+ | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in | ||
+ | culpa qui officia deserunt mollit anim id est laborum.</p> | ||
+ | </div> | ||
+ | |||
+ | <div class="line"></div> | ||
+ | <div id="section2"> | ||
+ | |||
+ | <h2>Lorem Ipsum Dolor</h2> | ||
+ | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore | ||
+ | et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut | ||
+ | aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
+ | cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in | ||
+ | culpa qui officia deserunt mollit anim id est laborum.</p> | ||
+ | </div> | ||
+ | |||
+ | <div class="line"></div> | ||
+ | |||
+ | <h2>Lorem Ipsum Dolor</h2> | ||
+ | <p id="section3">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt | ||
+ | ut labore et | ||
+ | dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip | ||
+ | ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore | ||
+ | eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia | ||
+ | deserunt mollit anim id est laborum.</p> | ||
+ | |||
+ | <div class="line"></div> | ||
+ | |||
+ | <h3>Lorem Ipsum Dolor</h3> | ||
+ | <p id="section4">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt | ||
+ | ut labore et | ||
+ | dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip | ||
+ | ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore | ||
+ | eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia | ||
+ | deserunt mollit anim id est laborum.</p> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | <div class="overlay"></div> | ||
+ | |||
+ | <!-- Popper.JS --> | ||
+ | <script type="text/javascript" src="https://2018.igem.org/Team:USTC/Popperjs?action=raw&ctype=text/javascript"></script> | ||
+ | <!-- Bootstrap JS --> | ||
+ | <script type="text/javascript" src="https://2018.igem.org/Team:USTC/BSjs?action=raw&ctype=text/javascript"></script> | ||
+ | <!-- jQuery Custom Scroller --> | ||
+ | <script type="text/javascript" src="https://2018.igem.org/Team:USTC/customScrollbarJS?action=raw&ctype=text/javascript"></script> | ||
+ | |||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function () { | ||
+ | $("#sidebar").mCustomScrollbar({ | ||
+ | theme: "minimal" | ||
+ | }); | ||
+ | |||
+ | $('#dismiss, .overlay').on('click', function () { | ||
+ | $('#sidebar').removeClass('active'); | ||
+ | $('.overlay').removeClass('active'); | ||
+ | $('li:not(".active") a[aria-expanded=true]').click(); | ||
+ | }); | ||
+ | |||
+ | $('#sidebarCollapse').on('click', function () { | ||
+ | $('#sidebar').addClass('active'); | ||
+ | $('.overlay').addClass('active'); | ||
+ | $('.collapse.in').toggleClass('in'); | ||
+ | }); | ||
+ | $("#top_title").hide(); | ||
+ | $(".mw-content-ltr ul, .mw-content-rtl .mw-content-ltr ul").css("margin","0"); | ||
+ | $("a:visited").css("color",""); | ||
+ | $("body").scrollspy({ target: "#navId", offset: 50 }); | ||
+ | /* | ||
+ | $("#navId a").on("click", function (event) { | ||
+ | // Make sure this.hash has a value before overriding default behavior | ||
+ | if (this.hash !== "") { | ||
+ | |||
+ | // Prevent default anchor click behavior | ||
+ | event.preventDefault(); | ||
+ | |||
+ | // Store hash | ||
+ | var hash = this.hash; | ||
+ | |||
+ | // Using jQuery's animate() method to add smooth page scroll | ||
+ | // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area | ||
+ | $('html, body').animate({ | ||
+ | scrollTop: $(hash).offset().top | ||
+ | }, 800, function () { | ||
+ | |||
+ | // Add hash (#) to URL when done scrolling (default click behavior) | ||
+ | window.location.hash = hash; | ||
+ | }); | ||
+ | |||
+ | } // End if | ||
+ | }); | ||
+ | */ | ||
+ | }); | ||
+ | </script> | ||
+ | </body> | ||
+ | </html> |
Latest revision as of 16:10, 15 October 2018
Collapsible Sidebar Using Bootstrap 4
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem Ipsum Dolor
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem Ipsum Dolor
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem Ipsum Dolor
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.