Difference between revisions of "Template:XJTU-China/Header"

m (remove "Our team" page)
 
(31 intermediate revisions by 3 users not shown)
Line 6: Line 6:
 
   <link rel="stylesheet" href="https://fonts.css.network/css?family=Lato" />
 
   <link rel="stylesheet" href="https://fonts.css.network/css?family=Lato" />
 
   <link rel="stylesheet" href="https://fonts.css.network/css?family=Ubuntu" />
 
   <link rel="stylesheet" href="https://fonts.css.network/css?family=Ubuntu" />
   <!-- link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" /-->
+
   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
+
   <link rel="stylesheet" type="text/css" href="https://2018.igem.org/wiki/index.php?title=Template:XJTU-China/header.css&action=raw&ctype=text/css" />
   <link rel="stylesheet" type="text/css" href="https://2018.igem.org/wiki/index.php?title=Template:XJTU-China/home.css&action=raw&ctype=text/css" />
+
   <!-- link rel="stylesheet" type="text/css" href="../header.css" / -->
   <!-- link rel="stylesheet" type="text/css" href="xjtu-home-2.css" / -->
+
 
</head>
 
</head>
 
<body>  
 
<body>  
Line 29: Line 28:
 
             <a class="nav-link" href="https://2018.igem.org/Team:XJTU-China/Project">Project</a>
 
             <a class="nav-link" href="https://2018.igem.org/Team:XJTU-China/Project">Project</a>
 
             <ul class="dropdown-menu">
 
             <ul class="dropdown-menu">
               <li><a href="https://2018.igem.org/Team:XJTU-China/Project#Description">Description</a></li>
+
               <li><a href="https://2018.igem.org/Team:XJTU-China/Project">Overview</a></li>
               <li><a href="https://2018.igem.org/Team:XJTU-China/Project#Design">Design</a></li>
+
               <li><a href="https://2018.igem.org/Team:XJTU-China/Circuits">Circuits</a></li>
              <li><a href="https://2018.igem.org/Team:XJTU-China/Project#Parts">Parts</a></li>
+
              <li><a href="https://2018.igem.org/Team:XJTU-China/Project#Safety">Safety</a></li>
+
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/Demonstrate">Demonstrate</a></li>
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/Demonstrate">Demonstrate</a></li>
 
             </ul>
 
             </ul>
 +
          </li>
 +
          <li class="nav-item dropdown">
 +
            <a class="nav-link" href="https://2018.igem.org/Team:XJTU-China/Parts">Parts</a>
 +
            <ul class="dropdown-menu">
 +
              <li><a href="https://2018.igem.org/Team:XJTU-China/Parts#section1">Basic</a></li>
 +
              <li><a href="https://2018.igem.org/Team:XJTU-China/Parts#section2">Composite</a></li>
 +
              <li><a href="https://2018.igem.org/Team:XJTU-China/Parts#section3">Collection</a></li>
 +
              <li><a href="https://2018.igem.org/Team:XJTU-China/Improve">Improve</a></li>
 +
            </ul>
 +
          </li>
 +
          <li class="nav-item dropdown">
 +
            <a class="nav-link" href="https://2018.igem.org/Team:XJTU-China/Safety">Safety</a>
 
           </li>
 
           </li>
 
           <li class="nav-item dropdown">
 
           <li class="nav-item dropdown">
 
             <a class="nav-link" href="#Wetlab">Wetlab</a>
 
             <a class="nav-link" href="#Wetlab">Wetlab</a>
 
             <ul class="dropdown-menu">
 
             <ul class="dropdown-menu">
              <li><a href="#Overview">Overview</a></li>
 
              <li><a href="#Sensing_Circuit">Sensing Circuit</a></li>
 
              <li><a href="#Selecting_Circuit">Selecting Circuit</a></li>
 
              <li><a href="#Coupling_Circuit">Coupling Circuit</a></li>
 
              <li><a href="#Evolving_Circuit">Evolving Circuit</a></li>
 
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/InterLab">InterLab</a></li>
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/InterLab">InterLab</a></li>
               <li><a href="https://2018.igem.org/Team:XJTU-China/Measurement">Measurement</a></li>
+
               <!--li><a href="https://2018.igem.org/Team:XJTU-China/Measurement">Measurement</a></li-->
               <li><a href="#Protocols">Protocols</a></li>
+
               <li><a href="https://2018.igem.org/Team:XJTU-China/Protocols">Protocols</a></li>
               <li><a href="#Notebook">Notebook</a></li>
+
               <li><a href="https://2018.igem.org/Team:XJTU-China/Notebook">Notebook</a></li>
 
             </ul>
 
             </ul>
 
           </li>
 
           </li>
