Team:Columbia-Cooper-NYC/Main

From 2012.igem.org

(Difference between revisions)
Line 407: Line 407:
</div>
</div>
-
 
+
<div id="right">
<div id="leftbox" style="float:left; height:200px;  width:316px;" class="tophome">
<div id="leftbox" style="float:left; height:200px;  width:316px;" class="tophome">
Line 425: Line 425:
<p style="line-height:140%; padding-left:10px; padding-top:10px; padding-right:10px;text-align:justify; font-size:90%;">About our genetics work.</a>.
<p style="line-height:140%; padding-left:10px; padding-top:10px; padding-right:10px;text-align:justify; font-size:90%;">About our genetics work.</a>.
-
<script>
 
-
var dontclose=false;
 
-
function displayGibson(youTubeURL){
 
-
var newDiv = document.createElement('div');
 
-
newDiv.setAttribute('id',"GibsonVidOverlay");
 
-
newDiv.setAttribute('style',"width:100%;height:100%;background:black; position:fixed; left:0; top:0;z-index:100;  text-align:center; background:url(http://2010.igem.org/wiki/images/e/e9/Opacity9.png) ;");
 
-
newDiv.setAttribute('onclick',";hideOverlay();");
 
-
newDiv.innerHTML='<div style="margin-top:100px; z-index:1000;padding:10px; background:#080808;width:640px; margin-left: auto; margin-right:auto;" onclick="dontclose=true;"><object width="640" height="385"><param name="movie" value="'+youTubeURL+'"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="'+youTubeURL+'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></div><a href="#" style="color:white !important; margin-top:20px; font-size:15px;" onclick="hideOverlay()">close</a>';
 
-
$('body')[0].appendChild(newDiv);
 
-
}
 
-
function hideOverlay(){
 
-
if(dontclose){
 
-
dontclose=false;
 
-
}
 
-
else{
 
-
$('body')[0].removeChild($('#GibsonVidOverlay')[0]);
 
-
}
 
-
}
 
-
</script>
 
</div>
</div>
</div>
</div>

Revision as of 18:57, 29 September 2012

Login Logout
page discussion edit history


Team:Cambridge

From 2010.igem.org