470
edits
No edit summary |
No edit summary |
||
Line 135: | Line 135: | ||
var leftDiv = $("<div/>").addClass("grid_col"); | var leftDiv = $("<div/>").addClass("grid_col"); | ||
var rightDiv = $("<div/>").addClass("grid_col"); | var rightDiv = $("<div/>").addClass("grid_col"); | ||
var parentHieght = | var parentHieght = divide2cols.height()/2; | ||
divide2cols.find("dl").each(function() { | divide2cols.find("dl").each(function() { | ||
console.log( $(this).offset().top > parentHieght ); | |||
if ( $(this).offset().top > parentHieght ) { | if ( $(this).offset().top > parentHieght ) { | ||
rightDiv.append( $(this), $(this).next() ); | rightDiv.append( $(this), $(this).next() ); |