Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<html>
  <head><title>Fuuuuuuuuu</title>
  <style type='text/css'>
    #results{ 
      width: 100%; 
      //margin-left: 30%; 
      border: 1px solid gray; 
      padding: 5px; 
      //height: 200px; 
      //overflow: auto; } 
  </style>
  <script type='text/javascript'>
    // Parses returned response and extracts
    // the title, links, and text of each news story.
    
    function top_stories(o){
      var items = o.query.results.item;
      linkarr=[['title'],['link']];
      var output = '';
      var no_items=items.length;
      for(var i=0;i<no_items;i++){
        var title = items[i].title;
        var link = items[i].enclosure.url;
        linkarr[0].push(title);
        linkarr[1].push(link);
        output += "linkarr[0]["+i+"]="+linkarr[0][i] + "<br>" 
                  + "linkarr[1]["+i+"]= "+ linkarr[1][i]  + "<hr>";
        //output += "<h2>"+title+"</h2>" + "<p>"+link+"</p>" + "<hr>";
        
      }
      // Place news stories in div tag
      document.getElementById('results').innerHTML = output;  
    }
    </script>
  </head>
  <body>
    <!-- Div tag for stories results -->
    <div id='results'></div>
    <!-- The YQL statment will be assigned to src. -->
    <script src="http://query.yahooapis.com/v1/public/yql?q=%20SELECT%20*%20FROM%20rss%20WHERE%20url%3D%22http%3A%2F%2Fvimeo.com%2Fchannels%2Fstaffpicks%2Fvideos%2Frss%22&format=json&callback=top_stories"></script>
  
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers