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
b69fea72
Commit
b69fea72
authored
Apr 29, 2016
by
clrux
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12306 from edx/clrux/tnl-4444
TNL-4444 correcting fullscreen transcript skip links
parents
61f48de3
b20414bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
common/lib/xmodule/xmodule/css/video/display.scss
+9
-0
common/lib/xmodule/xmodule/js/src/video/09_video_caption.js
+2
-8
No files found.
common/lib/xmodule/xmodule/css/video/display.scss
View file @
b69fea72
...
...
@@ -787,6 +787,15 @@
&
:empty
{
margin-bottom
:
0
;
}
&
.spacing
:last-of-type
{
position
:
relative
;
.transcript-end
{
position
:
absolute
;
bottom
:
0
;
}
}
}
}
}
...
...
common/lib/xmodule/xmodule/js/src/video/09_video_caption.js
View file @
b69fea72
...
...
@@ -107,12 +107,8 @@
var
template
=
[
'<div class="subtitles" role="region" id="transcript-'
+
this
.
state
.
id
+
'">'
,
'<a href="#transcript-end-'
+
this
.
state
.
id
+
'"'
,
'id="transcript-start-'
+
this
.
state
.
id
+
'" class="transcript-start"></a>'
,
'<h3 id="transcript-label-'
+
this
.
state
.
id
+
'" class="transcript-title sr"></h3>'
,
'<ol id="transcript-captions" class="subtitles-menu"></ol>'
,
'<a href="#transcript-start-'
+
this
.
state
.
id
+
'"'
,
'id="transcript-end-'
+
this
.
state
.
id
+
'" class="transcript-end">
\
</a>'
,
'</div>'
].
join
(
''
);
...
...
@@ -785,14 +781,12 @@
this
.
subtitlesMenuEl
.
prepend
(
$
(
'<li class="spacing">
'
)
$
(
'<li class="spacing">
<a href="#transcript-end-'
+
this
.
state
.
id
+
'" id="transcript-start-'
+
this
.
state
.
id
+
'" class="transcript-start"></a>'
)
// jshint ignore: line
.
height
(
this
.
topSpacingHeight
())
.
attr
(
'tabindex'
,
-
1
)
)
.
append
(
$
(
'<li class="spacing">
'
)
$
(
'<li class="spacing">
<a href="#transcript-start-'
+
this
.
state
.
id
+
'" id="transcript-end-'
+
this
.
state
.
id
+
'" class="transcript-end"></a>'
)
// jshint ignore: line
.
height
(
this
.
bottomSpacingHeight
())
.
attr
(
'tabindex'
,
-
1
)
);
},
...
...
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