Team:Colorado State

From 2012.igem.org

(Difference between revisions)
Line 1: Line 1:
-
 
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<head>
Line 292: Line 291:
   if(d == 1){
   if(d == 1){
clearTimeout(h.timer);
clearTimeout(h.timer);
-
if(c.maxh \&\& c.maxh <= c.offsetHeight){return}
+
if (c.maxh <= c.offsetHeight) {
 +
if (c.maxh) {
 +
return;
 +
}
 +
}
else if(!c.maxh){
else if(!c.maxh){
  c.style.display = 'block';
  c.style.display = 'block';
Line 330: Line 333:
dist = (Math.round(currh / DDSPEED));
dist = (Math.round(currh / DDSPEED));
   }
   }
-
   if(dist <= 1 \&\& d == 1){
+
   if(dist <= 1){
-
dist = 1;
+
  if ( d == 1) {
 +
  dist = 1;
 +
  }
   }
   }
   c.style.height = currh + (dist * d) + 'px';
   c.style.height = currh + (dist * d) + 'px';
   c.style.opacity = currh / c.maxh;
   c.style.opacity = currh / c.maxh;
   c.style.filter = 'alpha(opacity=' + (currh * 100 / c.maxh) + ')';
   c.style.filter = 'alpha(opacity=' + (currh * 100 / c.maxh) + ')';
-
   if((currh < 2 \&\& d != 1) || (currh > (c.maxh - 2) \&\& d == 1)){
+
   if (currh < 2) {
-
clearInterval(c.timer);
+
if (d != 1) {
 +
clearInterval(c.timer);
 +
}
 +
  } else if (currh > (c.maxh - 2)) {
 +
if (d == 1) {
 +
clearInterval(c.timer);
 +
}
   }
   }
}
}

Revision as of 19:49, 17 July 2012

Edit page
http://rclouse145.wix.com/2012csuigem#!home/mainPage

Duis nonsequ ismodol et oreetuer iril dolore facidunt, vulluptat volore consecte dolesed dolor velit ver adionse ot magnisc illandi et gniamet, vendre feum veniamc onullutpatin hent ipit wisi esse dolesting ero dunt utpatin vel ipit, quation ullum aut prat. Am autet, quatet nos od minci euip enim deles sequisl et ullutat augait facilla ad ea autpatie eui blan henim adte facip eugait lametue rostis nonsenibh exeriliquat incin heniam, secte at dolesequat nulla facilit la consectet nim iusto dunt utpatin vel ipit, quation magnis do et nit augiatie erat.