Sha256: b56f0672904d4ca5a52e0c7f56ee393bb16c7f9934bce448702fb2918c024d70
Contents?: true
Size: 784 Bytes
Versions: 22
Compression:
Stored size: 784 Bytes
Contents
<% content_for :head do -%> <%= google_ajax_api_scripts -%> <%= google_load_feeds -%> <% end -%> <% content_for :javascript do -%> google.setOnLoadCallback(function() { google.feeds.findFeeds('<%= query %>', findDone); }); function findDone(result) { // Make sure we didn't get an error. if (!result.error) { // Get content div var content = document.getElementById('<%= content_id %>'); var html = ''; for (var i = 0; i < result.entries.length; i++) { var entry = result.entries[i]; html += '<p><a href="' + entry.url + '">' + entry.title + '</a></p>'; } content.innerHTML = html; } } <% end -%> <div id="<%= content_id %>"> <%= t('overlord.loading_message') %> <img src="/images/spinner.gif" alt="Loading content image" /> </div>
Version data entries
22 entries across 22 versions & 1 rubygems