Skip to content

Instantly share code, notes, and snippets.

@jgv
Created February 25, 2011 21:33
Show Gist options
  • Select an option

  • Save jgv/844538 to your computer and use it in GitHub Desktop.

Select an option

Save jgv/844538 to your computer and use it in GitHub Desktop.
var width = document.width / 3;
var height = document.height / 3;
var i = 0;
cell = $("<div/>", {
"class" : "video",
"width" : width + "px",
"height" : height + "px",
"click" : function(e) {
e.preventDefault();
}
}
while (i < 9) {
cell.prependTo(document.body);
i++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment