Difference between revisions of "HTML:Blogs feed preview"

From distributed.net
Jump to: navigation, search
Line 1: Line 1:
 
+
  </pre>
 
   <script type="text/javascript" src="https://www.google.com/jsapi"></script>
 
   <script type="text/javascript" src="https://www.google.com/jsapi"></script>
 
   <script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js" type="text/javascript"></script>
 
   <script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js" type="text/javascript"></script>
Line 7: Line 7:
 
    
 
    
 
     #feedControl {
 
     #feedControl {
       margin-top : 20px;
+
       margin-top: 20px;
 
       margin-left: auto;
 
       margin-left: auto;
 
       margin-right: auto;
 
       margin-right: auto;
       width : 640px;
+
       width: 640px;
 
       font-size: 16px;
 
       font-size: 16px;
 
       color: #DCADD0;
 
       color: #DCADD0;
Line 32: Line 32:
 
    
 
    
 
   <div id="blogsFeedControl">Loading...</div>
 
   <div id="blogsFeedControl">Loading...</div>
 +
  <pre>

Revision as of 23:23, 3 December 2013

 </pre>
 <script type="text/javascript" src="https://www.google.com/jsapi"></script>
 <script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js" type="text/javascript"></script>
 
 <style type="text/css">
   @import url("http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.css");
 
   #feedControl {
     margin-top: 20px;
     margin-left: auto;
     margin-right: auto;
     width: 640px;
     font-size: 16px;
     color: #DCADD0;
   }
 </style>
 <script type="text/javascript">
 
   google.load("feeds", "1");
 
   function initializeBlogs() {
     var feed = "http://blogs.distributed.net/feed/";
     var options = {
       numResults : 5,
       displayTime : 5000
     }
     new GFdynamicFeedControl(feed, "blogsFeedControl", options);
   }
   google.setOnLoadCallback(initializeBlogs);
 
 </script>
 
Loading...