Difference between revisions of "Team:Minnesota/Project"
Line 772: | Line 772: | ||
+ | $(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 | ||
Revision as of 22:52, 18 September 2015
Team:Minnesota/Project
From 2015.igem.org
$(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
The bench-side goals of our project involve characterizing and optimizing biosynthesis networks in eukaryotes. Click here to read about the experimental and computational portions of the project!