Difference between revisions of "Team:NTNU Trondheim/Header"

 
(22 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
<head>
 
<head>
 
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.2/css/materialize.min.css">
 
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.2/css/materialize.min.css">
  <link rel="stylesheet" href="https://static.igem.org/mediawiki/2018/b/bf/T--NTNU_Trondheim--style.txt?action=raw&ctype=text/css">
 
 
   <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css">
 
   <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css">
  
Line 21: Line 20:
  
 
   <a href="https://2018.igem.org/Team:NTNU_Trondheim">
 
   <a href="https://2018.igem.org/Team:NTNU_Trondheim">
     <img class="homebtn" src="https://static.igem.org/mediawiki/2018/7/71/T--NTNU_Trondheim--homebtn.png">
+
     <img class="homebtn" src="https://static.igem.org/mediawiki/2018/e/eb/T--NTNU_Trondheim--navlogo.png">
 
   </a>  
 
   </a>  
  
Line 33: Line 32:
 
     <ul class="ntnu_navbar">
 
     <ul class="ntnu_navbar">
  
    <li class="ntnu_menu_option ntnu_dropdown no-icon mobile-home">
+
 
      <a class="ntnu_dropbtn" href="https://2018.igem.org/Team:NTNU_Trondheim" id="menu-home">
+
        <li class="ntnu_menu_option ntnu_dropdown no-icon">
          <img src="https://static.igem.org/mediawiki/2018/9/97/T--NTNU_Trondheim--nav_homeicon.png" style="height: 30px; width: auto">
+
          <a class="ntnu_dropbtn" href="https://2018.igem.org/Team:NTNU_Trondheim" id="menu-home">
      </a>
+
            <i class="fas fa-home"></i>
    </li>
+
          </a>
 +
        </li>
  
  
Line 64: Line 64:
 
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Experiments">Lab Journal</a>
 
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Experiments">Lab Journal</a>
 
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Protocols">Protocols</a>
 
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Protocols">Protocols</a>
 +
          <a href="https://2018.igem.org/Team:NTNU_Trondheim/Measurement">Measurement</a>
 
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Safety">Safety</a>
 
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Safety">Safety</a>
 
         </div>
 
         </div>
Line 72: Line 73:
 
         <div class="ntnu_dropdown_content">
 
         <div class="ntnu_dropdown_content">
 
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Parts">Parts Overview</a>
 
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Parts">Parts Overview</a>
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Improve">Improve</a>
+
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Improve">New Part</a>
 
           <!--
 
           <!--
 
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Basic_Part">Basic Parts</a>
 
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Basic_Part">Basic Parts</a>
Line 88: Line 89:
 
         <a href="javascript:void(0)" class="ntnu_dropbtn" id="menu-hp">Human Practices</a>
 
         <a href="javascript:void(0)" class="ntnu_dropbtn" id="menu-hp">Human Practices</a>
 
         <div class="ntnu_dropdown_content">
 
         <div class="ntnu_dropdown_content">
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Human_Practices">Human Practices</a>
+
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Human_Practices">Integrated Human Practices</a>
 
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Public_Engagement">Education and Engangement</a>
 
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Public_Engagement">Education and Engangement</a>
          <a href="">Timeline</a>
 
          <a href="">Publications</a>
 
 
         </div>
 
         </div>
 
       </li>
 
       </li>
Line 99: Line 98:
 
         <div class="ntnu_dropdown_content" style="min-width: 170px">
 
         <div class="ntnu_dropdown_content" style="min-width: 170px">
 
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Sponsors">Sponsors</a>
 
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Sponsors">Sponsors</a>
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Attributions">Attribution</a>
+
           <a href="https://2018.igem.org/Team:NTNU_Trondheim/Attributions">Attributions</a>
 
         </div>
 
         </div>
 
       </li>
 
       </li>
  
 
       <li class="ntnu_menu_option ntnu_dropdown no-icon">
 
       <li class="ntnu_menu_option ntnu_dropdown no-icon">
         <a href="javascript:void(0)" class="ntnu_dropbtn" id="menu-jamboree">Giant Jamboree</a>
+
         <a class="ntnu_dropbtn" href="https://2018.igem.org/Team:NTNU_Trondheim/Awards" id="menu-jamboree">Awards</a>
        <div class="ntnu_dropdown_content">
+
         </li>
          <a href="https://2018.igem.org/Team:NTNU_Trondheim/Applied_Design">Coming soon....</a>
+
         </div>
+
      </li>
+
 
     </ul>
 
     </ul>
  
Line 130: Line 126:
 
   })
 
   })
 
</script>
 
</script>
<script>
 
function checkScroll(){
 
    var startY = $('.body').height() * 2; //The point where the navbar changes in px
 
  
    if($(window).scrollTop() > startY){
+
<script type="text/javascript">
        $('.nav-wrapper').addClass("scrolled");
+
$('#clickme').click(function() {
    }else{
+
  $('html, body').animate({ scrollTop: $('#welcome').offset().top }, 'slow');
        $('.nav-wrapper').removeClass("scrolled");
+
  });
    }
+
}
+
 
+
if($('.body').length > 0){
+
    $(window).on("scroll load resize", function(){
+
        checkScroll();
+
    });
+
}
+
 
</script>
 
</script>
 +
 
</html>
 
</html>

Latest revision as of 03:15, 18 October 2018