Team:Goettingen/Team/Gallery

From 2013.igem.org

(Difference between revisions)
Line 299: Line 299:
function showGarPic(from,illustration,alb){
function showGarPic(from,illustration,alb){
-
finalize();
+
  finalize();
   currentAlb = alb;
   currentAlb = alb;
   garPic.src = from;
   garPic.src = from;
   adHeight = $(window).height()*0.8;
   adHeight = $(window).height()*0.8;
   adWidth = $(window).width()*0.8;
   adWidth = $(window).width()*0.8;
-
   setTimeout(function(){
+
   lightframe.style.top = window.scrollY || document.documentElement.scrollTop + 'px'
-
  ratio = garPic.height/garPic.width;
+
   adjustSize();
-
  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.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);
 
   document.body.insertBefore(lightframe,document.body.childNodes[0]);
   document.body.insertBefore(lightframe,document.body.childNodes[0]);
  }
  }
-
 
function go2left(){
function go2left(){

Revision as of 11:18, 15 September 2013

The beast and its Achilles heel:

 A novel target to fight multi-resistant pathogenic bacteria



In the Lab

 

Previous Next