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());
6 $('header #site').attr('href', $(this).data('page-uri'));
8 var source = $('<source>', {src: $(this).data('sound-uri')});
9 $('audio').append(source);
10 $('audio')[0].pause();
14 $('#filter').on('submit', function() {
17 data: {q: $('#filter input').val()}
18 }).done(function(result) {
19 $('#content').html($(result).find('div.tile'));