Line 53: Line 57:
 
             <a class="nav-link" href="https://2018.igem.org/Team:XJTU-China/Model">Drylab</a>
 
             <a class="nav-link" href="https://2018.igem.org/Team:XJTU-China/Model">Drylab</a>
 
             <ul class="dropdown-menu">
 
             <ul class="dropdown-menu">
               <li><a href="https://2018.igem.org/Team:XJTU-China/Model#Overview">Overview</a></li>
+
               <li><a href="https://2018.igem.org/Team:XJTU-China/Drylab#Overview">Overview</a></li>
               <li><a href="https://2018.igem.org/Team:XJTU-China/Model#Model_A">Model A</a></li>
+
               <li><a href="https://2018.igem.org/Team:XJTU-China/Model">Models</a></li>
              <li><a href="https://2018.igem.org/Team:XJTU-China/Model#Model_B">Model B</a></li>
+
              <li><a href="https://2018.igem.org/Team:XJTU-China/Model#Model_C">Model C</a></li>
+
              <li><a href="https://2018.igem.org/Team:XJTU-China/Model#Model_D">Model D</a></li>
+
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/Hardware">Hardware</a></li>
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/Hardware">Hardware</a></li>
 
             </ul>
 
             </ul>
Line 66: Line 67:
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/Human_Practices#Silver">Silver</a></li>
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/Human_Practices#Silver">Silver</a></li>
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/Human_Practices#Integrated_and_Gold">Integrated and Gold</a></li>
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/Human_Practices#Integrated_and_Gold">Integrated and Gold</a></li>
               <li><a href="https://2018.igem.org/Team:XJTU-China/Public_Engagement">Public engagement</a></li>
+
               <li><a href="https://2018.igem.org/Team:XJTU-China/Public_Engagement">Public Engagement</a></li>
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/Entrepreneurship">Entrepreneurship</a></li>
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/Entrepreneurship">Entrepreneurship</a></li>
 
             </ul>
 
             </ul>
Line 73: Line 74:
 
             <a class="nav-link" href="https://2018.igem.org/Team:XJTU-China/Team">Team</a>
 
             <a class="nav-link" href="https://2018.igem.org/Team:XJTU-China/Team">Team</a>
 
             <ul class="dropdown-menu">
 
             <ul class="dropdown-menu">
               <li><a href="https://2018.igem.org/Team:XJTU-China/Team#Our_team">Our team</a></li>
+
               <li><a href="https://2018.igem.org/Team:XJTU-China/Acknowledgement">Acknowledgement</a></li>
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/Attributions">Attribution</a></li>
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/Attributions">Attribution</a></li>
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/Collaborations">Collaboration</a></li>
 
               <li><a href="https://2018.igem.org/Team:XJTU-China/Collaborations">Collaboration</a></li>
               <li><a href="https://2018.igem.org/Team:XJTU-China/Team#Awards">Awards</a></li>
+
               <!--li><a href="https://2018.igem.org/Team:XJTU-China/Team#Awards">Awards</a></li-->
 
             </ul>
 
             </ul>
 
           </li>
 
           </li>
Line 86: Line 87:
 
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
 
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
 
<script type='text/javascript' src="https://2018.igem.org/wiki/index.php?title=Template:XJTU-China/jquery.waypoints.min.js&action=raw&ctype=text/javascript"></script>
 
<script type='text/javascript' src="https://2018.igem.org/wiki/index.php?title=Template:XJTU-China/jquery.waypoints.min.js&action=raw&ctype=text/javascript"></script>
<script type='text/javascript' src="https://2018.igem.org/wiki/index.php?title=Template:XJTU-China/home.js&action=raw&ctype=text/javascript"></script>
+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
+
<script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
+
$(document).ready(function(){
<!-- script type="text/javascript" src="home.js"></script -->
+
 
 +
// header scroll to top animation
 +
$(window).scroll(function() {
 +
  if ($(this).scrollTop() == 0) {
 +
    $(function() {
 +
      $('#top-nav .nav-link').clearQueue().animate({lineHeight: '74px'}, 200, 'linear');
 +
      $('header>.navbar').clearQueue().animate({opacity: '0.75'}, 200, 'linear');
 +
      $('header .navbar-header').clearQueue().animate({top: '10px'}, 200, 'linear');
 +
      $('header').data('expend', 'true');
 +
      console.log('scoll to the top');
 +
    });
 +
  } else if ($(this).scrollTop() != 0) {
 +
    if ($('header').data('expend') != 'false') {
 +
      $(function() {
 +
        $('header .navbar-header').clearQueue().animate({top: '0'}, 400, 'linear');
 +
        $('header>.navbar').clearQueue().animate({opacity: '1'}, 400, 'linear');
 +
        $('#top-nav .nav-link').clearQueue().animate({lineHeight: '54px'}, 400, 'linear');
 +
        $('header').data('expend', 'false');
 +
    });
 +
    }
 +
  }
 +
});
 +
});
 +
</script>
 
</body>
 
</body>
 
</html>
 
</html>

Latest revision as of 01:42, 18 October 2018