Sha256: b5e68ae3675c8241bbd0f090a173824f078686ee3a340007456bc67a7d71f0dd
Contents?: true
Size: 786 Bytes
Versions: 25
Compression:
Stored size: 786 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('muck.raker.loading_message') %> <img src="/images/spinner.gif" alt="Loading content image" /> </div>
Version data entries
25 entries across 25 versions & 2 rubygems