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
0bbd840b
Commit
0bbd840b
authored
Mar 08, 2012
by
Reda Lemeden
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
c2ae8c41
7bde9158
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
12 deletions
+40
-12
sass/courseware/_amplifier.scss
+4
-4
sass/courseware/_courseware.scss
+19
-0
sass/courseware/_video.scss
+2
-2
video_init.js
+15
-6
No files found.
sass/courseware/_amplifier.scss
View file @
0bbd840b
...
...
@@ -16,21 +16,21 @@ div#graph-container {
select
#musicTypeSelect
{
display
:
block
;
margin-bottom
:
lh
(
2
);
margin-bottom
:
lh
();
}
div
#graph-output
{
display
:
block
;
margin-bottom
:
lh
(
2
);
margin-bottom
:
lh
();
}
div
#graph-listen
{
display
:
block
;
margin-bottom
:
lh
(
2
);
margin-bottom
:
lh
();
}
p
{
margin-bottom
:
lh
(
1
);
margin-bottom
:
lh
(
.5
);
}
div
#label
{
...
...
sass/courseware/_courseware.scss
View file @
0bbd840b
...
...
@@ -182,6 +182,25 @@ div.course-wrapper {
line-height
:
lh
();
font-family
:
Consolas
,
"Lucida Console"
,
Monaco
,
"Courier New"
,
Courier
,
monospace
;
}
div
.ui-slider
{
border
:
1px
solid
#aaa
;
background
:
#ddd
;
@include
box-shadow
(
inset
0
1px
0
#eee
);
@include
border-radius
(
0
);
a
.ui-slider-handle
{
@include
box-shadow
(
inset
0
1px
0
lighten
(
$mit-red
,
10%
));
background
:
$mit-red
url(/static/images/slider-bars.png)
center
center
no-repeat
;
border
:
1px
solid
darken
(
$mit-red
,
20%
);
cursor
:
pointer
;
&
:hover
,
&
:focus
{
background-color
:
lighten
(
$mit-red
,
10%
);
outline
:
none
;
}
}
}
}
&
.closed
{
...
...
sass/courseware/_video.scss
View file @
0bbd840b
...
...
@@ -71,7 +71,6 @@ section.course-content {
@include
border-radius
(
20px
);
@include
box-shadow
(
inset
0
1px
0
lighten
(
$mit-red
,
10%
));
background
:
$mit-red
url(/static/images/slider-handle.png)
center
center
no-repeat
;
border
:
0
;
border
:
1px
solid
darken
(
$mit-red
,
20%
);
cursor
:
pointer
;
height
:
20px
;
...
...
@@ -79,7 +78,8 @@ section.course-content {
top
:
-4px
;
width
:
20px
;
&
:focus
{
&
:focus
,
&
:hover
{
background-color
:
lighten
(
$mit-red
,
10%
);
outline
:
none
;
}
}
...
...
video_init.js
View file @
0bbd840b
...
...
@@ -65,17 +65,26 @@ l.sort(sort_by_value);
$
(
document
).
ready
(
function
()
{
video_speed
=
$
.
cookie
(
"video_speed"
);
console
.
log
(
"ready"
);
console
.
log
(
video_speed
);
if
((
!
video_speed
)
||
(
!
streams
[
video_speed
]
))
{
video_speed
=
"1.0"
;
//ugly hack to account for different formats in vid speed in the XML (.75 vs 0.75, 1.5 vs 1.50);
if
((
!
video_speed
)
||
(
!
streams
[
video_speed
]
&&
!
streams
[
video_speed
+
"0"
])
&&
!
streams
[
video_speed
.
slice
(
0
,
-
1
)]
&&
!
streams
[
video_speed
.
slice
(
1
)]
&&
!
streams
[
"0"
+
video_speed
])
{
video_speed
=
"1.0"
;
}
console
.
log
(
video_speed
);
if
(
streams
[
video_speed
+
"0"
]){
video_speed
=
video_speed
+
"0"
;
}
else
if
(
streams
[
video_speed
.
slice
(
0
,
-
1
)]){
video_speed
=
video_speed
.
slice
(
0
,
-
1
);
}
else
if
(
streams
[
video_speed
.
slice
(
1
)])
{
video_speed
=
video_speed
.
slice
(
1
);
}
else
if
(
streams
[
"0"
+
video_speed
])
{
video_speed
=
"0"
+
video_speed
;
}
loadNewVideo
(
streams
[
"1.0"
],
streams
[
video_speed
],
$
{
position
});
for
(
var
i
=
0
;
i
<
l
.
length
;
i
++
)
{
add_speed
(
l
[
i
],
streams
[
l
[
i
]])
add_speed
(
l
[
i
],
streams
[
l
[
i
]])
}
});
...
...
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