Browse Source

added score image, and fixed leaderbard menu zindex

visualizer
edoardoo 9 years ago
parent
commit
77af021323
2 changed files with 10 additions and 1 deletions
  1. +3
    -1
      public/scripts/functions.js
  2. +7
    -0
      public/style/style.less

+ 3
- 1
public/scripts/functions.js View File

@ -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" : "";


+ 7
- 0
public/style/style.less View File

@ -59,6 +59,8 @@ audio{
right: -400px;
color: #333;
opacity: .2;
z-index: 999;
h1, h2, p{
padding-left: 10px;
}
@ -105,6 +107,11 @@ audio{
z-index: 999;
}
.honeycombScore:extend(.honeycombIndex){
top: 120px;
background-color: rgba(175, 0, 198, 0.29);
}
.hex {
float: left;


Loading…
Cancel
Save