Team:UCLondon/Templates/Team-Style

From 2012e.igem.org

(Difference between revisions)
Line 129: Line 129:
   var input = "<div style='float:left; width:40%; margin:auto; color:rgb(117, 117, 117) !important; text-align:center;'>" + $(this).children().children('a').html() + $(this).children().children('.position').html() +  "</div>";
   var input = "<div style='float:left; width:40%; margin:auto; color:rgb(117, 117, 117) !important; text-align:center;'>" + $(this).children().children('a').html() + $(this).children().children('.position').html() +  "</div>";
-
   input +=  "<div style='overflow:auto; width:58%; height:90%; float:right; text-align:justify;'><p style='padding-right:13px;'>"+ description.html() + "</p>" + "<br/><div style='color:rgb(117, 117, 117);'> Attributions:</div>" +  "<div style='text-align:left; padding-left:0px; padding-right:0px; font-size:9pt; color:rgb(117, 117, 117);'>" + $(this).children().children('.attribution').html() + "</div>" + "</div>";
+
   input +=  "<div style='overflow:auto; width:58%; height:90%; float:right; text-align:justify;'><p style='padding-right:13px;'>"+ description.html() + "</p>";
 +
 
 +
  if ($(this).children().children('.attribution') != undefined){
 +
 
 +
  input += "<br/><div style='color:rgb(117, 117, 117);'> Attributions:</div>" +  "<div style='text-align:left; padding-left:0px; padding-right:0px; font-size:9pt; color:rgb(117, 117, 117);'>" + $(this).children().children('.attribution').html() + "</div>";
 +
 
 +
}
 +
 
 +
  input += "</div>";
   $('#shadowTeam').toggle('slow', function() {
   $('#shadowTeam').toggle('slow', function() {

Revision as of 01:54, 28 October 2012