Team:Goettingen/Team/Gallery

From 2013.igem.org

(Difference between revisions)
m
Line 7: Line 7:
     document.body.style.height = '100%';
     document.body.style.height = '100%';
})
})
 +
 +
 
 +
function showGarPic(from,illustration,alb){
 +
  currentAlb = alb;
 +
  garPic.src = from;
 +
  adHeight = $(window).height()*0.8;
 +
  adWidth = $(window).width()*0.8;
 +
  setTimeout(function(){
 +
  ratio = garPic.height/garPic.width;
 +
  if( garPic.height/garPic.width > adHeight/adWidth) {garPic.style.height = adHeight + 'px';
 +
                                                      garPic.style.width = adHeight/ratio + 'px';}
 +
  else {garPic.style.width = adWidth + 'px';
 +
        garPic.style.height = 'auto';}
 +
  description.innerHTML = illustration;
 +
  document.body.style.overflow = 'hidden';
 +
  document.body.insertBefore(lightframe,document.body.childNodes[0]);
 +
  showbox.style.width = garPic.style.width;
 +
  finWidth = Number(garPic.style.width.substring(0,garPic.style.width.length - 2));
 +
  showbox.style.marginLeft = ($(window).width() - finWidth)/2 + 'px';
 +
  closebtn.style.right = '0px';
 +
  lightframe.style.left = '0px';
 +
  prefoto.style.top = (garPic.height - prefoto.height)/2 + 'px';
 +
  nextfoto.style.top = (garPic.height - prefoto.height)/2 + 'px';
 +
  },100);
 +
}
 +
</script>
</script>

Revision as of 15:16, 11 September 2013

The beast and its Achilles heel:

 A novel target to fight multi-resistant pathogenic bacteria



In the Lab

 

Previous Next