Difference between revisions of "Template:Team:TU Darmstadt/MainMenu"

 
(6 intermediate revisions by the same user not shown)
Line 81: Line 81:
 
   -o-transition: all 0.3s ease-in;
 
   -o-transition: all 0.3s ease-in;
 
   transition: all 0.3s ease-in;
 
   transition: all 0.3s ease-in;
 +
}
 +
 +
.navbar.landingpage {
 +
  position: fixed;
 +
  top: 16px;
 
}
 
}
  
Line 94: Line 99:
 
</style>
 
</style>
  
<div class="navbar">
+
<div class="navbar </html>{{{extra-class}}}<html>">
 
   <div class="mobile-toggle">
 
   <div class="mobile-toggle">
 
       <img src="https://static.igem.org/mediawiki/2016/c/c9/T--TU_Darmstadt--zahnrad.png"
 
       <img src="https://static.igem.org/mediawiki/2016/c/c9/T--TU_Darmstadt--zahnrad.png"
Line 140: Line 145:
 
     }
 
     }
 
   });
 
   });
 +
});
 +
</script>
 +
 +
<script>
 +
$(function(){
 +
  if( window.location.href == 'https://2016.igem.org/Team:TU_Darmstadt') {
 +
    $('navbar').addClass('navbar-landingpage-fixed');
 +
  }
 
});
 
});
 
</script>
 
</script>
 
</html>
 
</html>

Latest revision as of 16:01, 17 October 2016