Team:Waterloo/TestPage

From 2014.igem.org

(Difference between revisions)
Line 259: Line 259:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
<script type="text/javascript">
-
 
-
//Align headings
 
-
function alignHeadings(){
 
-
  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");
 
-
    allheadings.css("display", "block");
 
-
    $("ul#shortheadings >li").css("display", "none");
 
-
    allheadings.width(remainingWidth / (allheadings.length + 0.5))
 
-
      .css({"text-align":"center","line-height":"150%"});
 
-
    //$("button").css("width", allheadings.width());
 
-
    console.log($(remainingWidth));
 
-
  }
 
-
}
 
$(document).ready(alignHeadings);
$(document).ready(alignHeadings);

Revision as of 21:00, 13 October 2014

Waterloo iGem 2014 Team

Team
Advisors

Trevor Charles

Brian Ingalls

Marc Ancoin

Andrew Doxey

Barbara Moffatt