diff --git a/index.html b/index.html index ef1dc7f..9becc1f 100755 --- a/index.html +++ b/index.html @@ -226,6 +226,9 @@ $(document).ready(function() { // ask youtube.com // http://gdata.youtube.com/feeds/api/videos?q=skateboarding+dog&start-index=0&max-results=10&v=2&key=AI39si6YeaDRSECPlD-FPnLV2r1T8rt6GHxYePHc94KTWRKgu3PnVMPmOaM0bISMORXolzcHLR7sCzCcN5K38carFyUTCH8jSg // api: AI39si6YeaDRSECPlD-FPnLV2r1T8rt6GHxYePHc94KTWRKgu3PnVMPmOaM0bISMORXolzcHLR7sCzCcN5K38carFyUTCH8jSg + $("#results").html("
"); + $("#appa").fadeOut("slow").css("display", "none"); + $("#appb").fadeIn("slow").css("display", "block"); playnow("serching youtube for "+$("#searchbox").val()); $.ajax({ type: 'GET', @@ -241,9 +244,6 @@ $(document).ready(function() { // alert($(doc).find("entry")); //alert($(data).find("entry"));// .find("title").text()); // $.xmlns.media = "media:"; - $("#results").html("
"); - $("#appa").fadeOut("slow").css("display", "none"); - $("#appb").fadeIn("slow").css("display", "block"); $(data).find("entry").each(function(index, domele) { var appstr='#'+(index+1)+' :

'+$(this).find("title:first").text()+'

'+$(this).find("description:first").text()+'
'; $("#results").append(appstr);