summaryrefslogtreecommitdiff
path: root/rapbot/lyrics.js
diff options
context:
space:
mode:
Diffstat (limited to 'rapbot/lyrics.js')
-rwxr-xr-xrapbot/lyrics.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/rapbot/lyrics.js b/rapbot/lyrics.js
new file mode 100755
index 0000000..bcddd53
--- /dev/null
+++ b/rapbot/lyrics.js
@@ -0,0 +1,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');
+ }
+
+ });
+}); \ No newline at end of file