<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>_attachments/style/iphone.css</filename>
    </added>
    <added>
      <filename>templates/toast.html</filename>
    </added>
    <added>
      <filename>validate_doc_update.js</filename>
    </added>
    <added>
      <filename>views/authors/map.js</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -3,21 +3,27 @@
   &lt;head&gt;
     &lt;title&gt;Welcome to Toast&lt;/title&gt;
     &lt;link rel=&quot;stylesheet&quot; href=&quot;style/main.css&quot; type=&quot;text/css&quot;&gt;
+    &lt;link media=&quot;only screen and (max-device-width: 480px)&quot; 
+        href=&quot;style/iphone.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot; /&gt;      
   &lt;/head&gt;
   &lt;body&gt;
     &lt;h1&gt;Toast&lt;/h1&gt;
-    &lt;p&gt;Go to the index &lt;a href=&quot;index.html&quot;&gt;to make new channels or browse to others.&lt;/a&gt; &lt;a href=&quot;http://github.com/jchris/toast&quot;&gt;Download the Toast source code at Github.&lt;/a&gt;&lt;/p&gt;
-    &lt;form id=&quot;new_message&quot; action=&quot;#&quot;&gt;
-      &lt;p&gt;&lt;label for=&quot;author-name&quot;&gt;Name&lt;/label&gt;
-        &lt;input type=&quot;text&quot; name=&quot;author-name&quot; value=&quot;&quot; id=&quot;author-name&quot;&gt;
-        &lt;label for=&quot;author-email&quot;&gt;Email (&lt;em&gt;for &lt;a href=&quot;http://gravatar.com&quot;&gt;Gravatar&lt;/a&gt;&lt;/em&gt;)&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;author-email&quot; value=&quot;&quot; id=&quot;author-email&quot;&gt;
-        
-      &lt;/p&gt;
-      &lt;p&gt;&lt;label for=&quot;message&quot;&gt;Message&lt;/label&gt; &lt;input type=&quot;text&quot; name=&quot;message&quot; value=&quot;&quot; id=&quot;message&quot; size=140&gt;
-      &lt;/p&gt;
-      &lt;p&gt;&lt;input type=&quot;submit&quot; value=&quot;Go &amp;rarr;&quot;&gt;&lt;/p&gt;
-    &lt;/form&gt;
-    &lt;ul id=&quot;messages&quot;&gt;&lt;/ul&gt;
+    &lt;div id=&quot;sidebar&quot;&gt;
+      &lt;p&gt;Go to the index &lt;a href=&quot;index.html&quot;&gt;to make new channels or find others.&lt;/a&gt; Download the &lt;a href=&quot;http://github.com/jchris/toast&quot;&gt;Toast source code at Github.&lt;/a&gt;&lt;/p&gt;
+    &lt;/div&gt;
+    &lt;div id=&quot;chat&quot;&gt;
+      &lt;form id=&quot;new_message&quot; action=&quot;#&quot;&gt;
+        &lt;p&gt;&lt;label for=&quot;author-name&quot;&gt;Name&lt;/label&gt;
+          &lt;input type=&quot;text&quot; name=&quot;author-name&quot; value=&quot;&quot; id=&quot;author-name&quot;&gt;
+          &lt;label for=&quot;author-email&quot;&gt;Email (&lt;em&gt;for &lt;a href=&quot;http://gravatar.com&quot;&gt;Gravatar&lt;/a&gt;&lt;/em&gt;)&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;author-email&quot; value=&quot;&quot; id=&quot;author-email&quot;&gt;
+
+        &lt;/p&gt;
+        &lt;p&gt;&lt;label for=&quot;message&quot;&gt;Message&lt;/label&gt; &lt;input type=&quot;text&quot; name=&quot;message&quot; value=&quot;&quot; id=&quot;message&quot; size=90 autocomplete=&quot;off&quot;&gt;
+        &lt;/p&gt;
+        &lt;p&gt;&lt;input type=&quot;submit&quot; value=&quot;Go &amp;rarr;&quot;&gt;&lt;/p&gt;
+      &lt;/form&gt;
+      &lt;ul id=&quot;messages&quot;&gt;&lt;/ul&gt;
+    &lt;/div&gt;
   &lt;/body&gt;
   &lt;script src=&quot;/_utils/script/json2.js&quot;&gt;&lt;/script&gt;
   &lt;script src=&quot;/_utils/script/jquery.js&quot;&gt;&lt;/script&gt;
@@ -37,6 +43,15 @@
         });
       };
       
