<?xml version="1.0" encoding="UTF-8" ?> 
<Module>
  <ModulePrefs title="Kerala Blog Roll" height="250" width="245" scrolling="true"
             title_url="http://www.cs.princeton.edu/~mp/malayalam/blogs"
             author="Jinu George"
             author_email="jgeorge.feedback+blogroll@googlemail.com"
             author_link="http://raakshaseeyam.blogspot.com" 
             description="Shows blogs from the Kerala Blog Roll feed"
             screenshot="http://jinuvgeorge.googlepages.com/KBlogRoll.png"> 
  <Require feature="analytics" />
  </ModulePrefs>
  <UserPref name="num_entries" display_name="Number of Entries:"  default_value="5"/>
  <Content type="html">
  <![CDATA[ 

<script>
  _IG_Analytics("UA-2560293-2", "/KBlogRoll");
</script>
    
  <style type="text/css">
   
   a:link { color: #6699cc;text-decoration: none;  }
   a:visited { color: #666699; text-decoration: none;}
   a:hover { color: #5B739C; text-decoration: none;}
   a:active { color: #5B739C; text-decoration: none; }

  li {
     list-style: none;
     padding-left: 18px;  
     background: url(http://jinuvgeorge.googlepages.com/sqgreen.gif) no-repeat 0 6px;
     }
   p { margin:0;
       padding-left: 18px; 
       background: url(http://jinuvgeorge.googlepages.com/sqgreen.gif) no-repeat 0 6px;
       border: none;
     }
  #content_div {
       font-family:verdana;
       font-size: 75%;
           }
  h5 { 
       color: 3399FF;
       text-align: center;
          } 

  </style> 
 
    <div id=content_div></div>
     <script type="text/javascript">
     // Get userprefs
     var prefs = new _IG_Prefs();
     var entries = prefs.getInt("num_entries");

     // If user wants to display more than 100 entries, display an error
     // and set the value to 100, the max allowed.
     if (entries > 100)
     {
         alert("You cannot display more than 100 entries.");
         entries = 100;
     }

     // Use the _IG_FetchFeedAsJSON() function to retrieve core feed data from
     // the specified URL. Then combine the data with HTML markup for display in
     // the gadget.
     _IG_FetchFeedAsJSON("http://www.cs.princeton.edu/~mp/malayalam/blogs/rss20.xml",
             
            function(feed) { 
              if (feed == null){ 
                 alert("There is no data.");
                 return;
              }
     
         // Start building HTML string that will be displayed in gadget.
         var html = "<h5>Kerala Blog Roll</h5>";

     
         // Access the data for a given entry
         if (feed.Entry) {
             for (var i = 0; i < entries; i++) {
                 html += "<div>"
                 + "<p><a target='_blank' href='" + feed.Entry[i].Link + "'>"
                 + feed.Entry[i].Title
                 + "</a> </p>";
                 html += "</div>";
             }
         }
      html+="<div><p><a target='_blank' href='http://raakshaseeyam.blogspot.com'>Raakshaseeyam</a></p></div>";
     _gel("content_div").innerHTML = html;

     // The rest of the function parameters, which are optional: the number
     // of entries to return, and whether to return summaries.
     }, entries);
 
  </script>
  ]]> 
  </Content>
</Module>









