Team:Waterloo/TestPage
From 2014.igem.org
(Difference between revisions)
Line 260: | Line 260: | ||
<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); | ||
$(document).ready(showInfo('allTeams', '0')); | $(document).ready(showInfo('allTeams', '0')); |
Revision as of 15:22, 5 October 2014
![](https://static.igem.org/mediawiki/2014/a/ad/Waterloo_to-top-button.png)
Team
Advisors
![]() Trevor Charles |
![]() Brian Ingalls |
![]() Marc Ancoin |
![]() Andrew Doxey |
![]() Barbara Moffatt |