mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added custom find for playlist
This commit is contained in:
@@ -36,13 +36,14 @@ function updateList()
|
||||
$("#wrapper").empty();
|
||||
|
||||
$.each(list.songs, function(j, listeID){
|
||||
|
||||
var video_title=listeID.title.replace(/\\\'/g, "'").replace(/"/g,"'").replace(/&/g,"&");
|
||||
var video_id = listeID.id;
|
||||
if(find && video_id != bright) brightness = "brightness";
|
||||
else brightness = "";
|
||||
var video_thumb = "http://i.ytimg.com/vi/"+video_id+"/mqdefault.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='"+video_id+" result lresult"+odd+"'>"+
|
||||
var finalhtml="<div id='result' class='"+video_id+" result "+brightness+" lresult"+odd+"'>"+
|
||||
"<img class='thumb lthumb' src='"+video_thumb+"'>"+
|
||||
"<div class='ltitle'>"+video_title+"</div>"+
|
||||
"<div class='votes'>"+listeID.votes+
|
||||
|
||||
Reference in New Issue
Block a user