From 8738f1c132297e609d8a7f14c8dc4508a565f626 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Tue, 17 Jul 2012 19:50:31 -0400 Subject: have js matrix --- base.css | 3 ++- base.js | 13 +++++++++++++ index.html | 17 +---------------- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/base.css b/base.css index 72c81a2..4343a2d 100644 --- a/base.css +++ b/base.css @@ -6,9 +6,10 @@ body { margin: 20px; } -.cell { +.mc { width: 15px; height: 15px; display: inline-block; + margin-left: 5px; background-color: #000; } diff --git a/base.js b/base.js index e69de29..73a2bc7 100644 --- a/base.js +++ b/base.js @@ -0,0 +1,13 @@ +genMatrix = function(el, m, n) { + for (var i=0; i'); + var row = $('#r' + i); + for (var j=0; j'); + } + } +}; + +$(document).ready(function() { + genMatrix($('#viz'), 10, 10); +}); diff --git a/index.html b/index.html index 855a9be..14f0696 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - + @@ -14,21 +14,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-- cgit v1.3.1