var dance = {
a: '\O ' + '\n' +
' |\' + '\n' +
'/ \' + '\n',
b: ' O/' + '\n' +
'/| ' + '\n' +
'/ \',
bool: false,
toggle: function() {
var _b = this.bool;
this.bool = !this.bool;
return (_b) ? this.a : this.b;
},
start: function(id) {
this.dancing = setInterval(function() {
$.post('/messages/' + id, { 'fkey': fkey().fkey, 'text': dance.toggle() });
}, 750);
},
stop: function(id) {
clearInterval(this.dancing);