diff --git a/server/handlers/notifications.js b/server/handlers/notifications.js
index 171cc2ba..aa2923e6 100644
--- a/server/handlers/notifications.js
+++ b/server/handlers/notifications.js
@@ -15,7 +15,7 @@ function requested_change(type, string, channel) {
var message = "A " + type + " change was requested on " + channel + "
New supposed value is:
" + string + "
\
Go to https://admin.zoff.me/ to accept or decline the request.";
var msg = {
- from: notify_mail.from,
+ from: mailconfig.from,
to: mailconfig.notify_mail,
subject: 'ZOFF: Requested new ' + type,
text: message,
diff --git a/server/handlers/suggestions.js b/server/handlers/suggestions.js
index b828e3a1..932edd24 100644
--- a/server/handlers/suggestions.js
+++ b/server/handlers/suggestions.js
@@ -35,7 +35,7 @@ function thumbnail(msg, coll, guid, offline, socket) {
msg.thumbnail = msg.thumbnail.replace(/^https?\:\/\//i, "");
if(msg.thumbnail.substring(0,2) != "//") msg.thumbnail = "//" + msg.thumbnail;
var channel = msg.channel.toLowerCase();
- var hash = Functions.hash_pass(Functions.decrypt_string(msg.adminpass));
+ var hash = Functions.hash_pass(Functions.hash_pass(Functions.decrypt_string(msg.adminpass),true));
db.collection(channel + "_settings").find({id: "config"}, function(err, docs){
if(docs.length > 0 && (docs[0].userpass == undefined || docs[0].userpass == "" || (msg.hasOwnProperty('pass') && docs[0].userpass == crypto.createHash('sha256').update(Functions.decrypt_string(msg.pass)).digest("base64")))) {
if(docs !== null && docs.length !== 0 && docs[0].adminpass !== "" && docs[0].adminpass == hash){
@@ -87,7 +87,7 @@ function description(msg, coll, guid, offline, socket) {
msg.adminpass = adminpass;
}
var channel = msg.channel.toLowerCase();
- var hash = Functions.hash_pass(Functions.decrypt_string(msg.adminpass));
+ var hash = Functions.hash_pass(Functions.hash_pass(Functions.decrypt_string(msg.adminpass), true));
db.collection(channel + "_settings").find({id: "config"}, function(err, docs){
if(docs.length > 0 && (docs[0].userpass == undefined || docs[0].userpass == "" || (msg.hasOwnProperty('pass') && docs[0].userpass == crypto.createHash('sha256').update(Functions.decrypt_string(msg.pass)).digest("base64")))) {
if(docs !== null && docs.length !== 0 && docs[0].adminpass !== "" && docs[0].adminpass == hash){
diff --git a/server/public/assets/css/style.css b/server/public/assets/css/style.css
index ae61e041..4d474efa 100755
--- a/server/public/assets/css/style.css
+++ b/server/public/assets/css/style.css
@@ -21,6 +21,10 @@ body {
background: white;
}
+a {
+ outline: 0 !important;
+}
+
.error-code-container {
background: lightgrey;
border: 1px solid darkgrey;
@@ -513,6 +517,10 @@ li.disabled span {
align-items: center;
}
+.select-wrapper input.select-dropdown {
+ position: initial;
+}
+
#frontpage_player{
position: fixed;
bottom: 10px;
@@ -592,6 +600,7 @@ footer{
}
.modal {
+ outline: 0 !important;
z-index: 999999999 !important;
}
@@ -631,14 +640,15 @@ footer{
margin-right:10px;
}
-.side-nav{
+.sidenav{
overflow-x:hidden;
+ width: 315px;
}
footer.page-footer,
nav, .tabs .tab a,
-.side-nav .collapsible-body li.active,
-.side-nav.fixed .collapsible-body li.active,
+.sidenav .collapsible-body li.active,
+.sidenav.fixed .collapsible-body li.active,
.pagination li.active{
background-color: #2D2D2D;
}
@@ -860,7 +870,7 @@ nav .zbrand{
}
#description_form div .character-counter{
- margin-top: -30px;
+ /*margin-top: -30px;*/
color:black;
}
@@ -1214,12 +1224,13 @@ margin:-1px;
}
.video-container{
+ padding-left: 0px !important;
-webkit-transition: opacity 0.5s;
-moz-transition: opacity 0.5s;
-o-transition: opacity 0.5s;
transition: opacity 0.5s;
overflow: visible;
- padding-right: 0px;
+ /*padding-right: 0px !important;*/
}
.no-opacity{
@@ -1258,8 +1269,16 @@ margin:-1px;
#chan_thumbnail, #chan_description{
color: black;
width: 100%;
+ border-bottom: 1px solid transparent;
+ -webkit-box-shadow: 0 1px 0 0 transparent;
+ box-shadow: 0 1px 0 0 transparent;
}
+#chan_thumbnail:focus, #chan_description:focus {
+ border-bottom: 1px solid orange !important;
+ -webkit-box-shadow: 0 1px 0 0 orange !important;
+ box-shadow: 0 1px 0 0 orange !important;
+}
#thumbnail_image_channel{
max-width: 200px;
max-height: 400px;
@@ -1269,7 +1288,7 @@ margin:-1px;
position:absolute;
width:100% !important;
margin-left: 0px !important;
- top: 57px;
+ /*top: 57px;*/
}
.card-title{
@@ -3164,7 +3183,7 @@ nav ul li:hover, nav ul li.active {
}
.padding-bottom-novideo{
- padding-bottom:40px;
+ padding-bottom:80px;
}
.padding-bottom-extra{
@@ -3178,7 +3197,7 @@ nav ul li:hover, nav ul li.active {
}
#playlist {
- margin-left: 10px;
+ /*margin-left: 10px;*/
width: calc(100% - 10px);
overflow: hidden;
}
@@ -3273,7 +3292,7 @@ nav ul li:hover, nav ul li.active {
#results{
background-color: #000;
- margin-top:56px;
+ margin-top:47px;
}
.result{
margin: 0;
@@ -3314,7 +3333,7 @@ nav ul li:hover, nav ul li.active {
.result-object-slid {
/*-webkit-transform: translateX(calc(-100% + 45px)) !important;
transform: translateX(calc(-100% + 45px)) !important;*/
- margin-left: -99%;
+ margin-left: -94%;
}
.result-start-end-container {
diff --git a/server/public/assets/js/admin.js b/server/public/assets/js/admin.js
index 8c09bab5..40aee65e 100755
--- a/server/public/assets/js/admin.js
+++ b/server/public/assets/js/admin.js
@@ -16,6 +16,13 @@ var Admin = {
if($(".suggested-badge").text() != "0" && $(".suggested-badge").text() != "") {
$(".suggested-badge").removeClass("hide");
}
+ if(!Helper.mobilecheck()) {
+ $('#chan_thumbnail').tooltip({
+ delay: 5,
+ position: "left",
+ html: "imgur link"
+ });
+ }
} else {
Admin.hideUserSuggested();
}
@@ -35,7 +42,7 @@ var Admin = {
$('#admin-lock').tooltip({
delay: 5,
position: "left",
- tooltip: "Logout"
+ html: "Logout"
});
}
$("#password").val("");
@@ -53,7 +60,7 @@ var Admin = {
$('#admin-lock').tooltip({
delay: 5,
position: "left",
- tooltip: "Logout"
+ html: "Logout"
});
}
}
@@ -98,10 +105,10 @@ var Admin = {
//Crypt.remove_pass(chan.toLowerCase());
if(Admin.logged_in) {
socket.emit("logout");
- Materialize.toast("Logged out", 4000);
+ M.toast({html: "Logged out", displayLength: 4000});
Admin.display_logged_out();
} else {
- Materialize.toast("Not logged in", 4000);
+ M.toast({html: "Not logged in", displayLength: 4000});
}
},
@@ -119,11 +126,12 @@ var Admin = {
}
if($("#admin-lock").html() != "lock") {
+ if(!Helper.mobilecheck()) {
+ $('#admin-lock').tooltip("destroy");
+ //$('#admin-lock').tooltip('destroy');
+ }
$("#admin-lock").removeClass("clickable");
$("#admin-lock").html("lock");
- if(!Helper.mobilecheck()) {
- $('#admin-lock').tooltip('remove');
- }
}
if(!$(".user-password-li").hasClass("hide")) {
@@ -225,7 +233,7 @@ var Admin = {
},
hide_settings: function() {
- $('#settings').sideNav('hide');
+ $('.sidenav').sidenav('close');
},
shuffle: function() {
diff --git a/server/public/assets/js/channel.js b/server/public/assets/js/channel.js
index 31b82239..0c42f3fd 100644
--- a/server/public/assets/js/channel.js
+++ b/server/public/assets/js/channel.js
@@ -10,7 +10,7 @@ var Channel = {
$(".skip_next_client").tooltip({
delay: 5,
position: "bottom",
- tooltip: "Skip"
+ html: "Skip"
});
}
$("#results").addClass("client-results-height");
@@ -48,11 +48,11 @@ var Channel = {
$('ul.playlist-tabs-loggedIn').tabs();
$('ul.chatTabs').tabs();
}
- $("#settings").sideNav({
+ $(".sidenav").sidenav({
menuWidth: 310,
edge: side,
closeOnClick: false,
- onOpen: function(el) {
+ onOpenStart: function(el) {
if(!$(".hamburger-sidenav").hasClass("open")) {
$(".hamburger-sidenav").addClass("open");
}
@@ -62,7 +62,7 @@ var Channel = {
}
});
},
- onClose: function(el) {
+ onCloseStart: function(el) {
$(".hamburger-sidenav").removeClass("open");
$('*[id*=sidenav-overlay]:visible').each(function(i) {
if(i > 0) {
@@ -168,6 +168,7 @@ var Channel = {
}
if(((!localStorage.getItem("_jSeen") || localStorage.getItem("_jSeen") != "seen") && !Helper.mobilecheck()) && !client) {
+ $('.tap-target-join').tapTarget();
$('.tap-target-join').tapTarget('open');
tap_target_timeout = setTimeout(function() {
$('.tap-target-join').tapTarget('close');
@@ -179,38 +180,38 @@ var Channel = {
$("#chan").tooltip({
delay: 5,
position: "bottom",
- tooltip: "Show join URL",
+ html: "Show join URL",
});
$("#viewers").tooltip({
delay: 5,
position: "top",
- tooltip: "Viewers"
+ html: "Viewers"
});
$("#fullscreen").tooltip({
delay: 5,
position: "top",
- tooltip: "Fullscreen"
+ html: "Fullscreen"
});
- $("#search-btn").tooltip({
+ $(".search-btn-container").tooltip({
delay: 5,
position: "bottom",
- tooltip: "Search"
+ html: "Search"
});
- $("#shuffle").tooltip({
+ $(".shuffle-btn-container").tooltip({
delay: 5,
position: "bottom",
- tooltip: "Shuffle",
+ html: "Shuffle",
});
$("#settings").tooltip({
delay: 5,
position: "bottom",
- tooltip: "Settings",
+ html: "Settings",
});
}
@@ -253,7 +254,7 @@ var Channel = {
$('.castButton').tooltip({
delay: 5,
position: "top",
- tooltip: "Cast Zoff to TV"
+ html: "Cast Zoff to TV"
});
$("#color_embed").spectrum({
@@ -487,6 +488,7 @@ var Channel = {
var host = window.location.hostname.split(".");
window.location.hostname = host[host.length -1];
}*/
+ //Admin.display_logged_out();
var channel_before_move = chan.toLowerCase();
clearTimeout(timed_remove_check);
changing_to_frontpage = true;
@@ -502,29 +504,36 @@ var Channel = {
window.scrollTo(0, 0);
Player.stopInterval = true;
- Admin.display_logged_out();
Admin.beginning = true;
began = false;
durationBegun = false;
$("#embed-button").css("display", "none");
if(!Helper.mobilecheck()) {
- $("#chan").tooltip("remove");
- $('.castButton').tooltip("remove");
- $("#viewers").tooltip("remove");
- //$('.castButton-unactive').tooltip("remove");
- $("#offline-mode").tooltip("remove");
- $('#chan_thumbnail').tooltip("remove");
- $('#fullscreen').tooltip("remove");
- $('#admin-lock').tooltip("remove");
- $("#search-btn").tooltip("remove");
- $("#shuffle").tooltip("remove");
- $("#settings").tooltip("remove");
+ $("#chan").tooltip("destroy");
+ $('.castButton').tooltip("destroy");
+ $("#viewers").tooltip("destroy");
+ //$('.castButton-unactive').tooltip("destroy");
+ $("#offline-mode").tooltip("destroy");
+ if(M.Tooltip.getInstance($("#chan_thumbnail")) != undefined) {
+ $('#chan_thumbnail').tooltip("destroy");
+ }
+ $('#fullscreen').tooltip("destroy");
+ if(M.Tooltip.getInstance($("#admin-lock")) != undefined) {
+ $('#admin-lock').tooltip("destroy");
+ }
+ $(".search-btn-container").tooltip("destroy");
+ $(".shuffle-btn-container").tooltip("destroy");
+ $("#settings").tooltip("destroy");
}
$("#seekToDuration").remove();
- $("#settings").sideNav("destroy");
- $('.tap-target').tapTarget('close');
- $('.tap-target-join').tapTarget('close');
+ $(".sidenav").sidenav("destroy");
+ if(M.TapTarget.getInstance($(".tap-target"))) {
+ $('.tap-target').tapTarget('close');
+ }
+ if(M.TapTarget.getInstance($(".tap-target-join"))) {
+ $('.tap-target-join').tapTarget('close');
+ }
clearTimeout(tap_target_timeout);
before_toast();
if(Helper.mobilecheck() || user_auth_avoid || client) {
diff --git a/server/public/assets/js/embed.js b/server/public/assets/js/embed.js
index f2ab1cd9..b53c44f9 100755
--- a/server/public/assets/js/embed.js
+++ b/server/public/assets/js/embed.js
@@ -201,7 +201,7 @@ function toast(msg) {
$("#thumbnail_form").css("display", "none");
$("#description_form").css("display", "none");
if(!Helper.mobilecheck()) {
- $('#chan_thumbnail').tooltip("remove");
+ $('#chan_thumbnail').tooltip("destroy");
}
w_p = true;
break;
@@ -248,7 +248,7 @@ function toast(msg) {
$("#thumbnail_form").css("display", "none");
$("#description_form").css("display", "none");
if(!Helper.mobilecheck()) {
- $('#chan_thumbnail').tooltip("remove");
+ $('#chan_thumbnail').tooltip("destroy");
}
w_p = true;
if(!$("#playlist_loader").hasClass("hide")) {
@@ -296,7 +296,7 @@ function toast(msg) {
$('#chan_thumbnail').tooltip({
delay: 5,
position: "left",
- tooltip: "imgur link"
+ html: "imgur link"
});
}
break;
@@ -314,7 +314,7 @@ function toast(msg) {
break;
}
before_toast();
- Materialize.toast(msg, 4000);
+ M.toast({html: msg, displayLength: 4000});
}
function emit() {
@@ -332,11 +332,12 @@ function emit() {
}
function before_toast(){
- if($('.toast').length > 0) {
+ /*if($('.toast').length > 0) {
var toastElement = $('.toast').first()[0];
var toastInstance = toastElement.M_Toast;
toastInstance.remove();
- }
+ }*/
+ M.Toast.dismissAll();
//Materialize.Toast.removeAll();
}
diff --git a/server/public/assets/js/frontpage.js b/server/public/assets/js/frontpage.js
index 2e95b311..86aa40f0 100755
--- a/server/public/assets/js/frontpage.js
+++ b/server/public/assets/js/frontpage.js
@@ -1,5 +1,3 @@
-//script for frontpage
-
var channel_list;
var frontpage = true;
var socket;
@@ -131,7 +129,7 @@ var Frontpage = {
$($(".pin").parent().parent().parent()).tooltip({
delay: 5,
position: "top",
- tooltip: "Featured playlist"
+ html: "Featured playlist"
});
}
@@ -268,7 +266,7 @@ var Frontpage = {
Frontpage.frontpage_function(response.results);
},
error: function() {
- Materialize.toast("Couldn't fetch lists, trying again in 3 seconds..", 3000, "red lighten connect_error");
+ M.toast({html: "Couldn't fetch lists, trying again in 3 seconds..", displayLength: 3000, classes: "red lighten connect_error"});
retry_frontpage = setTimeout(function(){
Frontpage.get_frontpage_lists();
}, 3000);
@@ -319,12 +317,12 @@ var Frontpage = {
}
$("#main-container").css("background-color", "#2d2d2d");
if(!Helper.mobilecheck()) {
- $("#frontpage-viewer-counter").tooltip("remove");
- $(".generate-channel-name").tooltip("remove");
- $("#offline-mode").tooltip("remove");
- $("#client-mode-button").tooltip("remove");
+ $("#frontpage-viewer-counter").tooltip("destroy");
+ $(".generate-channel-name").tooltip("destroy");
+ $("#offline-mode").tooltip("destroy");
+ $("#client-mode-button").tooltip("destroy");
if($(".pin").length == 1) {
- $($(".pin").parent().parent().parent()).tooltip("remove");
+ $($(".pin").parent().parent().parent()).tooltip("destroy");
}
}
currently_showing_channels = 1;
@@ -355,7 +353,7 @@ var Frontpage = {
var response = $("
This site supports chromecasting!
Copy the code in the textarea, and paste on your website.
- - + - - +
diff --git a/server/public/partials/channel/search.handlebars b/server/public/partials/channel/search.handlebars index 0dc3f34e..f4e48a08 100644 --- a/server/public/partials/channel/search.handlebars +++ b/server/public/partials/channel/search.handlebars @@ -11,9 +11,9 @@