Team:Peking/firsttry/js/inside.js

From 2014.igem.org

(Difference between revisions)
Line 4: Line 4:
function inside()
function inside()
{
{
-
                var h= $("#midbody").height();
+
var h1= $("#midbody").height();
$("#sidenav").css("height",h);
$("#sidenav").css("height",h);
 +
 +
var h2= $("#sidenav").height();
$("#list").pin({
$("#list").pin({
  containerSelector: "#sidenav"
  containerSelector: "#sidenav"
});
});
-
                 alert(h);
+
                 alert(h1,h2);
};
};

Revision as of 09:17, 2 October 2014

$(document).ready(function(){ inside(); }); function inside() { var h1= $("#midbody").height(); $("#sidenav").css("height",h);

var h2= $("#sidenav").height(); $("#list").pin({ containerSelector: "#sidenav" });

               alert(h1,h2);

};