Team:Tsinghua/Team

From 2013.igem.org

(Difference between revisions)
Line 112: Line 112:
<div class="normal">
<div class="normal">
<style type="text/css">
<style type="text/css">
-
.photo-row {
+
  .photo-row {
-
}
+
  }
-
.photo-row img {
+
  .photo-row img {
-
width: 220px;
+
    width: 220px;
-
height: auto;
+
    height: auto;
-
margin: 10px 10px 5px 10px;
+
    margin: 10px 10px 5px 10px;
-
border: 1px solid #AAAAAA;
+
    border: 1px solid #AAAAAA;
-
}
+
  }
-
.photo-desc {
+
  .photo-desc {
-
margin: 0px 20px 0px 10px;
+
    margin: 0px 20px 0px 10px;
-
background-color: white;
+
    background-color: white;
-
padding:0.5em;
+
    padding:0.5em;
-
height: 60px;
+
    height: 60px;
-
}
+
  }
-
+
 
-
.photo-desc p {
+
  .photo-desc p {
-
margin: 0.5em;
+
    margin: 0.5em;
-
}
+
  }
-
+
 
-
.photo-name {
+
  .photo-name {
-
}
+
  }
-
+
 
-
#gallery {
+
  #gallery {
-
width: 750px;
+
    width: 750px;
-
margin: auto;
+
    margin: auto;
-
}
+
  }
-
+
 
-
+
 
-
</style>
+
  </style>
<h1>Team</h1>
<h1>Team</h1>
<div id="gallery">
<div id="gallery">
Line 205: Line 205:
["Wang Jun", "Is there anything else we cannot conquer?"],
["Wang Jun", "Is there anything else we cannot conquer?"],
["Shi Xiaojing", "I'm trying to make the world more beautiful"]];
["Shi Xiaojing", "I'm trying to make the world more beautiful"]];
-
var descDivs = $("div.photo-desc");
+
  var descDivs = $("div.photo-desc");
-
$("#gallery img").hover(function(){
+
  $("#gallery img").hover(function(){
-
var n = names.length;
+
    var n = names.length;
-
var row = Math.floor($(this).parent().index() / 2);
+
    var row = Math.floor($(this).parent().index() / 2);
-
var i = $(this).index() + 3 * row;
+
    var i = $(this).index() + 3 * row;
-
//alert('index:' + i + ', row: ' + row + ', n:' + n);
+
    //alert('index:' + i + ', row: ' + row + ', n:' + n);
-
$(descDivs.get(row)).html('<p><b>' + names[i][0] + '</b></p><p>' + names[i][1] + '</p>');
+
    $(descDivs.get(row)).html('<p><b>' + names[i][0] + '</b></p><p>' + names[i][1] + '</p>');
-
});
+
  });
-
</script>
+
  </script>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
<script type="text/javascript">
-
setupMenu();
+
  setupMenu();
-
</script>
+
  </script>
</body></html>
</body></html>

Revision as of 18:39, 26 September 2013

Team