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
186fee6b
Commit
186fee6b
authored
Mar 06, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Plain Diff
merged in kf-highlight-speed
parents
129b42a0
e0ad7491
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
7 deletions
+25
-7
sass/_textbook.scss
+1
-0
sass/courseware/_courseware.scss
+7
-0
sass/courseware/_video.scss
+4
-0
video.html
+1
-1
video_init.js
+12
-6
No files found.
sass/_textbook.scss
View file @
186fee6b
...
...
@@ -7,6 +7,7 @@ div.book-wrapper {
@extend
.tran
;
ul
#booknav
{
font-size
:
12px
;
a
{
color
:
#000
;
...
...
sass/courseware/_courseware.scss
View file @
186fee6b
...
...
@@ -166,6 +166,13 @@ div.course-wrapper {
}
}
}
section
.tutorials
{
ul
{
list-style
:
disc
outside
none
;
margin-left
:
lh
();
}
}
}
&
.closed
{
...
...
sass/courseware/_video.scss
View file @
186fee6b
...
...
@@ -165,6 +165,10 @@ section.course-content {
li
{
cursor
:
pointer
;
@include
inline-block
();
&
.active
{
font-weight
:
bold
;
}
}
}
}
...
...
video.html
View file @
186fee6b
...
...
@@ -21,7 +21,7 @@
<li><a
id=
"video_control"
class=
"pause"
>
Pause
</a></li>
<li>
<div
id=
"vidtime"
>
0:00
/
0:00
</div>
<div
id=
"vidtime"
>
0:00
/
0:00
</div>
</li>
</ul>
...
...
video_init.js
View file @
186fee6b
...
...
@@ -33,15 +33,21 @@ ajax_video=good;
loadNewVideo
(
streams
[
"1.0"
],
$
{
position
});
function
add_speed
(
key
,
stream
)
{
var
id
=
'speed_'
+
stream
;
var
id
=
'speed_'
+
stream
;
//TODO: this should be smarter and know which video is first selected when we have
// video speed as an option/parameter per user that is saved
if
(
key
==
1.0
)
{
$
(
"#video_speeds"
).
append
(
' <li class=active id="'
+
id
+
'">'
+
key
+
'x</li>'
);
}
else
{
$
(
"#video_speeds"
).
append
(
' <li id="'
+
id
+
'">'
+
key
+
'x</li>'
);
}
$
(
"#"
+
id
).
click
(
function
(){
change_video_speed
(
key
,
stream
);
$
(
this
).
siblings
().
removeClass
(
"active"
);
$
(
this
).
addClass
(
"active"
);
});
$
(
"#"
+
id
).
click
(
function
(){
change_video_speed
(
key
,
stream
);
$
(
this
).
siblings
().
removeClass
(
"active"
);
$
(
this
).
addClass
(
"active"
);
});
}
var
l
=
[]
...
...
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