diff --git a/js/admin.js b/js/admin.js index 3c768400..3e484fe0 100755 --- a/js/admin.js +++ b/js/admin.js @@ -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(); } diff --git a/js/list.js b/js/list.js index 11f59d10..34ddbdae 100755 --- a/js/list.js +++ b/js/list.js @@ -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=""; var finalhtml="
"; $("#wrapper").append(finalhtml); diff --git a/static/style.css b/static/style.css index 754a2a19..673f8000 100755 --- a/static/style.css +++ b/static/style.css @@ -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;}