Skip to content

Instantly share code, notes, and snippets.

$('#box').css('display', 'none');
var play = function() {
var boxes = $('#box span'),
color1 = {count: 0},
color2 = {count: 0},
lastColor1Item, lastColor2Item;
boxes.each(function(idx, item) {
var color = $(item).css('background-color');
if (!color1.color) {