Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
deb0ad49
Commit
deb0ad49
authored
Oct 07, 2013
by
Valera Rozuvan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enabling showing of captions always when mouse is over CC.
parent
20c2b3dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
+19
-10
common/lib/xmodule/xmodule/css/video/display.scss
+2
-4
common/lib/xmodule/xmodule/js/src/video/09_video_caption.js
+17
-6
No files found.
common/lib/xmodule/xmodule/css/video/display.scss
View file @
deb0ad49
...
...
@@ -392,7 +392,7 @@ div.video {
@include
transition
(
none
);
-webkit-font-smoothing
:
antialiased
;
width
:
30px
;
&
:hover
,
&
:active
{
background-color
:
#444
;
color
:
#fff
;
...
...
@@ -457,7 +457,7 @@ div.video {
text-indent
:
-9999px
;
@include
transition
(
none
);
width
:
30px
;
&
:hover
,
&
:active
{
background-color
:
#444
;
color
:
#fff
;
...
...
@@ -611,7 +611,6 @@ div.video {
ol
.subtitles
{
width
:
0
;
height
:
0
;
visibility
:
hidden
;
}
ol
.subtitles.html5
{
...
...
@@ -645,7 +644,6 @@ div.video {
ol
.subtitles
{
right
:
-
(
flex-grid
(
4
));
width
:
auto
;
visibility
:
hidden
;
}
}
...
...
common/lib/xmodule/xmodule/js/src/video/09_video_caption.js
View file @
deb0ad49
...
...
@@ -170,15 +170,22 @@ function () {
}
else
if
(
!
this
.
config
.
autohideHtml5
)
{
this
.
videoCaption
.
subtitlesEl
.
on
({
keydown
:
this
.
videoCaption
.
autoShowCaptions
,
focus
:
this
.
videoCaption
.
autoShowCaptions
,
// Moving slider on subtitles is not a mouse move, but captions
// should not be auto-hidden.
scroll
:
this
.
videoCaption
.
autoShowCaptions
scroll
:
this
.
videoCaption
.
autoShowCaptions
,
mouseout
:
this
.
videoCaption
.
autoHideCaptions
,
blur
:
this
.
videoCaption
.
autoHideCaptions
});
this
.
videoCaption
.
hideSubtitlesEl
.
on
({
mousemove
:
this
.
videoCaption
.
autoShowCaptions
,
keydown
:
this
.
videoCaption
.
autoShowCaptions
focus
:
this
.
videoCaption
.
autoShowCaptions
,
mouseout
:
this
.
videoCaption
.
autoHideCaptions
,
blur
:
this
.
videoCaption
.
autoHideCaptions
});
}
}
...
...
@@ -272,10 +279,12 @@ function () {
clearTimeout
(
this
.
captionHideTimeout
);
}
this
.
captionHideTimeout
=
setTimeout
(
this
.
videoCaption
.
autoHideCaptions
,
this
.
videoCaption
.
fadeOutTimeout
);
if
(
this
.
config
.
autohideHtml5
)
{
this
.
captionHideTimeout
=
setTimeout
(
this
.
videoCaption
.
autoHideCaptions
,
this
.
videoCaption
.
fadeOutTimeout
);
}
this
.
captionsShowLock
=
false
;
}
...
...
@@ -502,6 +511,8 @@ function () {
// forward out of the captions.
if
(
captionIndex
===
0
||
captionIndex
===
this
.
videoCaption
.
captions
.
length
-
1
)
{
this
.
videoCaption
.
autoHideCaptions
();
this
.
videoCaption
.
autoScrolling
=
true
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment