Team:UCLondon/Templates/Team-Style
From 2012e.igem.org
(Difference between revisions)
Line 14: | Line 14: | ||
<div id="fuzz" style="display:none;"></div> | <div id="fuzz" style="display:none;"></div> | ||
- | <div id=" | + | <div id="shadowTeam" style="display:none;" > |
<div id="close-box" style="background:url(http://db.tt/N9CUKlnO) no-repeat 0 0; height:35px; width:35px; cursor:pointer;"></div> | <div id="close-box" style="background:url(http://db.tt/N9CUKlnO) no-repeat 0 0; height:35px; width:35px; cursor:pointer;"></div> | ||
Line 50: | Line 50: | ||
.team .description { display:none; } | .team .description { display:none; } | ||
- | # | + | #shadowTeam { |
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from( rgba(255, 255, 255, 1) ), to( rgb(249, 249, 249) ) ); | background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from( rgba(255, 255, 255, 1) ), to( rgb(249, 249, 249) ) ); | ||
Line 122: | Line 122: | ||
var openBox = function () { | var openBox = function () { | ||
- | $('# | + | $('#shadowTeam').center(); |
var description = $(this).children().children('.description'); | var description = $(this).children().children('.description'); | ||
Line 129: | Line 129: | ||
input += "<div style='overflow:auto; width:58%; height:90%; float:right;'><p>"+ description.html() + "</p></div>"; | input += "<div style='overflow:auto; width:58%; height:90%; float:right;'><p>"+ description.html() + "</p></div>"; | ||
- | $('# | + | $('#shadowTeam').toggle('slow', function() { |
$(this).children('#box-content').html(input); | $(this).children('#box-content').html(input); | ||
$('#box-content img').css({ 'width':180, 'height':140}); | $('#box-content img').css({ 'width':180, 'height':140}); | ||
Line 141: | Line 141: | ||
var closeBox = function() { | var closeBox = function() { | ||
- | $('# | + | $('#shadowTeam').toggle('slow', function() { |
$(this).children('#box-content').html(loading); | $(this).children('#box-content').html(loading); | ||
}); | }); |
Revision as of 02:17, 21 September 2012