mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Delete button shows up when you enter correct password
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
var adminTogg = false;
|
||||
var pass_corr = "";
|
||||
|
||||
function admin()
|
||||
{
|
||||
@@ -30,7 +31,7 @@ function submitAdmin(form)
|
||||
}
|
||||
}).responseText;
|
||||
|
||||
pass = confRes;
|
||||
console.log(pass);
|
||||
|
||||
pass_corr = confRes;
|
||||
console.log(pass_corr);
|
||||
updateList();
|
||||
}
|
||||
|
||||
@@ -38,13 +38,14 @@ function updateList()
|
||||
var video_id = listeID["id"];
|
||||
var video_thumb = "http://i.ytimg.com/vi/"+video_id+"/default.jpg";
|
||||
var odd = ""; if(j%2==0)odd=" oddlist";
|
||||
var delsong = ""; if(pass_corr=="correct")delsong="<input id='del' title='Remove' type='button' class='button' value='X' onclick=\"vote('"+video_id+"','del')\">";
|
||||
var finalhtml="<div id='result' class='result lresult"+odd+"'>"+
|
||||
"<img src='"+video_thumb+"' class='thumb lthumb'>"+
|
||||
"<div class='ltitle'>"+video_title+"</div>"+
|
||||
"<div class='votes'>"+listeID["votes"]+
|
||||
"<a onclick=\"vote('"+video_id+"','pos');\" id='plus'>+</a>"+
|
||||
"<a onclick=\"vote('"+video_id+"','neg');\" id='minus'>-</a>"+
|
||||
"<input id='del' title='Remove' type='button' class='button' value='X' onclick=\"vote('"+video_id+"','del')\">"+
|
||||
delsong+
|
||||
"</div>"+
|
||||
"</div>";
|
||||
$("#wrapper").append(finalhtml);
|
||||
|
||||
@@ -58,7 +58,7 @@ body{background:#000; margin:0; }
|
||||
.votes{position: relative; margin-top: -0-5em; font-size: 18px; color:#fff;}
|
||||
#plus, #minus {text-decoration: none; color:#eee; margin-left: 2px; padding-left: 3px; padding-right: 3px; }
|
||||
#plus:hover,#minus:hover{color:#000;}
|
||||
#del{float: right; font-weight: bold; margin-right: 20px; margin-top:0px; border-radius: 2px; display:none;}
|
||||
#del{float: right; font-weight: bold; margin-right: 20px; margin-top:0px; border-radius: 2px; }
|
||||
#del:hover{color:red;}
|
||||
|
||||
#player{height: 68%; height: calc(87% - 183px); width: 60%; border-radius: 3px; box-shadow: 0 8px 11px -4px black;}
|
||||
|
||||
Reference in New Issue
Block a user