Team:Cornell/team/gallery

From 2014.igem.org

(Difference between revisions)
Line 5: Line 5:
$('li.team').addClass('active');
$('li.team').addClass('active');
$('li.t_gal').addClass('active');
$('li.t_gal').addClass('active');
 +
 +
$(".affix").css("width", $("#parent").width());
 +
});
 +
 +
$(window).scroll(function() {
 +
$(".affix").css("width", $("#parent").width());
 +
});
 +
 +
$(window).resize(function() {
 +
$(".affix").css("width", $("#parent").width());
});
});
</script>
</script>
-
   <body>
+
   <body data-spy="scroll" data-target="#parent">
<div class="jumbotron">
<div class="jumbotron">
<div class="container">
<div class="container">
Line 16: Line 26:
<div class="container" id="top">
<div class="container" id="top">
<div class="row" data-spy="scroll" >
<div class="row" data-spy="scroll" >
-
<div class="col-md-2 col-xs-3">
+
<div class="col-md-2 col-xs-3" id="parent">
<ul class="nav nav-pills nav-stacked" data-spy="affix" data-offset-top="287" style="max-width:165px;">
<ul class="nav nav-pills nav-stacked" data-spy="affix" data-offset-top="287" style="max-width:165px;">
<li class="active"><a href="#wet">Wetlab</a></li>
<li class="active"><a href="#wet">Wetlab</a></li>

Revision as of 22:08, 13 October 2014

Cornell iGEM

web stats

Gallery