mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Yolo with large datalists right?
This commit is contained in:
@@ -23,9 +23,11 @@ function populate_channels(lists)
|
|||||||
for(x in lists)
|
for(x in lists)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
var chan = lists[x][3];
|
||||||
|
if(num>20)
|
||||||
|
{
|
||||||
var id = lists[x][1];
|
var id = lists[x][1];
|
||||||
var nowplaying = lists[x][2];
|
var nowplaying = lists[x][2];
|
||||||
var chan = lists[x][3];
|
|
||||||
var viewers = lists[x][0];
|
var viewers = lists[x][0];
|
||||||
var img = "background-image:url('https://img.youtube.com/vi/"+id+"/hqdefault.jpg');";
|
var img = "background-image:url('https://img.youtube.com/vi/"+id+"/hqdefault.jpg');";
|
||||||
var song_count = lists[x][4];
|
var song_count = lists[x][4];
|
||||||
@@ -44,10 +46,10 @@ function populate_channels(lists)
|
|||||||
|
|
||||||
//$("#channels").append(card);
|
//$("#channels").append(card);
|
||||||
//console.log(chan);
|
//console.log(chan);
|
||||||
|
}
|
||||||
output+="<option value='"+chan+"'> ";
|
output+="<option value='"+chan+"'> ";
|
||||||
num++;
|
num++;
|
||||||
if(num>19)break;
|
//if(num>19)break;
|
||||||
}
|
}
|
||||||
document.getElementById("preloader").style.display = "none";
|
document.getElementById("preloader").style.display = "none";
|
||||||
document.getElementById("searches").innerHTML = output;
|
document.getElementById("searches").innerHTML = output;
|
||||||
|
|||||||
Reference in New Issue
Block a user