|
|
@ -18,7 +18,7 @@ function populateHoneycomb( honeyCells , index){ |
|
|
|
// var cellWidth = ( height/honeyCells.height )*Math.sqrt(3);
|
|
|
|
// if( width/honeyCells.width < height/honeyCells.height ){
|
|
|
|
|
|
|
|
var cellWidth = (width - honeyCells.width)/(honeyCells.width+0.5); |
|
|
|
var cellWidth = (width - honeyCells.width)/(honeyCells.width+1); |
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
@ -40,6 +40,8 @@ function populateHoneycomb( honeyCells , index){ |
|
|
|
renderedHoneyComb.innerHTML=""; |
|
|
|
|
|
|
|
honeyComb.innerHTML = "<div class='honeycombIndex'>"+index+"</div>"; |
|
|
|
honeyComb.innerHTML += "<div class='honeycombScore'>"+honeyCells.score+"</div>"; |
|
|
|
|
|
|
|
|
|
|
|
for (var i = honeyCells.height - 1; i >= 0; i--) { |
|
|
|
var even = (i%2 == 0) ? "even" : ""; |
|
|
|