Team:Peking/js/inside.js
From 2014.igem.org
(Difference between revisions)
(One intermediate revision not shown) | |||
Line 1: | Line 1: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
- | + | // var hei=$("#midbody").height(); | |
- | + | // $("#sidenav").css( "height", hei | |
- | + | // ); | |
- | $("# | + | var wid=$("#insidemid").width()-$("#midbody").width()-50; |
- | containerSelector: "# | + | $("#sidenav").css( "width", wid |
+ | ); | ||
+ | |||
+ | $("#pinned").pin({ | ||
+ | containerSelector: "#insidemid" | ||
}); | }); | ||
Latest revision as of 15:34, 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":""});
},function(){
$("#jumpup img").attr({"src":""}); }); $('#jumpdown').hover(function(){ $("#jumpdown img").attr({"src":""});
},function(){
$("#jumpdown img").attr({"src":""});
});
});
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);
};