<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>public/javascripts/widget/go.js</filename>
    </added>
    <added>
      <filename>public/javascripts/widget/seinfeld-badge.js</filename>
    </added>
    <added>
      <filename>public/styles/widget/reset.css</filename>
    </added>
    <added>
      <filename>public/styles/widget/screen.css</filename>
    </added>
    <added>
      <filename>public/styles/widget/seinfeld-badge.css</filename>
    </added>
    <added>
      <filename>views/widget.haml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -151,7 +151,7 @@ a{
   @group Calendar Styles
 ------------------------------------------------------------------------------------*/
 
-#calendar{
+#calendar, #widget{
   margin:30px auto 15px auto;
   padding:0 0 20px 0;
   width:700px;
@@ -198,6 +198,21 @@ a{
   color:#ccc;
 }
 
+#widget form {
+  width:700px;
+  margin:0; padding:0;
+}
+
+#widget p{
+  font-size: 12px;
+}
+
+#widget textarea {
+  width:400px;
+  height:150px;
+  margin:0 150px;
+}
+
 tr.dayname th{
   width:100px;
   padding:5px 0;</diff>
      <filename>public/styles/main.css</filename>
    </modified>
    <modified>
      <diff>@@ -29,42 +29,40 @@ get '/' do
 end
 
 get '/~:name.json' do
-  cache_for 5.minutes
   show_user_json
 end
 
+get '/~:name/widget' do
+  cache_for 1.hour
+  @user = Seinfeld::User.first(:login =&gt; params[:name])
+  haml :widget
+end
+
 get '/~:name' do
-  cache_for 5.minutes
   show_user_calendar
 end
 
 get '/~:name/:year.json' do
-  cache_for 5.minutes
   show_user_json
 end
 
 get '/~:name/:year' do
-  cache_for 5.minutes
   show_user_calendar
 end
 
 get '/~:name/:year/:month.json' do
-  cache_for 5.minutes
   show_user_json
 end
 
 get '/~:name/:year/:month' do
-  cache_for 5.minutes
   show_user_calendar
 end
 
 get '/group/:names' do
-  cache_for 5.minutes
   show_group_calendar
 end
 
 get '/group/:names/:year/:month' do
-  cache_for 5.minutes
   show_group_calendar
 end
 
@@ -101,7 +99,7 @@ helpers do
   end
 
   def show_user_calendar
-    response['Cache-Control'] = 'public, max-age=300'
+    cache_for 5.minutes
     @progressions = get_user_and_progressions(6)
     if @user
       haml :show
@@ -111,7 +109,7 @@ helpers do
   end
   
   def show_group_calendar
-    response['Cache-Control'] = 'public, max-age=300'
+    cache_for 5.minutes
     @progressions = Set.new
     @users = params[:names].split(',')
     @users.each do |name|
@@ -122,7 +120,7 @@ helpers do
   end
 
   def show_user_json
-    response['Cache-Control'] = 'public, max-age=300'
+    cache_for 5.minutes
     @progressions = get_user_and_progressions
     json = {:days =&gt; @progressions.map { |p| p.to_s }.sort!, :longest_streak =&gt; @user.longest_streak, :current_streak =&gt; @user.current_streak}.to_json
     if params[:callback]</diff>
      <filename>seinfeld_calendar.rb</filename>
    </modified>
    <modified>
      <diff>@@ -31,4 +31,8 @@
               %span.desc days
       #content.footnote 
         %a{:href =&gt; &quot;http://calendaraboutnothing.com&quot;} Calendar About Nothing
-        by &lt;a href=&quot;http://techno-weenie.net&quot;&gt;rick&lt;/a&gt; and &lt;a href=&quot;http://warpspire.com/&quot;&gt;kyle&lt;/a&gt; / &lt;a href=&quot;http://entp.com&quot;&gt;ENTP&lt;/a&gt;
\ No newline at end of file
+        by &lt;a href=&quot;http://techno-weenie.net&quot;&gt;rick&lt;/a&gt; and &lt;a href=&quot;http://warpspire.com/&quot;&gt;kyle&lt;/a&gt; / &lt;a href=&quot;http://entp.com&quot;&gt;ENTP&lt;/a&gt;
+      #content.footnote 
+        Put the 
+        %a{:href=&gt; &quot;/~#{@user.login}/widget&quot;} javascript widget
+        on your site!
\ No newline at end of file</diff>
      <filename>views/show.haml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>abd89584650347859d3a94ca99fab1c3e0d5f7e3</id>
    </parent>
  </parents>
  <author>
    <name>rick</name>
    <email>technoweenie@gmail.com</email>
  </author>
  <url>http://github.com/entp/seinfeld/commit/47d39958153d2de96b09b74e8dab42c64c100cdd</url>
  <id>47d39958153d2de96b09b74e8dab42c64c100cdd</id>
  <committed-date>2009-04-20T16:55:18-07:00</committed-date>
  <authored-date>2009-04-20T16:55:18-07:00</authored-date>
  <message>add jquery widget, courtesy of github.com/lachlanhardy/seinfeld-badge</message>
  <tree>522130755aa4d87410db4f76862a05d48bc7873c</tree>
  <committer>
    <name>rick</name>
    <email>technoweenie@gmail.com</email>
  </committer>
</commit>