+      function escapeHTML(st) {                                       
+              return(                                                                 
+                  st.replace(/&amp;/g,'&amp;amp;').                                         
+                      replace(/&gt;/g,'&amp;gt;').                                           
+                      replace(/&lt;/g,'&amp;lt;').                                           
+                      replace(/&quot;/g,'&amp;quot;')                                         
+              );                                                                     
+          };
+      
       var cname = unescape(document.location.hash.replace(/^#/,''));
       $('h1').text('Toast - ' + cname);
       function refreshView() {
@@ -51,9 +66,9 @@
             var m = row.value;
             return '&lt;li&gt;'
               + '&lt;img class=&quot;gravatar&quot; src=&quot;http://www.gravatar.com/avatar/'+row.value.author.gravatar+'.jpg?s=40&amp;d=identicon&quot;/&gt;&lt;span class=&quot;say&quot;&gt;&lt;strong&gt;'
-              + m.author.name.replace(/&lt;(.|\n)*?&gt;/g, '')
+              + escapeHTML(m.author.name)
               + &quot;&lt;/strong&gt;: &quot;
-              + linkify(m.body.replace(/&lt;(.|\n)*?&gt;/g, ''))
+              + linkify(escapeHTML(m.body))
               + '&lt;/span&gt;&lt;br class=&quot;clear&quot;/&gt;&lt;/li&gt;';
           }).join(''));
         }});
@@ -80,12 +95,18 @@
       });
       // this is where we hang on the continuous _changes api
       // get the raw xhr
-      c_xhr = jQuery.ajaxSettings.xhr();
-      c_xhr.open(&quot;GET&quot;, app.db.uri+&quot;_changes?continuous=true&quot;, true);
-      c_xhr.send(&quot;&quot;);
-      c_xhr.onreadystatechange = function() {
-        refreshView();
-      };
+      refreshView();
+      app.db.info({success: function(json) {
+        c_xhr = jQuery.ajaxSettings.xhr();
+        c_xhr.open(&quot;GET&quot;, app.db.uri+&quot;_changes?continuous=true&amp;since=&quot;+json.update_seq, true);
+        c_xhr.send(&quot;&quot;);
+        c_xhr.onreadystatechange = function() {
+          refreshView();
+        };        
+      }})
+      
+
+
     });
   &lt;/script&gt;
 &lt;/html&gt;</diff>
      <filename>_attachments/channel.html</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,17 @@
 /* add styles here */
 
+
 body {
-  font-family:optima;
+  font-family:Optima, &quot;Palatino Linotype&quot;, Garamond, Georgia, serif;
+}
+
+#chat {
+  width:65%;
+}
+
+#sidebar {
+  float:right;
+  width:30%;
 }
 
 ul#messages {</diff>
      <filename>_attachments/style/main.css</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>24b5dbf70a9dece82428da5eb78611132c849151</id>
    </parent>
  </parents>
  <author>
    <name>Chris Anderson</name>
    <email>jchris@grabb.it</email>
  </author>
  <url>http://github.com/jchris/toast/commit/0afaab24357d94147dfb08e70ed86a687db63e5c</url>
  <id>0afaab24357d94147dfb08e70ed86a687db63e5c</id>
  <committed-date>2009-05-23T18:05:19-07:00</committed-date>
  <authored-date>2009-05-23T18:05:19-07:00</authored-date>
  <message>clean up the css a little</message>
  <tree>5a35c41349d37d22bf6c5ea9672b37722e370c96</tree>
  <committer>
    <name>Chris Anderson</name>
    <email>jchris@grabb.it</email>
  </committer>
</commit>
