Team:Peking/firsttry/js/inside.js

From 2014.igem.org

(Difference between revisions)
Line 5: Line 5:
{
{
var h1= $("#midbody").height();
var h1= $("#midbody").height();
-
$("#sidenav").css("height",h);
+
$("#sidenav").css("height",h1);
var h2= $("#sidenav").height();
var h2= $("#sidenav").height();

Revision as of 09:21, 2 October 2014

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

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

               alert(h1);

alert(h2); };