Difference between revisions of "Team:Minnesota/Practices"
PatrickHolec (Talk | contribs) |
|||
Line 770: | Line 770: | ||
</div> | </div> | ||
+ | |||
+ | $(document).ready(function(){ | ||
+ | |||
+ | // jQuery functions go here... | ||
+ | |||
+ | //vertical autocenter | ||
+ | $(window).resize(function(){ | ||
+ | $('#ContentAll').css({ | ||
+ | position:'absolute', | ||
+ | top: ($(window).height() - $('#ContentAll').outerHeight())/2 | ||
+ | }); | ||
+ | $('#bgImageDiv').css({ | ||
+ | position:'absolute', | ||
+ | top: -1*($(window).height() - $('#bgImageDiv').height())/2 | ||
+ | }); | ||
+ | |||
+ | }); | ||
+ | |||
+ | $(window).resize(); | ||
+ | //end vertial autocenter | ||
+ | |||
+ | //background image centering | ||
+ | |||
+ | |||
+ | var keeper; | ||
+ | |||
+ | $("#mainRightButton1").hover( | ||
+ | function() { | ||
+ | keeper = $(this).attr("src"); | ||
+ | var keeper2 = keeper.replace("img","txt"); | ||
+ | $(this).attr("src",keeper2); | ||
+ | }, | ||
+ | function() {$(this).attr("src",keeper);} | ||
+ | ); | ||
+ | |||
+ | $("#mainRightButton2").hover( | ||
+ | function() { | ||
+ | keeper = $(this).attr("src"); | ||
+ | var keeper2 = keeper.replace("http://i791.photobucket.com/albums/yy194/GopheriGEM/pes_maroon_img_zps10b17630.png","http://i791.photobucket.com/albums/yy194/GopheriGEM/pes_gold_txt_zps96347d4e.png"); | ||
+ | $(this).attr("src",keeper2); | ||
+ | }, | ||
+ | function() {$(this).attr("src",keeper);} | ||
+ | ); | ||
+ | |||
+ | $("#mainRightButton3").hover( | ||
+ | function() { | ||
+ | keeper = $(this).attr("src"); | ||
+ | var keeper2 = keeper.replace("http://i791.photobucket.com/albums/yy194/GopheriGEM/insulin_maroon_img_zpsfc8c87cc.png","http://i791.photobucket.com/albums/yy194/GopheriGEM/insulin_gold_txt_zps6a94b6c8.png"); | ||
+ | $(this).attr("src",keeper2); | ||
+ | }, | ||
+ | function() {$(this).attr("src",keeper);} | ||
+ | ); | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | }); //ends .ready function | ||
+ | |||
<div class="rightNavButtons"> | <div class="rightNavButtons"> |
Revision as of 21:39, 18 September 2015
Team:Minnesota/Project
From 2015.igem.org
With a nod towards macroscopic eukaryotic networks, our iGEM was interested in identifying how both the public and scientific communities communication. Therefore, we complete a meta-analysis of the Biobrick registry, analyzed patterns in social media communication, and led initiatives for education. Click on the icons below to learn more!