<?xml version="1.0" encoding="UTF-8"?>
<Module>

<ModulePrefs title="WordPress.com RSS Feed"
title_url="http://hosting.gmodules.com/ig/gadgets/file/117695765658379330528/WordPress-dot-comRSSFeed.xml"
description="An experimental gadget using the OpenSocial specs. No guarantees — I'm just playing around. Gadget takes a tag and displays a
feed from WordPress.com. Uses a third-party server to parse the feed."
height="400"
author="Sarah Maddox"
scrolling="true">
    <Require feature="dynamic-height"/>
</ModulePrefs>


<UserPref name="colour"
display_name="Background colour"
datatype="string"
default_value="#ffffff">
</UserPref>


<UserPref name="username"
display_name="Your name"
datatype="string"
default_value="mate">
</UserPref>

<Content type="html"><![CDATA[

<style type="text/css" media="all">

/* With thanks to Feed2JS for the JavaScript and hosting of the RSS output */
/* http://itde.vccs.edu/rss2js/build.php */


/* begin styles for RSS Feed */



.rss_box {

margin: 1em;

width: 250px;

background-color: #CCCCFF;

border: 1px solid #9B72CF;



}

.rss_items {

margin-top:0px;

padding:0.5em; 0.5em;

margin-left:0px;

color:#000000;

}

p.rss_title {padding:0.5em;}

.rss_title {

text-decoration: none;

font-family: verdana, sans-serif;

font-size: 85%;

background-color:#A4A4FF;

color:#ffffff;

font-weight:bold;

margin: 0px;

padding:0em;

text-align: left;

}



.rss_item {

font-family: verdana, arial, sans-serif;

font-size: 0.75em;

font-weight : normal;

list-style:none;

padding-bottom:1em;

}



.rss_item a {

text-decoration : underline;

color:blue;

font-size: 105%;

font-weight:bold;

font-family:arial, sans-serif;

}



.rss_item a:visited {

color:purple;

}



.rss_date {

font-size: 85%;

font-weight : normal;

color: #F60;

}


</style>

<script type="text/javascript">
var prefs = new _IG_Prefs(__MODULE_ID__);
var myColour = prefs.getString("colour");
var myName = prefs.getString("username");



// Set the background colour according to the userpref
document.body.style.backgroundColor = myColour;

// Get current time
var today = new Date();
var time = today.getTime();

// Based on the time of day, display an appropriate greeting
var hour = today.getHours();
var salutation = "afternoon";
if (hour < 12) {
salutation = "morning";
} else if (hour > 17) {
salutation = "evening";}

// Display a greeting based on the myname userpref
document.write("<br><FONT SIZE=4 COLOR=PURPLE>Good " + salutation + ", " + myName + ":)<br><br></FONT>");


</script>

Here are the recent posts from WordPress.com about technical writing.

<script src="http://itde.vccs.edu/rss2js/feed2js.php?src=http%3A%2F%2Fen.wordpress.com%2Ftag%2Ftechnical-writing%2Ffeed%2F&chan=y&num=15&desc=1&date=y&targ=y" type="text/javascript"></script>

<script>gadgets.window.adjustHeight()</script>

<noscript>
<a href="http://itde.vccs.edu/rss2js/feed2js.php?src=http%3A%2F%2Fen.wordpress.com%2Ftag%2Ftechnical-writing%2Ffeed%2F&chan=y&num=15&desc=1&date=y&targ=y&html=y">View RSS feed</a>
</noscript>

]]></Content>
</Module>
