mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Tooltips for private-mode
This commit is contained in:
4
public/dist/embed.min.js
vendored
4
public/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
8
public/dist/main.min.js
vendored
8
public/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -415,7 +415,6 @@ function initfp(){
|
||||
}
|
||||
//window.channel_list = channel_list;
|
||||
|
||||
|
||||
if(!localStorage.ok_cookie)
|
||||
Materialize.toast("We're using cookies to enhance your experience! <a class='waves-effect waves-light btn light-green' href='#' id='cookieok' style='cursor:pointer;pointer-events:all;'> ok</a>", 10000);
|
||||
|
||||
@@ -427,6 +426,12 @@ function initfp(){
|
||||
window.location.href = 'http://etys.no';
|
||||
});
|
||||
|
||||
$("#offline-mode").tooltip({
|
||||
delay: 5,
|
||||
position: "bottom",
|
||||
tooltip: "Enable private mode"
|
||||
});
|
||||
|
||||
if(!Helper.mobilecheck() && Frontpage.winter) {
|
||||
$(".mega").prepend('<div id="snow"></div>');
|
||||
//Frontpage.start_snowfall();
|
||||
|
||||
@@ -556,6 +556,7 @@ function change_offline(enabled, already_offline){
|
||||
Crypt.set_offline(enabled);
|
||||
offline = enabled;
|
||||
socket.emit("offline", enabled);
|
||||
$("#offline-mode").tooltip('remove');
|
||||
if(enabled){
|
||||
if(list_html){
|
||||
list_html = $("<div>" + list_html + "</div>");
|
||||
@@ -574,6 +575,11 @@ function change_offline(enabled, already_offline){
|
||||
$("#viewers").addClass("hide");
|
||||
$("#offline-mode").removeClass("waves-cyan");
|
||||
$("#offline-mode").addClass("cyan");
|
||||
$("#offline-mode").tooltip({
|
||||
delay: 5,
|
||||
position: "bottom",
|
||||
tooltip: "Disable private mode"
|
||||
});
|
||||
if(full_playlist != undefined && !already_offline){
|
||||
for(var x = 0; x < full_playlist.length; x++){
|
||||
full_playlist[x].votes = 0;
|
||||
@@ -603,6 +609,11 @@ function change_offline(enabled, already_offline){
|
||||
}
|
||||
$("#offline-mode").addClass("waves-cyan");
|
||||
$("#offline-mode").removeClass("cyan");
|
||||
$("#offline-mode").tooltip({
|
||||
delay: 5,
|
||||
position: "bottom",
|
||||
tooltip: "Enable private mode"
|
||||
});
|
||||
if(window.location.pathname != "/"){
|
||||
socket.emit("pos");
|
||||
socket.emit('list', chan.toLowerCase());
|
||||
|
||||
Reference in New Issue
Block a user