Yolo with large datalists right?

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-19 20:36:09 +02:00
parent 4e8133e74f
commit fa177390db

View File

@@ -23,9 +23,11 @@ function populate_channels(lists)
for(x in lists)
{
var chan = lists[x][3];
if(num>20)
{
var id = lists[x][1];
var nowplaying = lists[x][2];
var chan = lists[x][3];
var viewers = lists[x][0];
var img = "background-image:url('https://img.youtube.com/vi/"+id+"/hqdefault.jpg');";
var song_count = lists[x][4];
@@ -44,10 +46,10 @@ function populate_channels(lists)
//$("#channels").append(card);
//console.log(chan);
}
output+="<option value='"+chan+"'> ";
num++;
if(num>19)break;
//if(num>19)break;
}
document.getElementById("preloader").style.display = "none";
document.getElementById("searches").innerHTML = output;