Fixed error with login, and size of password field

This commit is contained in:
Kasper Rynning-Tønnesen
2015-07-06 19:31:36 +02:00
parent a48c6160ab
commit 2fce7db1e8
4 changed files with 14 additions and 14 deletions

View File

@@ -79,7 +79,7 @@ input[type=text]:focus:not([readonly]) + label, input[type=password]:focus:not([
}
#password{
width:70%;
width:84%;
margin-left:10px;
}

File diff suppressed because one or more lines are too long

View File

@@ -59,6 +59,7 @@ var Admin = {
socket.on("pw", function(msg)
{
console.log("fuck");
w_p = false;
adminpass = msg;
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"))
$("#admin-lock").addClass("mdi-action-lock");
$("#admin-lock").removeClass("mdi-action-lock-open clickable");
}else
$("#password").attr("placeholder", "Change channel password");
}
},
submitAdmin: function(form)

View File

@@ -91,13 +91,6 @@ $(document).ready(function()
Notification.requestPermission();
}
if(window.mobilecheck()){
document.getElementById("search").blur();
Youtube.readyLooks();
}else{
Youtube.loadPlayer();
window.onYouTubeIframeAPIReady = Youtube.onYouTubeIframeAPIReady;
if(localStorage[chan.toLowerCase()])
{
//localStorage.removeItem(chan.toLowerCase());
@@ -107,6 +100,13 @@ $(document).ready(function()
socket.emit("password", [localStorage[chan.toLowerCase()], chan.toLowerCase()]);
}
if(window.mobilecheck()){
document.getElementById("search").blur();
Youtube.readyLooks();
}else{
Youtube.loadPlayer();
window.onYouTubeIframeAPIReady = Youtube.onYouTubeIframeAPIReady;
if(navigator.userAgent.toLowerCase().indexOf("firefox") > -1) //quickdickfix for firefoxs weird percent handling
$(".main").height(window.innerHeight-64);