Team:Waterloo/TestPage

From 2014.igem.org

(Difference between revisions)
 
Line 101: Line 101:
function alignHeadings(){
function alignHeadings(){
   var remainingWidth = $("div#topbar").width();
   var remainingWidth = $("div#topbar").width();
-
  if (remainingWidth <= "1000"){
 
-
    $("ul#headings >li").css("display", "none");
 
-
    $("ul#shortheadings >li").css("display", "block");
 
-
    //console.log("working");
 
-
  }
 
-
  else {
 
     var allheadings = $("ul#headings >li");
     var allheadings = $("ul#headings >li");
     allheadings.css("display", "block");
     allheadings.css("display", "block");
Line 112: Line 106:
     allheadings.width(remainingWidth / (allheadings.length + 0.5))
     allheadings.width(remainingWidth / (allheadings.length + 0.5))
       .css({"text-align":"center","line-height":"150%"});
       .css({"text-align":"center","line-height":"150%"});
-
    //$("button").css("width", allheadings.width());
 
-
    console.log($(remainingWidth));
 
-
  }
 
}
}

Latest revision as of 05:04, 16 October 2014

Waterloo iGem 2014 Team

Team

Advisors


Trevor Charles

Brian Ingalls

Marc Aucoin

Andrew Doxey

Barbara Moffatt