mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-01-01 23:26:18 +00:00
Fixed error with login, and size of password field
This commit is contained in:
@@ -79,7 +79,7 @@ input[type=text]:focus:not([readonly]) + label, input[type=password]:focus:not([
|
|||||||
}
|
}
|
||||||
|
|
||||||
#password{
|
#password{
|
||||||
width:70%;
|
width:84%;
|
||||||
margin-left:10px;
|
margin-left:10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
4
static/dist/main-min.js
vendored
4
static/dist/main-min.js
vendored
File diff suppressed because one or more lines are too long
@@ -59,6 +59,7 @@ var Admin = {
|
|||||||
|
|
||||||
socket.on("pw", function(msg)
|
socket.on("pw", function(msg)
|
||||||
{
|
{
|
||||||
|
console.log("fuck");
|
||||||
w_p = false;
|
w_p = false;
|
||||||
adminpass = msg;
|
adminpass = msg;
|
||||||
names=["vote","addsongs","longsongs","frontpage", "allvideos", "removeplay", "skip", "shuffle"];
|
names=["vote","addsongs","longsongs","frontpage", "allvideos", "removeplay", "skip", "shuffle"];
|
||||||
@@ -147,8 +148,7 @@ var Admin = {
|
|||||||
if(!Helper.contains($("#admin-lock").attr("class").split(" "), "mdi-action-lock"))
|
if(!Helper.contains($("#admin-lock").attr("class").split(" "), "mdi-action-lock"))
|
||||||
$("#admin-lock").addClass("mdi-action-lock");
|
$("#admin-lock").addClass("mdi-action-lock");
|
||||||
$("#admin-lock").removeClass("mdi-action-lock-open clickable");
|
$("#admin-lock").removeClass("mdi-action-lock-open clickable");
|
||||||
}else
|
}
|
||||||
$("#password").attr("placeholder", "Change channel password");
|
|
||||||
},
|
},
|
||||||
|
|
||||||
submitAdmin: function(form)
|
submitAdmin: function(form)
|
||||||
|
|||||||
@@ -91,6 +91,15 @@ $(document).ready(function()
|
|||||||
Notification.requestPermission();
|
Notification.requestPermission();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(localStorage[chan.toLowerCase()])
|
||||||
|
{
|
||||||
|
//localStorage.removeItem(chan.toLowerCase());
|
||||||
|
if(localStorage[chan.toLowerCase()].length != 64)
|
||||||
|
localStorage.removeItem(chan.toLowerCase());
|
||||||
|
else
|
||||||
|
socket.emit("password", [localStorage[chan.toLowerCase()], chan.toLowerCase()]);
|
||||||
|
}
|
||||||
|
|
||||||
if(window.mobilecheck()){
|
if(window.mobilecheck()){
|
||||||
document.getElementById("search").blur();
|
document.getElementById("search").blur();
|
||||||
Youtube.readyLooks();
|
Youtube.readyLooks();
|
||||||
@@ -98,15 +107,6 @@ $(document).ready(function()
|
|||||||
Youtube.loadPlayer();
|
Youtube.loadPlayer();
|
||||||
window.onYouTubeIframeAPIReady = Youtube.onYouTubeIframeAPIReady;
|
window.onYouTubeIframeAPIReady = Youtube.onYouTubeIframeAPIReady;
|
||||||
|
|
||||||
if(localStorage[chan.toLowerCase()])
|
|
||||||
{
|
|
||||||
//localStorage.removeItem(chan.toLowerCase());
|
|
||||||
if(localStorage[chan.toLowerCase()].length != 64)
|
|
||||||
localStorage.removeItem(chan.toLowerCase());
|
|
||||||
else
|
|
||||||
socket.emit("password", [localStorage[chan.toLowerCase()], chan.toLowerCase()]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(navigator.userAgent.toLowerCase().indexOf("firefox") > -1) //quickdickfix for firefoxs weird percent handling
|
if(navigator.userAgent.toLowerCase().indexOf("firefox") > -1) //quickdickfix for firefoxs weird percent handling
|
||||||
$(".main").height(window.innerHeight-64);
|
$(".main").height(window.innerHeight-64);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user