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
f081b51b
Commit
f081b51b
authored
Feb 22, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Plain Diff
Merged captions branch
parents
bd4190f5
6b289871
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
298 additions
and
186 deletions
+298
-186
courseware.html
+0
-2
marketing.html
+13
-0
sass/courseware/_video.scss
+190
-148
sass/index/_footer.scss
+34
-0
video.html
+61
-36
No files found.
courseware.html
View file @
f081b51b
<
%
inherit
file=
"main.html"
/>
<
%
block
name=
"js_extra"
>
<!-- TODO: http://docs.jquery.com/Plugins/Validation -->
<script
type=
"text/javascript"
>
$
(
function
()
{
$
{
init
}
});
</script>
</
%
block>
<
%
include
file=
"navigation.html"
args=
"active_page='courseware'"
/>
...
...
marketing.html
View file @
f081b51b
...
...
@@ -98,7 +98,20 @@ function postJSON(url, data, callback) {
<li><a
href=
"/t/honor.html"
>
Honor Code
</a></li>
<li><a
href=
"/t/mitx_help.html"
>
Help
</a></li>
</ul>
<ul
class=
"social"
>
<li
class=
"linkedin"
>
<a
href=
"http://www.linkedin.com/groups/Friends-Alumni-MITx-4316538"
>
Linked In
</a>
</li>
<li
class=
"twitter"
>
<a
href=
"https://twitter.com/#!/MyMITx"
>
Twitter
</a>
</li>
<li
class=
"facebook"
>
<a
href=
"http://www.facebook.com/pages/MITx/378592442151504"
>
Facebook
</a>
</li>
</ul>
</div>
</footer>
% if settings.COURSEWARE_ENABLED:
...
...
sass/courseware/_video.scss
View file @
f081b51b
section
.course-content
{
div
.video-subtitles
{
position
:
relative
;
div
.video-wrapper
{
float
:
left
;
width
:
flex-grid
(
6
,
9
);
margin-right
:
flex-gutter
(
9
);
div
.video-player
{
position
:
relative
;
padding-bottom
:
56
.25%
;
padding-top
:
30px
;
height
:
0
;
overflow
:
hidden
;
object
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
}
div
.video-wrapper
{
float
:
left
;
width
:
flex-grid
(
6
,
9
);
margin-right
:
flex-gutter
(
9
);
div
.video-player
{
position
:
relative
;
padding-bottom
:
56
.25%
;
padding-top
:
30px
;
height
:
0
;
overflow
:
hidden
;
object
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
}
iframe
#html5_player
{
border
:
none
;
display
:
none
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
iframe
#html5_player
{
border
:
none
;
display
:
none
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
}
}
}
// ul {
// float: left;
// li {
// margin-top: 5px;
// display: inline-block;
// cursor: pointer;
// border: 0;
// padding: 0;
// div {
// &:empty {
// display: none;
// }
// }
// }
// }
section
.video-controls
{
@extend
.clearfix
;
background
:
#333
;
border
:
1px
solid
#000
;
color
:
#ccc
;
div
#slider
{
// ul {
// float: left;
// li {
// margin-top: 5px;
// display: inline-block;
// cursor: pointer;
// border: 0;
// padding: 0;
// div {
// &:empty {
// display: none;
// }
// }
// }
// }
section
.video-controls
{
@extend
.clearfix
;
@include
border-radius
(
0
);
@include
box-shadow
(
inset
0
1px
0
#eee
,
0
1px
0
#555
);
background
:
#c2c2c2
;
border
:
none
;
border-bottom
:
1px
solid
#000
;
height
:
14px
;
a
.ui-slider-handle
{
@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
;
margin-left
:
-10px
;
top
:
-4px
;
width
:
20px
;
&
:focus
{
outline
:
none
;
background
:
#333
;
border
:
1px
solid
#000
;
color
:
#ccc
;
div
#slider
{
@extend
.clearfix
;
@include
border-radius
(
0
);
@include
box-shadow
(
inset
0
1px
0
#eee
,
0
1px
0
#555
);
background
:
#c2c2c2
;
border
:
none
;
border-bottom
:
1px
solid
#000
;
height
:
14px
;
a
.ui-slider-handle
{
@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
;
margin-left
:
-10px
;
top
:
-4px
;
width
:
20px
;
&
:focus
{
outline
:
none
;
}
}
}
}
ul
.vcr
{
float
:
left
;
margin-right
:
lh
();
li
{
ul
.vcr
{
float
:
left
;
margin-bottom
:
0
;
a
{
@include
box-shadow
(
1px
0
0
#555
);
border-right
:
1px
solid
#000
;
display
:
block
;
cursor
:
pointer
;
height
:
14px
;
padding
:
lh
(
.75
)
lh
();
text-indent
:
-9999px
;
width
:
14px
;
margin-right
:
lh
();
&
.play
{
background
:
url('/static/images/play-icon.png')
center
center
no-repeat
;
li
{
float
:
left
;
margin-bottom
:
0
;
&
:hover
{
background-color
:
#444
;
a
{
@include
box-shadow
(
1px
0
0
#555
);
border-right
:
1px
solid
#000
;
display
:
block
;
cursor
:
pointer
;
height
:
14px
;
padding
:
lh
(
.75
)
lh
();
text-indent
:
-9999px
;
width
:
14px
;
&
.play
{
background
:
url('/static/images/play-icon.png')
center
center
no-repeat
;
&
:hover
{
background-color
:
#444
;
}
}
}
&
.pause
{
background
:
url('/static/images/pause-icon.png')
center
center
no-repeat
;
&
.pause
{
background
:
url('/static/images/pause-icon.png')
center
center
no-repeat
;
&
:hover
{
background-color
:
#444
;
&
:hover
{
background-color
:
#444
;
}
}
}
div
#vidtime
{
padding-left
:
lh
();
font-weight
:
bold
;
line-height
:
46px
;
//height of play pause buttons
-webkit-font-smoothing
:
antialiased
;
}
}
}
}
div
#vidtime
{
float
:
left
;
font-weight
:
bold
;
line-height
:
46px
;
//height of play pause buttons
-webkit-font-smoothing
:
antialiased
;
}
div
.speeds
{
float
:
right
;
line-height
:
46px
;
//height of play pause buttons
margin-right
:
lh
();
-webkit-font-smoothing
:
antialiased
;
div
#video_speeds
{
@include
inline-block
();
font-weight
:
bold
;
div
.secondary-controls
{
float
:
right
;
div
.speeds
{
float
:
left
;
line-height
:
46px
;
//height of play pause buttons
padding-right
:
lh
();
margin-right
:
0
;
-webkit-font-smoothing
:
antialiased
;
@include
box-shadow
(
1px
0
0
#555
);
border-right
:
1px
solid
#000
;
div
#video_speeds
{
@include
inline-block
();
font-weight
:
bold
;
span
{
@include
inline-block
();
cursor
:
pointer
;
margin-bottom
:
0
;
&
:hover
{
color
:
$mit-red
;
}
}
}
}
span
{
@include
inline-block
();
cursor
:
pointer
;
margin-bottom
:
0
;
a
.hide-subtitles
{
float
:
left
;
display
:
block
;
padding-right
:
lh
(
.5
);
margin-left
:
0
;
color
:
#797979
;
padding-left
:
50px
;
line-height
:
46px
;
//height of play pause buttons
font-weight
:
800
;
background
:
url('/static/images/cc.png')
16px
center
no-repeat
;
-webkit-font-smoothing
:
antialiased
;
&
:hover
{
color
:
$mit-red
;
color
:
#fff
;
text-decoration
:
none
;
background-color
:
#444
;
}
}
}
}
}
}
ol
.subtitles
{
float
:
left
;
width
:
flex-grid
(
3
,
9
);
height
:
530px
;
overflow
:
hidden
;
li
{
margin-bottom
:
0px
;
cursor
:
pointer
;
border
:
0
;
padding
:
0
;
color
:
#666
;
&
.current
{
background-color
:
#f3f3f3
;
color
:
#333
;
}
ol
.subtitles
{
float
:
left
;
width
:
flex-grid
(
3
,
9
);
height
:
530px
;
overflow
:
hidden
;
&
:hover
{
color
:
$mit-red
;
li
{
margin-bottom
:
0px
;
cursor
:
pointer
;
border
:
0
;
padding
:
0
;
color
:
#666
;
&
.current
{
background-color
:
#f3f3f3
;
color
:
#333
;
}
&
:hover
{
color
:
$mit-red
;
}
div
{
margin-bottom
:
8px
;
}
div
:empty
{
margin-bottom
:
0px
;
}
}
}
&
.closed
{
@extend
.trans
;
div
{
margin-bottom
:
8px
;
div
.video-wrapper
{
width
:
flex-grid
(
9
,
9
)
;
}
div
:empty
{
margin-bottom
:
0px
;
ol
.subtitles
{
width
:
0px
;
height
:
0
;
}
}
}
}
sass/index/_footer.scss
View file @
f081b51b
...
...
@@ -52,6 +52,40 @@ footer {
}
}
&
.social
{
float
:
right
;
margin-right
:
60px
;
position
:
relative
;
top
:
-5px
;
li
{
float
:
left
;
margin-right
:
lh
(
.5
);
a
{
display
:
block
;
height
:
29px
;
width
:
28px
;
text-indent
:
-9999px
;
}
&
:after
{
content
:
none
;
display
:
none
;
}
&
.twitter
a
{
background
:
url('/static/images/marketing/twitter.png')
0
0
no-repeat
;
}
&
.facebook
a
{
background
:
url('/static/images/marketing/facebook.png')
0
0
no-repeat
;
}
&
.linkedin
{
background
:
url('/static/images/marketing/linkedin.png')
0
0
no-repeat
;
}
}
}
}
}
}
video.html
View file @
f081b51b
% if name is not UNDEFINED and name != None:
<h1>
${name}
</h1>
<h1>
${name}
</h1>
% endif
<div
class=
"video-wrapper"
>
<div
class=
"video-player"
>
<div
id=
"ytapiplayer"
>
<div
class=
"video-subtitles"
>
<div
class=
"video-wrapper"
>
<div
class=
"video-player"
>
<div
id=
"ytapiplayer"
>
</div>
<iframe
id=
"html5_player"
type=
"text/html"
frameborder=
"0"
>
</iframe>
</div>
<iframe
id=
"html5_player"
type=
"text/html"
frameborder=
"0"
>
</iframe>
</div>
<section
class=
"video-controls"
>
<div
id=
"slider"
></div>
<section
class=
"video-controls"
>
<div
id=
"slider"
></div>
<section>
<ul
class=
"vcr"
>
<li><a
id=
"video_control"
class=
"pause"
>
Pause
</a></li>
<section
>
<ul
class=
"vcr"
>
<li><a
id=
"video_control"
class=
"pause"
>
Pause
</a>
</li>
</ul>
<li
>
<div
id=
"vidtime"
>
0:00/0:00
</div
>
</li>
</ul>
<div
id=
"vidtime"
>
0:00/0:00
</div>
<div
class=
"speeds"
>
Speed:
<div
id=
"video_speeds"
></div>
</div>
<div
class=
"secondary-controls"
>
<div
class=
"speeds"
>
Speed:
<div
id=
"video_speeds"
></div>
</div>
<a
href=
"#"
class=
"hide-subtitles"
>
on
</a>
</div>
</section>
</section>
</section>
</div>
<ol
class=
"subtitles"
>
<!-- <li id="stt_n5"><div id="std_n7" onclick="title_seek(-7);"></div></li> -->
<li
id=
"stt_n4"
><div
id=
"std_n6"
onclick=
"title_seek(-6);"
></div></li>
<li
id=
"stt_n4"
><div
id=
"std_n5"
onclick=
"title_seek(-5);"
></div></li>
<li
id=
"stt_n4"
><div
id=
"std_n4"
onclick=
"title_seek(-4);"
></div></li>
<li
id=
"stt_n3"
><div
id=
"std_n3"
onclick=
"title_seek(-3);"
></div></li>
<li
id=
"stt_n2"
><div
id=
"std_n2"
onclick=
"title_seek(-2);"
></div></li>
<li
id=
"stt_n1"
><div
id=
"std_n1"
onclick=
"title_seek(-1);"
></div></li>
<li
id=
"stt_0 "
class=
"current"
><div
id=
"std_0"
onclick=
"title_seek(0);"
></div></li>
<li
id=
"stt_p1"
><div
id=
"std_p1"
onclick=
"title_seek( 1);"
></div></li>
<li
id=
"stt_p2"
><div
id=
"std_p2"
onclick=
"title_seek( 2);"
></div></li>
<li
id=
"stt_p3"
><div
id=
"std_p3"
onclick=
"title_seek( 3);"
></div></li>
<li
id=
"stt_p4"
><div
id=
"std_p4"
onclick=
"title_seek( 4);"
></div></li>
<li
id=
"stt_p5"
><div
id=
"std_p5"
onclick=
"title_seek( 5);"
></div></li>
<li
id=
"stt_p6"
><div
id=
"std_p7"
onclick=
"title_seek( 6);"
></div></li>
<li
id=
"stt_p6"
><div
id=
"std_p7"
onclick=
"title_seek( 7);"
></div></li>
<!-- <li id="stt_p6"><div id="std_p7" onclick="title_seek( 8);"></div></li> -->
</ol>
</div>
<ol
class=
"subtitles"
>
<!-- <li id="stt_n5"><div id="std_n7" onclick="title_seek(-7);"></div></li> -->
<li
id=
"stt_n4"
><div
id=
"std_n6"
onclick=
"title_seek(-6);"
></div></li>
<li
id=
"stt_n4"
><div
id=
"std_n5"
onclick=
"title_seek(-5);"
></div></li>
<li
id=
"stt_n4"
><div
id=
"std_n4"
onclick=
"title_seek(-4);"
></div></li>
<li
id=
"stt_n3"
><div
id=
"std_n3"
onclick=
"title_seek(-3);"
></div></li>
<li
id=
"stt_n2"
><div
id=
"std_n2"
onclick=
"title_seek(-2);"
></div></li>
<li
id=
"stt_n1"
><div
id=
"std_n1"
onclick=
"title_seek(-1);"
></div></li>
<li
id=
"stt_0 "
class=
"current"
><div
id=
"std_0"
onclick=
"title_seek(0);"
></div></li>
<li
id=
"stt_p1"
><div
id=
"std_p1"
onclick=
"title_seek( 1);"
></div></li>
<li
id=
"stt_p2"
><div
id=
"std_p2"
onclick=
"title_seek( 2);"
></div></li>
<li
id=
"stt_p3"
><div
id=
"std_p3"
onclick=
"title_seek( 3);"
></div></li>
<li
id=
"stt_p4"
><div
id=
"std_p4"
onclick=
"title_seek( 4);"
></div></li>
<li
id=
"stt_p5"
><div
id=
"std_p5"
onclick=
"title_seek( 5);"
></div></li>
<li
id=
"stt_p6"
><div
id=
"std_p7"
onclick=
"title_seek( 6);"
></div></li>
<li
id=
"stt_p6"
><div
id=
"std_p7"
onclick=
"title_seek( 7);"
></div></li>
<!-- <li id="stt_p6"><div id="std_p7" onclick="title_seek( 8);"></div></li> -->
</ol>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
$
(
function
()
{
$
(
'.hide-subtitles'
).
click
(
function
()
{
$
(
'div.video-subtitles'
).
toggleClass
(
'closed'
);
var
link_text
=
$
(
'.hide-subtitles'
).
text
();
$
(
this
).
text
((
link_text
==
'on'
)
?
'off'
:
'on'
);
return
false
;
});
});
</script>
</
%
block>
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