Skip to content

Instantly share code, notes, and snippets.

@psorensen
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psorensen/e57d838193b245a1cc41 to your computer and use it in GitHub Desktop.
Save psorensen/e57d838193b245a1cc41 to your computer and use it in GitHub Desktop.
<style>.om-feed-container{width: 100%;max-width: 300px;background: #dfdfdf;font-family: arial;float: left;}.om-feed-header{background: #505050;color: white;padding: 10px;clear: both;}.om-feed-header img, .om-feed-header h4{float: left;}.clear:after{clear: both; content: ""; display: table;}ul#feed{width: 100%;display: block;padding-left: 0;padding: 10px;/*margin-left: 0;*/}ul#feed li{list-style: none;margin-bottom: 10px;}ul#feed li a{color: #3d8180;font-size: 12px;}.gist{max-width: 600px;float: left;margin-left: 50px;}</style> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript">google.load("feeds", "1"); function initialize(){var feed=new google.feeds.Feed("https://www.openminds.com/market/child-welfare/feed/"); feed.setNumEntries(6); feed.load(function(result){if (!result.error){var container=document.getElementById("feed"); for (var i=0; i < result.feed.entries.length; i++){var entry=result.feed.entries[i]; var li=document.createElement("li"); var a=document.createElement("a"); var linkText=document.createTextNode(entry.title) a.appendChild(linkText); a.title=entry.title; a.href=entry.link li.className="om-rss-entry"; li.appendChild(a); container.appendChild(li);}}});}google.setOnLoadCallback(initialize); </script> <div class="om-feed-container"> <div class="om-feed-header clear"> <img src="http://dev.openminds.com/om-logo.png" width="55" alt=""><h4>OPEN MINDS <br/>News Feed</h4> </div><span class="clearfix"></span> <ul id="feed"></ul> <img src="http://placehold.it/300x200" alt="" class="om-feed-logo"> </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment