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
1f6209da
Commit
1f6209da
authored
Apr 05, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added styles and tooltips for full screen and captions
parent
c4b5b6b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
5 deletions
+28
-5
static/css/application.css
+6
-0
templates/sass/layout/_layout.scss
+10
-0
templates/video.html
+12
-5
No files found.
static/css/application.css
View file @
1f6209da
...
...
@@ -506,6 +506,12 @@ html body section.main-content, html body section.outside-app {
-o-border-radius
:
4px
;
border-radius
:
4px
;
margin-top
:
11.326px
;
}
}
html
body
div
.qtip
div
.ui-tooltip-content
{
border
:
none
;
background
:
rgba
(
0
,
0
,
0
,
0.8
);
color
:
#fff
;
font
:
12px
14px
;
margin-top
:
5px
;
}
html
body
section
.outside-app
{
max-width
:
600px
;
padding
:
22.652px
;
}
...
...
templates/sass/layout/_layout.scss
View file @
1f6209da
...
...
@@ -30,6 +30,16 @@ html {
}
}
div
.qtip
{
div
.ui-tooltip-content
{
border
:
none
;
background
:
rgba
(
#000
,
.8
);
color
:
#fff
;
font
:
12px
$body-font-size
;
margin-top
:
5px
;
}
}
section
.outside-app
{
@extend
.main-content
;
max-width
:
600px
;
...
...
templates/video.html
View file @
1f6209da
...
...
@@ -35,7 +35,7 @@
<ol
id=
"video_speeds"
></ol>
</div>
<a
href=
"#"
class=
"add-fullscreen"
title=
"F
ull screen"
>
Full screen
</a>
<a
href=
"#"
class=
"add-fullscreen"
title=
"F
ill browser"
>
Fill Browser
</a>
<a
href=
"#"
class=
"hide-subtitles"
title=
"Turn off captions"
>
Captions
</a>
</div>
...
...
@@ -69,7 +69,12 @@
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
charset=
"utf-8"
>
$
(
function
()
{
$
(
'.add-fullscreen, .hide-subtitles'
).
qtip
();
$
(
'.add-fullscreen, .hide-subtitles'
).
qtip
({
position
:
{
my
:
'top center'
,
// Position my top left...
at
:
'bottom center'
,
// at the bottom right
}
});
$
(
'.add-fullscreen'
).
click
(
function
()
{
//var window_height = $(window).height();
...
...
@@ -90,6 +95,10 @@
$
(
this
).
remove
();
return
false
;
});
var
link_title
=
$
(
this
).
attr
(
'title'
);
$
(
this
).
attr
(
'title'
,
(
link_title
==
'Exit fill browser'
)
?
'Fill browser'
:
'Exit fill browser'
);
return
false
;
});
...
...
@@ -98,9 +107,7 @@
$
(
'div.video-subtitles'
).
toggleClass
(
'closed'
);
var
link_title
=
$
(
this
).
attr
(
'title'
);
console
.
log
(
link_title
);
///$(this).attr('title', 'Turn on captions' ? 'Turn off captions' : 'Turn on captions');
$
(
this
).
attr
(
'title'
,
(
link_title
==
'Turn on captions'
)
?
'Turn off captions'
:
'Turn on captions'
);
return
false
;
});
...
...
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