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
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
126 additions
and
14 deletions
+126
-14
courseware.html
+0
-2
marketing.html
+13
-0
sass/courseware/_video.scss
+47
-5
sass/index/_footer.scss
+34
-0
video.html
+32
-7
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
;
...
...
@@ -115,22 +117,29 @@ section.course-content {
background-color
:
#444
;
}
}
}
}
}
div
#vidtime
{
float
:
left
;
padding-left
:
lh
()
;
font-weight
:
bold
;
line-height
:
46px
;
//height of play pause buttons
-webkit-font-smoothing
:
antialiased
;
}
}
}
div
.speed
s
{
div
.secondary-control
s
{
float
:
right
;
div
.speeds
{
float
:
left
;
line-height
:
46px
;
//height of play pause buttons
margin-right
:
lh
();
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
();
...
...
@@ -147,6 +156,26 @@ section.course-content {
}
}
}
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
:
#fff
;
text-decoration
:
none
;
background-color
:
#444
;
}
}
}
}
}
...
...
@@ -182,4 +211,17 @@ section.course-content {
}
}
&
.closed
{
@extend
.trans
;
div
.video-wrapper
{
width
:
flex-grid
(
9
,
9
);
}
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-subtitles"
>
<div
class=
"video-wrapper"
>
<div
class=
"video-player"
>
<div
id=
"ytapiplayer"
>
</div>
...
...
@@ -16,19 +19,25 @@
<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
class=
"secondary-controls"
>
<div
class=
"speeds"
>
Speed:
<div
id=
"video_speeds"
></div>
</div>
<a
href=
"#"
class=
"hide-subtitles"
>
on
</a>
</div>
</section>
</section>
</div>
</div>
<ol
class=
"subtitles"
>
<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>
...
...
@@ -45,4 +54,20 @@
<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>
</ol>
</div>
<
%
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