function updateList(){console.log("updating list");list=$.ajax({type:"GET",url:"php/change.php",async:false}).responseText;list=$.parseJSON(list);conf=list.conf;if(conf.hasOwnProperty("addsongs")&&conf.addsongs=="true")adminadd=1;else adminadd=0;if(conf.hasOwnProperty("allvideos")&&conf.allvideos=="true")music=1;else music=0;if(conf.hasOwnProperty("longsongs")&&conf.longsongs=="true")longS=1;else longS=0;if(conf.hasOwnProperty("vote")&&conf.vote=="true")adminvote=1;else adminvote=0;if(conf.hasOwnProperty("adminpass")&&conf.adminpass!=="")hasadmin=1;else hasadmin=0;setTimeout(function(){$("#wrapper").empty();$.each(list.songs,function(e,t){var n=t.title.replace(/\\\'/g,"'").replace(/"/g,"'").replace(/&/g,"&");var r=t.id;var i="http://i.ytimg.com/vi/"+r+"/mqdefault.jpg";var s="";if(e%2===0)s=" oddlist";var o="";if(pass_corr=="correct")o="";var u="
"+""+"
"+n+"
"+"
"+t.votes+"+"+"-"+o+"
"+"
";$("#wrapper").append(u)});if($("#playlist").height()!=$("#player").height()){if(!window.mobilecheck()){$("#playlist").css({height:$("#player").height()-$("#adminPanel").outerHeight(true)+30});$("#playlist").css({overflow:"hidden"});if(scroller===false){myScroll=new IScroll("#playlist",{mouseWheel:true,scrollbars:false,scrollY:true,interactiveScrollbars:false});scroller=true}else{myScroll.refresh()}}}if(window.mobilecheck()){document.getElementById("player").style.display="none";ytplayer.pauseVideo()}else{myScroll.refresh()}if(!adminTogg){names=["vote","addsongs","longsongs","frontpage","allvideos","removeplay"];for(var e=0;e