Commits

Anonymous committed ab0c089

Better(?) pack hint

Comments (0)

Files changed (2)

 button#restart {
     width: 100%;
 }
+
+img.pack {
+    filter: alpha(opacity=70);
+    -moz-opacity: 0.70;
+    opacity: 0.70;
+}
     }
 }
 
+function clear_pack_hint() {
+    for (var row = 0; row < NUM_ROWS; ++row) {
+        for (var col = 0; col < NUM_COLS; ++col) {
+            BOARD[row][col].removeClass('pack');
+        }
+    }
+}
+
 function on_hover(row, col) {
+    clear_pack_hint();
+
     if (cell_color(row, col) == BLANK) {
         return;
     }
     }
 
     $.each(pack, function() {
-        BOARD[this[0]][this[1]].fadeOut('fast').fadeIn('fast');
+        BOARD[this[0]][this[1]].addClass('pack');
     });
 }