.tile.ui-selected .wall {
border: 1px dashed blue;
}
.tile.ui-selected:not(:empty) {
border: 1px solid blue;
background-color: blue;
}
.tile.ui-selected img {
opacity:0.5;
}
.tile.ui-selecting {
border: 1px dashed orange;
}
for food in ['toast', 'cheese', 'wine']
eat food
var food, _i, _len, _ref;
_ref = ['toast', 'cheese', 'wine'];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
food = _ref[_i];
eat(food);
}
class Animal
constructor: (name) -> this.name = name
move: (meters) -> alert @name + " moved #{meters}m."
class Snake extends Animal
move: -> alert "Slithering…"; super 5
class Horse extends Animal
move: -> alert "Galloping…"; super 45
sam = new Snake "Sammy the Python"
tom = new Horse "Tommy the Palomino"
sam.move()
tom.move()
var Animal, Horse, Snake, sam, tom;
var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) {
for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
function ctor() { this.constructor = child; }
ctor.prototype = parent.prototype;
child.prototype = new ctor;
child.__super__ = parent.prototype;
return child;
};
Animal = (function() {
function Animal(name) {
this.name = name;
}
Animal.prototype.move = function(meters) {
return alert(this.name + (" moved " + meters + "m."));
};
return Animal;
})();
Snake = (function() {
__extends(Snake, Animal);
function Snake() {
Snake.__super__.constructor.apply(this, arguments);
}
Snake.prototype.move = function() {
alert("Slithering…");
return Snake.__super__.move.call(this, 5);
};
return Snake;
})();
Horse = (function() {
__extends(Horse, Animal);
function Horse() {
Horse.__super__.constructor.apply(this, arguments);
}
Horse.prototype.move = function() {
alert("Galloping…");
return Horse.__super__.move.call(this, 45);
};
return Horse;
})();
sam = new Snake("Sammy the Python");
tom = new Horse("Tommy the Palomino");
sam.move();
tom.move();
Shocked that firewall seemed to be the issue though as if that were the case I'd have expected it to work in no browsers rather than in Firefox only.
It's also weird that it works in IE since it uses chrome-frame in I.E. so technically it uses chrome. :p