Team:Cambridge/Templates/boxesprototypenew
From 2010.igem.org
(Difference between revisions)
Line 17: | Line 17: | ||
<script> | <script> | ||
+ | var dontclose=false; | ||
function displayGibson(youTubeURL){ | function displayGibson(youTubeURL){ | ||
var newDiv = document.createElement('div'); | var newDiv = document.createElement('div'); | ||
Line 22: | Line 23: | ||
newDiv.setAttribute('style',"width:100%;height:100%;background:black; position:fixed; left:0; top:0;z-index:100; text-align:center; background:url(https://static.igem.org/mediawiki/2010/e/e9/Opacity9.png) ;"); | newDiv.setAttribute('style',"width:100%;height:100%;background:black; position:fixed; left:0; top:0;z-index:100; text-align:center; background:url(https://static.igem.org/mediawiki/2010/e/e9/Opacity9.png) ;"); | ||
newDiv.setAttribute('onclick',";hideOverlay();"); | newDiv.setAttribute('onclick',";hideOverlay();"); | ||
- | newDiv.innerHTML='<div style="margin-top:100px; padding:10px; background:black;width:640px; margin-left: auto; margin-right:auto;" onclick=" | + | newDiv.innerHTML='<div style="margin-top:100px; z-index:1000;padding:10px; background:black;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>'; |
$('body')[0].appendChild(newDiv); | $('body')[0].appendChild(newDiv); | ||
} | } | ||
function hideOverlay(){ | function hideOverlay(){ | ||
+ | if(dontclose){ | ||
+ | dontclose=false; | ||
+ | } | ||
+ | else{ | ||
$('body')[0].removeChild($('#GibsonVidOverlay')[0]); | $('body')[0].removeChild($('#GibsonVidOverlay')[0]); | ||
+ | } | ||
} | } | ||
</script> | </script> |
Revision as of 18:14, 24 October 2010
Abstract
We placed genes from fireflies and bioluminescent prokaryotes into E.coli to add brighter bacterial light to the registry. Using mutagenesis we created a range of coloured bioluminescent BioBricks.
Multimedia
If you want a break from hard-core science, check out our Gibson Assembly music video.
You can also see a video which shows off our bacterial bubble lamp.
Tools