diff options
Diffstat (limited to 'js/viewer.js')
-rwxr-xr-x | js/viewer.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/viewer.js b/js/viewer.js index 4eeb2c6..9bec2bc 100755 --- a/js/viewer.js +++ b/js/viewer.js @@ -27,6 +27,13 @@ var videoViewer = { $('#videoplayer_overlay').fadeIn('fast'); // autoplay var vjsPlayer = videojs("my_video_1"); + // show and hide close button with the rest of the UI + vjsPlayer.on('userinactive', function () { + $('#box-close').fadeOut(1000, "easeInOutExpo"); + }); + vjsPlayer.on('useractive', function () { + $('#box-close').fadeIn(100, "easeInOutExpo"); + }); vjsPlayer.play(); }, hide : function() { |