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
9d418755
Commit
9d418755
authored
Oct 02, 2013
by
jmclaus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added changes made to video.html to fixtures. Addressed latest PR comments
parent
d201ce10
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
46 deletions
+34
-46
common/lib/xmodule/xmodule/js/fixtures/video.html
+6
-6
common/lib/xmodule/xmodule/js/fixtures/video_all.html
+6
-6
common/lib/xmodule/xmodule/js/fixtures/video_yt_multiple.html
+6
-6
common/lib/xmodule/xmodule/js/src/video/06_video_progress_slider.js
+7
-13
common/lib/xmodule/xmodule/js/src/video/07_video_volume_control.js
+7
-13
lms/templates/video.html
+2
-2
No files found.
common/lib/xmodule/xmodule/js/fixtures/video.html
View file @
9d418755
...
...
@@ -26,26 +26,26 @@
<div
class=
"slider"
></div>
<div>
<ul
class=
"vcr"
>
<li><a
class=
"video_control"
href=
"#"
title=
"Play"
></a></li>
<li><a
class=
"video_control"
href=
"#"
title=
"Play"
role=
"button"
aria-disabled=
"false"
></a></li>
<li><div
class=
"vidtime"
>
0:00 / 0:00
</div></li>
</ul>
<div
class=
"secondary-controls"
>
<div
class=
"speeds"
>
<a
href=
"#"
>
<a
href=
"#"
title=
"Speeds"
role=
"button"
aria-disabled=
"false"
>
<h3>
Speed
</h3>
<p
class=
"active"
></p>
</a>
<ol
class=
"video_speeds"
></ol>
</div>
<div
class=
"volume"
>
<a
href=
"#"
></a>
<a
href=
"#"
title=
"Volume"
role=
"button"
aria-disabled=
"false"
></a>
<div
class=
"volume-slider-container"
>
<div
class=
"volume-slider"
></div>
</div>
</div>
<a
href=
"#"
class=
"add-fullscreen"
title=
"Fill browser"
>
Fill Browser
</a>
<a
href=
"#"
class=
"quality_control"
title=
"HD"
>
HD
</a>
<a
href=
"#"
class=
"hide-subtitles"
title=
"Turn off captions"
>
Captions
</a>
<a
href=
"#"
class=
"add-fullscreen"
title=
"Fill browser"
role=
"button"
aria-disabled=
"false"
>
Fill Browser
</a>
<a
href=
"#"
class=
"quality_control"
title=
"HD"
role=
"button"
aria-disabled=
"false"
>
HD
</a>
<a
href=
"#"
class=
"hide-subtitles"
title=
"Turn off captions"
role=
"button"
aria-disabled=
"false"
>
Captions
</a>
</div>
</div>
</section>
...
...
common/lib/xmodule/xmodule/js/fixtures/video_all.html
View file @
9d418755
...
...
@@ -29,26 +29,26 @@
<div
class=
"slider"
></div>
<div>
<ul
class=
"vcr"
>
<li><a
class=
"video_control"
href=
"#"
title=
"Play"
></a></li>
<li><a
class=
"video_control"
href=
"#"
title=
"Play"
role=
"button"
aria-disabled=
"false"
></a></li>
<li><div
class=
"vidtime"
>
0:00 / 0:00
</div></li>
</ul>
<div
class=
"secondary-controls"
>
<div
class=
"speeds"
>
<a
href=
"#"
>
<a
href=
"#"
title=
"Speeds"
role=
"button"
aria-disabled=
"false"
>
>
<h3>
Speed
</h3>
<p
class=
"active"
></p>
</a>
<ol
class=
"video_speeds"
></ol>
</div>
<div
class=
"volume"
>
<a
href=
"#"
></a>
<a
href=
"#"
title=
"Volume"
role=
"button"
aria-disabled=
"false"
></a>
<div
class=
"volume-slider-container"
>
<div
class=
"volume-slider"
></div>
</div>
</div>
<a
href=
"#"
class=
"add-fullscreen"
title=
"Fill browser"
>
Fill Browser
</a>
<a
href=
"#"
class=
"quality_control"
title=
"HD"
>
HD
</a>
<a
href=
"#"
class=
"hide-subtitles"
title=
"Turn off captions"
>
Captions
</a>
<a
href=
"#"
class=
"add-fullscreen"
title=
"Fill browser"
role=
"button"
aria-disabled=
"false"
>
Fill Browser
</a>
<a
href=
"#"
class=
"quality_control"
title=
"HD"
role=
"button"
aria-disabled=
"false"
>
HD
</a>
<a
href=
"#"
class=
"hide-subtitles"
title=
"Turn off captions"
role=
"button"
aria-disabled=
"false"
>
Captions
</a>
</div>
</div>
</section>
...
...
common/lib/xmodule/xmodule/js/fixtures/video_yt_multiple.html
View file @
9d418755
...
...
@@ -26,26 +26,26 @@
<div
class=
"slider"
></div>
<div>
<ul
class=
"vcr"
>
<li><a
class=
"video_control"
href=
"#"
title=
"Play"
></a></li>
<li><a
class=
"video_control"
href=
"#"
title=
"Play"
role=
"button"
aria-disabled=
"false"
></a></li>
<li><div
class=
"vidtime"
>
0:00 / 0:00
</div></li>
</ul>
<div
class=
"secondary-controls"
>
<div
class=
"speeds"
>
<a
href=
"#"
>
<a
href=
"#"
title=
"Speeds"
role=
"button"
aria-disabled=
"false"
>
<h3>
Speed
</h3>
<p
class=
"active"
></p>
</a>
<ol
class=
"video_speeds"
></ol>
</div>
<div
class=
"volume"
>
<a
href=
"#"
></a>
<a
href=
"#"
title=
"Volume"
role=
"button"
aria-disabled=
"false"
></a>
<div
class=
"volume-slider-container"
>
<div
class=
"volume-slider"
></div>
</div>
</div>
<a
href=
"#"
class=
"add-fullscreen"
title=
"Fill browser"
>
Fill Browser
</a>
<a
href=
"#"
class=
"quality_control"
title=
"HD"
>
HD
</a>
<a
href=
"#"
class=
"hide-subtitles"
title=
"Turn off captions"
>
Captions
</a>
<a
href=
"#"
class=
"add-fullscreen"
title=
"Fill browser"
role=
"button"
aria-disabled=
"false"
>
Fill Browser
</a>
<a
href=
"#"
class=
"quality_control"
title=
"HD"
role=
"button"
aria-disabled=
"false"
>
HD
</a>
<a
href=
"#"
class=
"hide-subtitles"
title=
"Turn off captions"
role=
"button"
aria-disabled=
"false"
>
Captions
</a>
</div>
</div>
</section>
...
...
common/lib/xmodule/xmodule/js/src/video/06_video_progress_slider.js
View file @
9d418755
...
...
@@ -138,35 +138,29 @@ function () {
hrStr
+=
(
hours
<
2
?
' hour '
:
' hours '
);
if
(
minutes
)
{
minStr
+=
(
minutes
<
2
?
' minute '
:
' minutes '
);
}
else
{
}
else
{
minStr
+=
' 0 minutes '
;
}
if
(
seconds
)
{
secStr
+=
(
seconds
<
2
?
' second '
:
' seconds '
);
}
else
{
}
else
{
secStr
+=
' 0 seconds '
;
}
return
hrStr
+
minStr
+
secStr
;
}
else
if
(
minutes
)
{
}
else
if
(
minutes
)
{
minStr
+=
(
minutes
<
2
?
' minute '
:
' minutes '
);
if
(
seconds
)
{
secStr
+=
(
seconds
<
2
?
' second '
:
' seconds '
);
}
else
{
}
else
{
secStr
+=
' 0 seconds '
;
}
return
minStr
+
secStr
;
}
else
if
(
seconds
)
{
}
else
if
(
seconds
)
{
secStr
+=
(
seconds
<
2
?
' second '
:
' seconds '
);
return
secStr
;
}
else
{
return
'0 seconds'
;
}
return
'0 seconds'
;
}
});
...
...
common/lib/xmodule/xmodule/js/src/video/07_video_volume_control.js
View file @
9d418755
...
...
@@ -216,25 +216,19 @@ function () {
function
getVolumeDescription
(
vol
)
{
if
(
vol
===
0
)
{
return
'muted'
;
}
else
if
(
vol
<=
20
)
{
}
else
if
(
vol
<=
20
)
{
return
'very low'
;
}
else
if
(
vol
<=
40
)
{
}
else
if
(
vol
<=
40
)
{
return
'low'
;
}
else
if
(
vol
<=
60
)
{
}
else
if
(
vol
<=
60
)
{
return
'average'
;
}
else
if
(
vol
<=
80
)
{
}
else
if
(
vol
<=
80
)
{
return
'loud'
;
}
else
if
(
vol
<=
99
)
{
}
else
if
(
vol
<=
99
)
{
return
'very loud'
;
}
else
{
return
'maximum'
;
}
return
'maximum'
;
}
});
...
...
lms/templates/video.html
View file @
9d418755
...
...
@@ -51,14 +51,14 @@
</ul>
<div
class=
"secondary-controls"
>
<div
class=
"speeds"
>
<a
href=
"#"
title=
"
Speeds
"
role=
"button"
aria-disabled=
"false"
>
<a
href=
"#"
title=
"
${_('Speeds')}
"
role=
"button"
aria-disabled=
"false"
>
<h3>
${_('Speed')}
</h3>
<p
class=
"active"
></p>
</a>
<ol
class=
"video_speeds"
></ol>
</div>
<div
class=
"volume"
>
<a
href=
"#"
title=
"
Volume
"
role=
"button"
aria-disabled=
"false"
></a>
<a
href=
"#"
title=
"
${_('Volume')}
"
role=
"button"
aria-disabled=
"false"
></a>
<div
class=
"volume-slider-container"
>
<div
class=
"volume-slider"
></div>
</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