Commit 1f6209da by Kyle Fiedler

Added styles and tooltips for full screen and captions

parent c4b5b6b3
......@@ -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; }
......
......@@ -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;
......
......@@ -35,7 +35,7 @@
<ol id="video_speeds"></ol>
</div>
<a href="#" class="add-fullscreen" title="Full screen">Full screen</a>
<a href="#" class="add-fullscreen" title="Fill 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;
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment