mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-29 05:21:01 +00:00
testing
This commit is contained in:
@@ -179,6 +179,9 @@ function search(search_input){
|
|||||||
url: vid_url,
|
url: vid_url,
|
||||||
dataType:"jsonp",
|
dataType:"jsonp",
|
||||||
success: function(response){
|
success: function(response){
|
||||||
|
|
||||||
|
var output = "";
|
||||||
|
|
||||||
$.each(response.items, function(i,song)
|
$.each(response.items, function(i,song)
|
||||||
{
|
{
|
||||||
var duration=song.contentDetails.duration;
|
var duration=song.contentDetails.duration;
|
||||||
@@ -192,6 +195,7 @@ function search(search_input){
|
|||||||
|
|
||||||
console.log(result_html);
|
console.log(result_html);
|
||||||
$("#results").append(result_html);
|
$("#results").append(result_html);
|
||||||
|
output += result_html;
|
||||||
|
|
||||||
var song = $("#result");
|
var song = $("#result");
|
||||||
song.find(".search-title").text(title);
|
song.find(".search-title").text(title);
|
||||||
@@ -203,6 +207,8 @@ function search(search_input){
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log(output);
|
||||||
|
|
||||||
if(!contains($("#search_loader").attr("class").split(" "), "hide"))
|
if(!contains($("#search_loader").attr("class").split(" "), "hide"))
|
||||||
$("#search_loader").addClass("hide");
|
$("#search_loader").addClass("hide");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user