summaryrefslogtreecommitdiff
path: root/rapbot/lyrics.js
blob: bcddd53ceef9bfb86f9d888a5303960fea149c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$(document).ready(function() {
    $('.lyrics_box').cycle({
		fx: 'fade',
		cssFirst: { width: 800 },
		cssBefore:{ width: 800 },
		cssAfter:{ width: 800 },
		timeout: 0,
		random: true,
		next: ".next",
		prev: ".prev",
		before: function(){
		           $(this).parent().find('audio.current').removeClass();
		     },
		after: function(){
		           $(this).children("audio").addClass('current');
		     }
		
	});
});