<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -30,7 +30,6 @@ helpers do
       request.env[&quot;HTTP_USER_AGENT&quot;] &amp;&amp;
       request.env[&quot;HTTP_USER_AGENT&quot;] =~ user_agents[b]
   end
-
   # which browser
   def whichbrowser
     if browser?(:iphone)
@@ -191,9 +190,9 @@ __END__
             %a#browserchallenge_badge{:href=&gt;'/'+&quot;#{params[:lang]}&quot;, :class=&gt;'browserchallenge_goodbrowser'}= @good_browser
 
     #toggle_body{:style=&gt;&quot;display:none&quot;}
-      %textarea{:rows=&gt;&quot;7&quot;, :cols=&gt;&quot;12&quot;}
-        = &quot;&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt; #browserchallenge_badge { font-family: georgia, serif !important; text-decoration: none !important; font-weight: normal !important; font-size: 180% !important; line-height: 1.3em !important; -moz-border-radius: 3px !important; -webkit-border-radius: 3px !important; padding: .3em !important; color: #fff !important; white-space: nowrap !important; } .browserchallenge_goodbrowser { background-color: #2e7f3a !important; color: #fff !important; background-image: url(http://browserchallenge.com/badge-bg-good.png) !important; background-repeat: repeat-x !important; background-position: center bottom !important; } .browserchallenge_goodbrowser:hover { background-color: #1d6e29 !important; } .browserchallenge_badbrowser { background-color: #7f0100 !important; color: #fff !important; } .browserchallenge_badbrowser:hover { background-color: #6e0000 !important; } &amp;lt;/style&amp;gt; &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;var good_browser='&quot;+@good_browser+&quot;'; var bad_browser='&quot;+@bad_browser+&quot;'; var lang='&quot;+&quot;#{params[:lang]}&quot;+&quot;'&amp;lt;/script&amp;gt;&amp;lt;script src=&amp;quot;http://browserchallenge.com/widget-text.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;noscript&amp;gt;&amp;lt;a href=&amp;quot;http://browserchallenge.com/&quot;+&quot;#{params[:lang]}&quot;+&quot;&amp;quot;&amp;gt;&quot;+@take_challenge+&quot;&amp;lt;/a&amp;gt;&amp;lt;/noscript&amp;gt;&quot;
-
+      %textarea{:rows=&gt;&quot;5&quot;, :cols=&gt;&quot;12&quot;}
+        = &quot;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;var style='inline'; var good_browser='&quot;+@good_browser+&quot;'; var bad_browser='&quot;+@bad_browser+&quot;'; var lang='&quot;+&quot;#{params[:lang]}&quot;+&quot;'&amp;lt;/script&amp;gt;&amp;lt;script src=&amp;quot;http://browserchallenge.com/widget-text.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;noscript&amp;gt;&amp;lt;a href=&amp;quot;http://browserchallenge.com/&quot;+&quot;#{params[:lang]}&quot;+&quot;&amp;quot;&amp;gt;&quot;+@take_challenge+&quot;&amp;lt;/a&amp;gt;&amp;lt;/noscript&amp;gt;&quot;
+    
 @@ main
 !green = #2E7F3A
 !red = #7f0100
@@ -252,12 +251,11 @@ body
       #toggle_body
         :padding 0 1em 1em 1em
       textarea
-        :margin-top 1em
         :width 100%
         :border 1px solid #ccc
         :word-break break-word
         :font-family monaco, monospace
-        :height 10em
+        :height 8em
         :line-height 1.5em
         :font-size 85%
 </diff>
      <filename>goodbrowserbadbrowser.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,11 @@
 var good_browser_link = &quot;&lt;a href='http://browserchallenge.com/&quot;+lang+&quot;' class='browserchallenge_goodbrowser' id='browserchallenge_badge'&gt;&quot;+good_browser+&quot;&lt;/a&gt;&quot;
 var bad_browser_link = &quot;&lt;a href='http://browserchallenge.com/&quot;+lang+&quot;' class='browserchallenge_badbrowser' id='browserchallenge_badge'&gt;&quot;+bad_browser+&quot;&lt;/a&gt;&quot;
 
+if (style='inline') {
+  document.write(
+    '&lt;style type=&quot;text/css&quot;&gt; #browserchallenge_badge { font-family: georgia, serif !important; text-decoration: none !important; font-weight: normal !important; font-size: 180% !important; line-height: 1.3em !important; -moz-border-radius: 3px !important; -webkit-border-radius: 3px !important; padding: .3em !important; color: #fff !important; white-space: nowrap !important; } .browserchallenge_goodbrowser { background-color: #2e7f3a !important; color: #fff !important; background-image: url(http://browserchallenge.com/badge-bg-good.png) !important; background-repeat: repeat-x !important; background-position: center bottom !important; } .browserchallenge_goodbrowser:hover { background-color: #1d6e29 !important; } .browserchallenge_badbrowser { background-color: #7f0100 !important; color: #fff !important; } .browserchallenge_badbrowser:hover { background-color: #6e0000 !important; } &lt;/style&gt;'
+    )
+}
 if (/Safari[\/\s](\d+\.\d+)/.test(navigator.userAgent)){
   document.write(good_browser_link)
 }</diff>
      <filename>public/widget-text.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ad8365c87530dba79bc0ff56961aa4b7eb2f9714</id>
    </parent>
  </parents>
  <author>
    <name>todd</name>
    <email>todd@seaofclouds.com</email>
  </author>
  <url>http://github.com/seaofclouds/good-browser-bad-browser/commit/b72b5a2ec39f419483004287a00a3b0dfc9b241f</url>
  <id>b72b5a2ec39f419483004287a00a3b0dfc9b241f</id>
  <committed-date>2008-10-16T12:29:48-07:00</committed-date>
  <authored-date>2008-10-16T12:29:48-07:00</authored-date>
  <message>compact javascript code with badge style inline and optional</message>
  <tree>d88fa0e407eb265d193469d8038a9b13e7ca5e77</tree>
  <committer>
    <name>todd</name>
    <email>todd@seaofclouds.com</email>
  </committer>
</commit>
