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 { ...@@ -506,6 +506,12 @@ html body section.main-content, html body section.outside-app {
-o-border-radius: 4px; -o-border-radius: 4px;
border-radius: 4px; border-radius: 4px;
margin-top: 11.326px; } } 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 { html body section.outside-app {
max-width: 600px; max-width: 600px;
padding: 22.652px; } padding: 22.652px; }
......
...@@ -30,6 +30,16 @@ html { ...@@ -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 { section.outside-app {
@extend .main-content; @extend .main-content;
max-width: 600px; max-width: 600px;
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<ol id="video_speeds"></ol> <ol id="video_speeds"></ol>
</div> </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> <a href="#" class="hide-subtitles" title="Turn off captions">Captions</a>
</div> </div>
...@@ -69,7 +69,12 @@ ...@@ -69,7 +69,12 @@
<%block name="js_extra"> <%block name="js_extra">
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
$(function() { $(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() { $('.add-fullscreen').click(function() {
//var window_height = $(window).height(); //var window_height = $(window).height();
...@@ -90,6 +95,10 @@ ...@@ -90,6 +95,10 @@
$(this).remove(); $(this).remove();
return false; return false;
}); });
var link_title = $(this).attr('title');
$(this).attr('title', (link_title == 'Exit fill browser') ? 'Fill browser' : 'Exit fill browser');
return false; return false;
}); });
...@@ -98,9 +107,7 @@ ...@@ -98,9 +107,7 @@
$('div.video-subtitles').toggleClass('closed'); $('div.video-subtitles').toggleClass('closed');
var link_title = $(this).attr('title'); var link_title = $(this).attr('title');
console.log(link_title); $(this).attr('title', (link_title == 'Turn on captions') ? 'Turn off captions' : 'Turn on captions');
///$(this).attr('title', 'Turn on captions' ? 'Turn off captions' : 'Turn on captions');
return false; 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