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
1810022d
Commit
1810022d
authored
Oct 18, 2013
by
jmclaus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Caption functionality announced when tabbing to list
parent
afa2a681
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
common/lib/xmodule/xmodule/js/src/video/09_video_caption.js
+4
-0
lms/templates/video.html
+1
-1
No files found.
common/lib/xmodule/xmodule/js/src/video/09_video_caption.js
View file @
1810022d
...
@@ -432,14 +432,18 @@ function () {
...
@@ -432,14 +432,18 @@ function () {
// outline has to be drawn (tabbing) or not (mouse click).
// outline has to be drawn (tabbing) or not (mouse click).
this
.
videoCaption
.
isMouseFocus
=
false
;
this
.
videoCaption
.
isMouseFocus
=
false
;
// Set top and bottom spacing heigh and make sure they are taken out of
// the tabbing order.
this
.
videoCaption
.
subtitlesEl
this
.
videoCaption
.
subtitlesEl
.
prepend
(
.
prepend
(
$
(
'<li class="spacing">'
)
$
(
'<li class="spacing">'
)
.
height
(
this
.
videoCaption
.
topSpacingHeight
())
.
height
(
this
.
videoCaption
.
topSpacingHeight
())
.
attr
(
'tabindex'
,
-
1
)
)
)
.
append
(
.
append
(
$
(
'<li class="spacing">'
)
$
(
'<li class="spacing">'
)
.
height
(
this
.
videoCaption
.
bottomSpacingHeight
())
.
height
(
this
.
videoCaption
.
bottomSpacingHeight
())
.
attr
(
'tabindex'
,
-
1
)
);
);
this
.
videoCaption
.
rendered
=
true
;
this
.
videoCaption
.
rendered
=
true
;
...
...
lms/templates/video.html
View file @
1810022d
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
</section>
</section>
</article>
</article>
<ol
class=
"subtitles"
tabindex=
"0"
title=
"
Captions
"
><li></li></ol>
<ol
class=
"subtitles"
tabindex=
"0"
title=
"
${_('Captions')}"
role=
"group"
aria-label=
"${_('Activating an item in this group will spool the video to the corresponding time point')}
"
><li></li></ol>
</div>
</div>
<div
class=
"focus_grabber last"
></div>
<div
class=
"focus_grabber last"
></div>
...
...
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