Difference between revisions of "Template:SZU-China/Nav"

Line 1: Line 1:
 
<html>
 
<html>
  
<head>
+
<head>
<meta charset="UTF-8">
+
    <meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/CSS&action=raw&ctype=text/css" />
+
    <link rel="stylesheet" type="text/css" href="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/CSS&action=raw&ctype=text/css" />
  
<link rel="stylesheet" type="text/css" href="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/CSS/Fluent&action=raw&ctype=text/css" />
+
    <link rel="stylesheet" type="text/css" href="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/CSS/Fluent&action=raw&ctype=text/css" />
  
<!--
+
    <!--
 
<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
 
<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
  
Line 17: Line 17:
 
-->
 
-->
  
 
 
<title></title>
 
</head>
 
  
<style>
+
 
        #sideMenu, #top_title {
+
    <title></title>
 +
</head>
 +
 
 +
<style>
 +
    #sideMenu, #top_title {
 
         display: none;
 
         display: none;
 
         }
 
         }
Line 47: Line 47:
 
     </style>
 
     </style>
  
<body>
+
<body>
  
<!-- Navbar -->
+
    <!-- Navbar -->
<nav class="navbar navbar-expand-lg fixed-top navbar-dark bg-primary ">
+
    <nav class="navbar navbar-expand-lg fixed-top navbar-dark bg-primary ">
<a class="navbar-brand" href="#">
+
        <a class="navbar-brand" href="https://2018.igem.org/Team:SZU-China">
<img src="https://mdbootstrap.com/img/logo/mdb-transparent.png" height="20" alt="Route 66 in navbar">
+
            <img src="https://mdbootstrap.com/img/logo/mdb-transparent.png" height="20" alt="Route 66 in navbar">
<span class="d-inline-block align-top ml-2">SZU-China</span>
+
            <span class="d-inline-block align-top ml-2">SZU-China</span>
</a>
+
        </a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarExample" aria-controls="navbarExample" aria-expanded="false" aria-label="Toggle navigation">
+
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarExample" aria-controls="navbarExample"
    <span class="navbar-toggler-icon"></span>
+
            aria-expanded="false" aria-label="Toggle navigation">
  </button>
+
            <span class="navbar-toggler-icon"></span>
 +
        </button>
  
<div class="collapse navbar-collapse" id="navbarExample">
+
        <div class="collapse navbar-collapse" id="navbarExample">
<ul class="navbar-nav ml-auto">
+
            <ul class="navbar-nav ml-auto">
<li class="nav-item active">
+
                <li class="nav-item active">
<a class="nav-link" href="#">Home
+
                    <a class="nav-link" href="https://2018.igem.org/Team:SZU-China">Home
<span class="sr-only">(current)</span>
+
                        <span class="sr-only">(current)</span>
</a>
+
                    </a>
</li>
+
                </li>
<li class="nav-item dropdown">
+
                <li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
Team
+
                        aria-haspopup="true" aria-expanded="false">
</a>
+
                        Team
<div class="dropdown-menu "aria-labelledby="navbarDropdown">
+
                    </a>
<a class="dropdown-item" href="#">Team Members</a>
+
                    <div class="dropdown-menu " aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Collaborations</a>
+
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Team">Team Members</a>
</div>
+
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Collaborations">Collaborations</a>
+
                    </div>
</li>
+
<li class="nav-item dropdown">
+
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+
Project
+
</a>
+
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
+
<a class="dropdown-item" href="demo.html">Description</a>
+
<a class="dropdown-item" href="#">Design</a>
+
<a class="dropdown-item" href="#">Model</a>
+
<a class="dropdown-item" href="#">Biobricks</a>
+
<a class="dropdown-item" href="#">Improve</a>
+
</div>
+
</li>
+
<li class="nav-item dropdown">
+
  
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+
                </li>
Experiment
+
                <li class="nav-item dropdown">
</a>
+
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
+
                        aria-haspopup="true" aria-expanded="false">
<a class="dropdown-item" href="#">Demonstrate</a>
+
                        Project
<a class="dropdown-item" href="#">Results</a>
+
                    </a>
<a class="dropdown-item" href="#">Safety</a>
+
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">InterLab</a>
+
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Description">Description</a>
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Design
 +
                            ">Design</a>
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Model
 +
                            ">Model</a>
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Parts
 +
                            ">Biobricks</a>
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Improve
 +
                            ">Improve</a>
 +
                    </div>
 +
                </li>
 +
                <li class="nav-item dropdown">
  
</div>
+
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
</li>
+
                        aria-haspopup="true" aria-expanded="false">
<li class="nav-item">
+
                        Experiment
<a class="nav-link" href="#">Human Practices</a>
+
                    </a>
</li>
+
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown">
<li class="nav-item dropdown">
+
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Demonstrate
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+
                                ">Demonstrate</a>
Judging
+
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Results
</a>
+
                                ">Results</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
+
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Safety
<a class="dropdown-item" href="#">Form</a>
+
                                ">Safety</a>
<a class="dropdown-item" href="#">Awards</a>
+
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/InterLab
 +
                                ">InterLab</a>
  
</div>
+
                    </div>
</li>
+
                </li>
</ul>
+
                <li class="nav-item">
<!--
+
                    <a class="nav-link" href="https://2018.igem.org/Team:SZU-China/Human_Practices
 +
                        ">Human
 +
                        Practices</a>
 +
                </li>
 +
                <li class="nav-item dropdown">
 +
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
 +
                        aria-haspopup="true" aria-expanded="false">
 +
                        Judging
 +
                    </a>
 +
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown">
 +
                        <a class="dropdown-item" href="https://igem.org/2018_Judging_Form?team=SZU-China">Form</a>
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Software
 +
                                ">Awards</a>
 +
 
 +
                    </div>
 +
                </li>
 +
            </ul>
 +
            <!--
 
<style>
 
<style>
 
.dropdown:hover .dropdown-menu {
 
.dropdown:hover .dropdown-menu {
Line 123: Line 139:
 
</style>
 
</style>
 
-->
 
-->
<script>
+
            <script>
 
+
                $('.dropdown').hover(function () {
 +
                    $('.dropdown-toggle', this).trigger('click');
 +
                });
  
$('.dropdown').hover(function(){  
+
                // Add slideDown animation to Bootstrap dropdown when expanding.
  $('.dropdown-toggle', this).trigger('click');  
+
                $('.dropdown').on('show.bs.dropdown', function () {
});
+
                    $(this).find('.dropdown-menu').first().stop(true, true).slideDown();
 +
                });
  
// Add slideDown animation to Bootstrap dropdown when expanding.
+
                // Add slideUp animation to Bootstrap dropdown when collapsing.
  $('.dropdown').on('show.bs.dropdown', function() {
+
                $('.dropdown').on('hide.bs.dropdown', function () {
    $(this).find('.dropdown-menu').first().stop(true, true).slideDown();
+
                    $(this).find('.dropdown-menu').first().stop(true, true).slideUp();
  });
+
                });
 +
            </script>
  
  // Add slideUp animation to Bootstrap dropdown when collapsing.
+
        </div>
  $('.dropdown').on('hide.bs.dropdown', function() {
+
    </nav>
    $(this).find('.dropdown-menu').first().stop(true, true).slideUp();
+
    <!-- Navbar -->
  });
+
</script>
+
+
</div>
+
</nav>
+
<!-- Navbar -->
+
  
<script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/JS/jquery&action=raw&ctype=text/javascript"></script>
+
    <script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/JS/jquery&action=raw&ctype=text/javascript"></script>
<script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/JS/bootstrap&action=raw&ctype=text/javascript"></script>
+
    <script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/JS/bootstrap&action=raw&ctype=text/javascript"></script>
<script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/JS/bootstrap.bundle&action=raw&ctype=text/javascript"></script>
+
    <script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/JS/bootstrap.bundle&action=raw&ctype=text/javascript"></script>
  
<script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/JS/popper&action=raw&ctype=text/javascript"></script>
+
    <script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/JS/popper&action=raw&ctype=text/javascript"></script>
  
  
</body>
+
</body>
  
 
</html>
 
</html>

Revision as of 09:19, 5 October 2018