Team:Peking/js/mem.js

From 2014.igem.org

(Difference between revisions)
 
(3 intermediate revisions not shown)
Line 6: Line 6:
-
var wid=$("#insidemid").width()-$("#midbody").width()-150;
+
var wid=$("#insidemid").width()-$("#midbody").width()-50;
$("#sidenav").css( "width", wid
$("#sidenav").css( "width", wid
);
);
-
$("#sidenav").pin({
+
$("#pinned").pin({
  containerSelector: "#insidemid"
  containerSelector: "#insidemid"
});
});

Latest revision as of 03:19, 15 October 2014

$(document).ready(function(){

// var hei=$("#midbody").height(); // $("#sidenav").css( "height", hei // );


var wid=$("#insidemid").width()-$("#midbody").width()-50; $("#sidenav").css( "width", wid );

$("#pinned").pin({ containerSelector: "#insidemid" });

jumpupposition(); $('#jumpup').hover(function(){ $("#jumpup img").attr({"src":"Peking2014wcg_jumpupchoose.png"});

                           },function(){

$("#jumpup img").attr({"src":"Peking2014wcg_jumpup.png"}); }); $('#jumpdown').hover(function(){ $("#jumpdown img").attr({"src":"Peking2014wcg_jumpdownchoose.png"});

                     },function(){

$("#jumpdown img").attr({"src":"Peking2014wcg_jumpdown.png"});

                       		 });

});



function jumpupposition() { var right=($("body").width()-$("#mainbody").width())/2-80;

 		if(right<0){
 		    right=0;
               }
 		$("#jumpup").css('right',right);

$("#jumpdown").css('right',right); //alert(right);

};