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;
-ms-user-select: none;
user-select: none;
cursor: default;
}
.select{

File diff suppressed because one or more lines are too long

View File

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

View File

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

View File

@@ -5,7 +5,7 @@
<a href="#" class="brand-logo noselect">
<img id="zicon" src="/assets/images/z.svg" alt="zoff" title="Zoff" />
</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>-->
<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>

View File

@@ -199,7 +199,7 @@
<a href="http://kasperrt.no">KasperRT</a>,
<br>
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>
</footer>