diff options
Diffstat (limited to 'assets/js')
-rw-r--r-- | assets/js/lustiges-script.js | 5 |
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); }); |