<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -30,6 +30,10 @@ input {
   margin-bottom: 0.5em;
 }
 
+#version {
+  font-size: 0.5em;
+}
+
 #wrapper {
   border: 3px solid #000;
   margin: -1.3em 6.5em;
@@ -56,7 +60,7 @@ input {
 
 #sidebar {
   position: fixed;
-  top: 72px;
+  top: 5px;
   right: 5px;
 
   border: 3px dashed #888;</diff>
      <filename>examples/html/application.css</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,12 @@
-// Shorthand helper.
+// Shorthand helper to grab an element by id.
 function element(id) {
   return document.getElementById(id);
 }
 
 // This function will be called once the DOM is loaded.
 window.onload = function() {
+  element('version').innerHTML = 'v' + JsChat.version;
+
   // 'Database' to store the messages; with a few test messages.
   var allMessages = [
     'Robot 1: Kill all humans.',</diff>
      <filename>examples/html/application.js</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@
 
   &lt;body&gt;
     &lt;div id=&quot;header&quot;&gt;
-      &lt;h1&gt;js-chat&lt;/h1&gt;
+      &lt;h1&gt;js-chat &lt;span id=&quot;version&quot;&gt;&lt;/span&gt;&lt;/h1&gt;
     &lt;/div&gt;
 
     &lt;div id=&quot;wrapper&quot;&gt;</diff>
      <filename>examples/html/index.html</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,7 @@
 // The jQuery shit.
 $(document).ready(function() {
+  $('#version').html('v' + JsChat.version);
+
   // Create a new server instance.
   var server = new Server();
 </diff>
      <filename>examples/sinatra/public/javascript/application.js</filename>
    </modified>
    <modified>
      <diff>@@ -15,6 +15,10 @@ h1 {
   text-align: left;
 }
 
+#version {
+  font-size: 0.5em;
+}
+
 #wrapper {
   border: 3px solid black;
   margin: -1.3em 6.5em;</diff>
      <filename>examples/sinatra/public/styles/application.css</filename>
    </modified>
    <modified>
      <diff>@@ -1,22 +1,18 @@
-&lt;h1&gt;js-chat&lt;/h1&gt;
+&lt;div id=&quot;actions&quot;&gt;
+  &lt;form id=&quot;chat-form&quot;&gt;
+    &lt;div id=&quot;person&quot;&gt;
+      &lt;label for=&quot;person-name&quot;&gt;Your Name:&lt;/label&gt;
+      &lt;input id=&quot;person-name&quot; name=&quot;message[name]&quot; type=&quot;text&quot; /&gt;
+    &lt;/div&gt;
 
-&lt;div id=&quot;wrapper&quot;&gt;
-  &lt;div id=&quot;actions&quot;&gt;
-    &lt;form id=&quot;chat-form&quot;&gt;
-      &lt;div id=&quot;person&quot;&gt;
-        &lt;label for=&quot;person-name&quot;&gt;Your Name:&lt;/label&gt;
-        &lt;input id=&quot;person-name&quot; name=&quot;message[name]&quot; type=&quot;text&quot; /&gt;
-      &lt;/div&gt;
-
-      &lt;textarea id=&quot;chat-log&quot; disabled&gt;&lt;%= @messages.map { |m| m.to_s }.join(&quot;\n&quot;) %&gt;
+    &lt;textarea id=&quot;chat-log&quot; disabled&gt;&lt;%= @messages.map { |m| m.to_s }.join(&quot;\n&quot;) %&gt;
 &lt;/textarea&gt;
 
-      &lt;label for=&quot;chat-input&quot;&gt;Say:&lt;/label&gt;
-      &lt;input id=&quot;chat-input&quot; name=&quot;message[body]&quot; type=&quot;text&quot; /&gt;
+    &lt;label for=&quot;chat-input&quot;&gt;Say:&lt;/label&gt;
+    &lt;input id=&quot;chat-input&quot; name=&quot;message[body]&quot; type=&quot;text&quot; /&gt;
 
-      &lt;input id=&quot;chat-submit&quot; type=&quot;submit&quot; value=&quot;Send&quot; onclick=&quot;; return false;&quot; /&gt;
-      &lt;input id=&quot;chat-clear&quot; type=&quot;reset&quot; value=&quot;Clear&quot; onclick=&quot;; return false;&quot; /&gt;
-      &lt;input id=&quot;refresh-chat&quot; type=&quot;submit&quot; value=&quot;Refresh&quot; onclick=&quot;; return false;&quot; /&gt;
-    &lt;/form&gt;
-  &lt;/div&gt;
+    &lt;input id=&quot;chat-submit&quot; type=&quot;submit&quot; value=&quot;Send&quot; onclick=&quot;; return false;&quot; /&gt;
+    &lt;input id=&quot;chat-clear&quot; type=&quot;reset&quot; value=&quot;Clear&quot; onclick=&quot;; return false;&quot; /&gt;
+    &lt;input id=&quot;refresh-chat&quot; type=&quot;submit&quot; value=&quot;Refresh&quot; onclick=&quot;; return false;&quot; /&gt;
+  &lt;/form&gt;
 &lt;/div&gt;</diff>
      <filename>examples/sinatra/views/home.erb</filename>
    </modified>
    <modified>
      <diff>@@ -10,6 +10,12 @@
   &lt;/head&gt;
 
   &lt;body&gt;
-    &lt;%= yield %&gt;
+    &lt;div id=&quot;header&quot;&gt;
+      &lt;h1&gt;js-chat &lt;span id=&quot;version&quot;&gt;&lt;/span&gt;&lt;/h1&gt;
+    &lt;/div&gt;
+
+    &lt;div id=&quot;wrapper&quot;&gt;
+      &lt;%= yield %&gt;
+    &lt;/div&gt;
   &lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>examples/sinatra/views/layout.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2c46ff2095fd2858f7c79f02a683981b57d99993</id>
    </parent>
  </parents>
  <author>
    <name>Dale Campbell</name>
    <email>dale@save-state.net</email>
  </author>
  <url>http://github.com/Oshuma/js-chat/commit/8fbf2be9ed0899c6b825a7616a0c3e7a93dbf593</url>
  <id>8fbf2be9ed0899c6b825a7616a0c3e7a93dbf593</id>
  <committed-date>2009-07-03T00:47:39-07:00</committed-date>
  <authored-date>2009-07-03T00:47:39-07:00</authored-date>
  <message>added version</message>
  <tree>7e60fa94c8190c660f382b275397900a63463325</tree>
  <committer>
    <name>Dale Campbell</name>
    <email>dale@save-state.net</email>
  </committer>
</commit>
