aboutsummaryrefslogtreecommitdiff
path: root/assets/js/lustiges-script.js
diff options
context:
space:
mode:
authorMaZderMind2014-12-26 01:43:33 +0100
committerMaZderMind2014-12-26 01:43:33 +0100
commitd76854a4800df84f325d89e499d70bb0b121e4a1 (patch)
tree715edbdfb43663640436fd19d360888b500a04c1 /assets/js/lustiges-script.js
parenta2b8258e26ce48407bfbd2b12ca8f7aab6c82e86 (diff)
fix selectable subtitle block
Diffstat (limited to 'assets/js/lustiges-script.js')
-rw-r--r--assets/js/lustiges-script.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js
index 26d68b9..322c69e 100644
--- a/assets/js/lustiges-script.js
+++ b/assets/js/lustiges-script.js
@@ -5,10 +5,11 @@ $.fn.pulseSubsLine = function(klass) {
.hide()
.end()
.addClass(klass)
+ .css({display: 'block'})
.animate({opacity: 1, duration: .75}, function() {
setTimeout(function() {
e.animate({opacity: 0, duration: .5}, function() {
- e.removeClass(klass);
+ e.css({display: 'none'}).removeClass(klass);
})
}, 5000);
});
@@ -103,7 +104,7 @@ MediaElementPlayer.prototype.buildsubs = function(player, controls, layers, medi
var socket = io(host);
socket.on('connect', function() {
- $line.animate({opacity: 1}, t);
+ $line.show().animate({opacity: 1}, t);
socket.emit('join', room);
});