2 $('#content').delegate('div.tile a', 'click', function() {
3 $('header').removeClass('hidden');
4 $('header #cover').css('background-image', $(this).parent().css('background-image'));
5 $('header #title').text($(this).find('.channel').text() + ' - ' + $(this).find('.sound').text());
7 var source = $('<source>', {src: $(this).data('sound-uri')});
8 $('audio').append(source);
13 $('#filter').on('submit', function() {
16 data: {q: $('#filter input').val()}
17 }).done(function(result) {
18 $('#content').html($(result).find('div.tile'));