This is a random list of jQuery code that roughly reflects real life.

Follow me on twitter @reallifejquery Follow reallifejquery on Twitter


Wednesday, May 26, 2010

Regardless of the day ahead, coffee is needed.

if ($(self).has('.work')) $(self).find('.coffee').first();
else if ($(self).has('.chores')) $(self).find('.coffee').first();
else $('.friends').join('#cafe');

No comments:

Post a Comment