Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_videoplayer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn <bjoern.korella@markenfilm-crossing.de>2015-11-20 18:54:36 +0300
committerBjörn <bjoern.korella@markenfilm-crossing.de>2015-11-20 18:54:36 +0300
commit5b1503f72670a5ccfa391051c4638693a841794a (patch)
treec1577cf737363023b20d5b1d465d2f64f608e2a4
parent13b1f8e23f0a661eacc38066ed61609a7b55916b (diff)
show and hide close button with the rest of the UI
-rwxr-xr-xcss/style.css1
-rwxr-xr-xjs/viewer.js7
2 files changed, 7 insertions, 1 deletions
diff --git a/css/style.css b/css/style.css
index a6c56af..a999a47 100755
--- a/css/style.css
+++ b/css/style.css
@@ -56,7 +56,6 @@ a.icon-view-close {
height: 30px;
opacity: .35;
cursor: pointer;
- transition: opacity 0.5s, linear;
}
a.icon-view-close:hover {
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() {