Added some tooltips and made noselect even more noselect

This commit is contained in:
Kasper Rynning-Tønnesen
2017-06-16 16:20:22 +02:00
parent 2f60f92dbd
commit 6ac548ee37
6 changed files with 17 additions and 3 deletions

View File

@@ -296,6 +296,7 @@ li.disabled span {
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
cursor: default;
} }
.select{ .select{

File diff suppressed because one or more lines are too long

View File

@@ -306,6 +306,7 @@ var Frontpage = {
socket.removeAllListeners(); socket.removeAllListeners();
} }
$("#main-container").css("background-color", "#2d2d2d"); $("#main-container").css("background-color", "#2d2d2d");
$("#frontpage-viewer-counter").tooltip("remove");
$("#offline-mode").tooltip("remove"); $("#offline-mode").tooltip("remove");
currently_showing_channels = 1; currently_showing_channels = 1;
$.ajax({ $.ajax({
@@ -436,6 +437,11 @@ function initfp(){
tooltip: "Enable local mode" tooltip: "Enable local mode"
}); });
} }
$("#frontpage-viewer-counter").tooltip({
delay: 5,
position: "bottom",
tooltip: "Total Viewers"
});
socket.emit('frontpage_lists'); socket.emit('frontpage_lists');
socket.emit('get_userlists', Crypt.getCookie('_uI')); socket.emit('get_userlists', Crypt.getCookie('_uI'));

View File

@@ -285,6 +285,12 @@ function init(){
tooltip: "Viewers" tooltip: "Viewers"
}); });
$("#fullscreen").tooltip({
delay: 5,
position: "top",
tooltip: "Fullscreen"
});
window.onYouTubeIframeAPIReady = Player.onYouTubeIframeAPIReady; window.onYouTubeIframeAPIReady = Player.onYouTubeIframeAPIReady;
if(Player.player === "" || Player.player === undefined || Helper.mobilecheck()) Player.loadPlayer(); if(Player.player === "" || Player.player === undefined || Helper.mobilecheck()) Player.loadPlayer();
@@ -1776,6 +1782,7 @@ function onepage_load(){
//$('.castButton-unactive').tooltip("remove"); //$('.castButton-unactive').tooltip("remove");
$("#offline-mode").tooltip("remove"); $("#offline-mode").tooltip("remove");
$('#chan_thumbnail').tooltip("remove"); $('#chan_thumbnail').tooltip("remove");
$('#fullscreen').tooltip("remove");
$('#admin-lock').tooltip("remove"); $('#admin-lock').tooltip("remove");
$("#seekToDuration").remove(); $("#seekToDuration").remove();
$('.tap-target').tapTarget('close'); $('.tap-target').tapTarget('close');

View File

@@ -5,7 +5,7 @@
<a href="#" class="brand-logo noselect"> <a href="#" class="brand-logo noselect">
<img id="zicon" src="/assets/images/z.svg" alt="zoff" title="Zoff" /> <img id="zicon" src="/assets/images/z.svg" alt="zoff" title="Zoff" />
</a> </a>
<div id="frontpage-viewer-counter" data-position="bottom" data-delay="5" data-tooltip="Total viewers" class="noselect tooltipped" title="Divided among all channels. Hidden or not"></div> <div id="frontpage-viewer-counter" class="noselect tooltipped" title="Divided among all channels. Hidden or not"></div>
<!--<a href="//zoff.me" class="brand-logo brand-mobile hide-on-med-and-up">Zoff</a>--> <!--<a href="//zoff.me" class="brand-logo brand-mobile hide-on-med-and-up">Zoff</a>-->
<ul class="right hide-on-med-and-down"> <ul class="right hide-on-med-and-down">
<li><a class="header-buttons waves-effect waves-cyan" id="offline-mode" title="Local mode" href="#">Local</a></li> <li><a class="header-buttons waves-effect waves-cyan" id="offline-mode" title="Local mode" href="#">Local</a></li>

View File

@@ -199,7 +199,7 @@
<a href="http://kasperrt.no">KasperRT</a>, <a href="http://kasperrt.no">KasperRT</a>,
<br> <br>
All rights reserved All rights reserved
<a class="grey-text text-lighten-4 right" href="https://github.com/zoff-music/">Contribute on GitHub</a> <a class="right" href="https://github.com/zoff-music/">Contribute on GitHub</a>
</div> </div>
</div> </div>
</footer> </footer>