(18 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
<html> | <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"> | <div class="wrapper"> | ||
<!-- Sidebar --> | <!-- Sidebar --> | ||
Line 12: | Line 26: | ||
<div class="navbar-brand"> | <div class="navbar-brand"> | ||
− | <img src="logo.png | + | <img width="270px" src="https://static.igem.org/mediawiki/2018/1/1e/T--USTC--sidenav-logo.png" /> |
</div> | </div> | ||
<ul class="list-unstyled components"> | <ul class="list-unstyled components"> | ||
<li class="active"> | <li class="active"> | ||
− | <a href="#"> | + | <a href="#">HOME</a> |
</li> | </li> | ||
<li> | <li> | ||
− | <a href="#projectSubmenu" data-toggle="collapse" aria-expanded="false"> | + | <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"> | <ul class="collapse list-unstyled" id="projectSubmenu"> | ||
<li> | <li> | ||
− | <a href="#"> | + | <a href="#">Description</a> |
</li> | </li> | ||
<li> | <li> | ||
− | <a href="#"> | + | <a href="#">Design</a> |
</li> | </li> | ||
<li> | <li> | ||
− | <a href="#"> | + | <a href="#">Results</a> |
</li> | </li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
+ | <!--Project--> | ||
<li> | <li> | ||
− | <a href="# | + | <a href="#modelSubmenu" data-toggle="collapse" aria-expanded="false">MODEL <i class="fa fa-caret-down"></i></a> |
− | <ul class="collapse list-unstyled" id=" | + | <ul class="collapse list-unstyled" id="modelSubmenu"> |
<li> | <li> | ||
− | <a href="#"> | + | <a href="#">Overview</a> |
</li> | </li> | ||
<li> | <li> | ||
− | <a href="#"> | + | <a href="#">Single-cell Model</a> |
</li> | </li> | ||
<li> | <li> | ||
− | <a href="#"> | + | <a href="#">System Analysis</a> |
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Effectiveness</a> | ||
</li> | </li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
+ | <!--Model--> | ||
+ | <li> | ||
+ | <a href="#">INTERLAB</a> | ||
+ | </li> | ||
+ | <!--Interlab--> | ||
<li> | <li> | ||
− | <a href="#partsSubmenu" data-toggle="collapse" aria-expanded="false">PARTS</a> | + | <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"> | <ul class="collapse list-unstyled" id="partsSubmenu"> | ||
<li> | <li> | ||
− | <a href="#"> | + | <a href="#">Basic Parts</a> |
</li> | </li> | ||
<li> | <li> | ||
− | <a href="#"> | + | <a href="#">Composite Parts</a> |
</li> | </li> | ||
<li> | <li> | ||
− | <a href="#"> | + | <a href="#">Contributions</a> |
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Improve</a> | ||
</li> | </li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
+ | <!--Parts--> | ||
<li> | <li> | ||
− | <a href="#"> | + | <a href="#notebookSubmenu" data-toggle="collapse" aria-expanded="false">NOTEBOOK <i class="fa fa-caret-down"></i></a> |
− | <a href="# | + | <ul class="collapse list-unstyled" id="notebookSubmenu"> |
− | <ul class="collapse list-unstyled" id=" | + | <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> | <li> | ||
− | <a href="#"> | + | <a href="#">Analyze</a> |
</li> | </li> | ||
<li> | <li> | ||
− | <a href="#"> | + | <a href="#">Practice</a> |
</li> | </li> | ||
<li> | <li> | ||
− | <a href="#"> | + | <a href="#">Teamwork</a> |
</li> | </li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
+ | <!--Human practice--> | ||
<li> | <li> | ||
− | <a href="#"> | + | <a href="#">COLLABORATION</a> |
</li> | </li> | ||
<li> | <li> | ||
− | <a href="#"> | + | <a href="#">TEAM</a> |
</li> | </li> | ||
</ul> | </ul> | ||
Line 92: | Line 140: | ||
<button type="button" id="sidebarCollapse" class="btn btn-info"> | <button type="button" id="sidebarCollapse" class="btn btn-info"> | ||
<i class="fas fa-align-left"></i> | <i class="fas fa-align-left"></i> | ||
− | <span> | + | <span>Nav</span> |
</button> | </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"> | <div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
<ul class="nav navbar-nav ml-auto"> | <ul class="nav navbar-nav ml-auto"> | ||
Line 170: | Line 216: | ||
<div class="overlay"></div> | <div class="overlay"></div> | ||
− | |||
− | |||
− | |||
<!-- Popper.JS --> | <!-- Popper.JS --> | ||
− | <script src="https:// | + | <script type="text/javascript" src="https://2018.igem.org/Team:USTC/Popperjs?action=raw&ctype=text/javascript"></script> |
− | + | ||
<!-- Bootstrap JS --> | <!-- Bootstrap JS --> | ||
− | <script src="https:// | + | <script type="text/javascript" src="https://2018.igem.org/Team:USTC/BSjs?action=raw&ctype=text/javascript"></script> |
− | + | <!-- jQuery Custom Scroller --> | |
− | <!-- jQuery Custom Scroller | + | <script type="text/javascript" src="https://2018.igem.org/Team:USTC/customScrollbarJS?action=raw&ctype=text/javascript"></script> |
− | <script src="https:// | + | |
<script type="text/javascript"> | <script type="text/javascript"> | ||
Line 191: | Line 233: | ||
$('#sidebar').removeClass('active'); | $('#sidebar').removeClass('active'); | ||
$('.overlay').removeClass('active'); | $('.overlay').removeClass('active'); | ||
+ | $('li:not(".active") a[aria-expanded=true]').click(); | ||
}); | }); | ||
Line 197: | Line 240: | ||
$('.overlay').addClass('active'); | $('.overlay').addClass('active'); | ||
$('.collapse.in').toggleClass('in'); | $('.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> | </script> | ||
</body> | </body> | ||
</html> | </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.