83a58c156e01

Add Flattr and GA to the page.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 29 Oct 2010 16:33:43 -0400
parents 42f7878f8994
children 84b85b489fc4
branches/tags (none)
files site/index.html

Changes

--- a/site/index.html	Fri Oct 29 13:35:31 2010 -0400
+++ b/site/index.html	Fri Oct 29 16:33:43 2010 -0400
@@ -5,11 +5,40 @@
 
         <link rel="stylesheet/less" href="style.less" type="text/css">
         <script src="less.js" type="text/javascript"></script>
+
+        <script type="text/javascript">
+        /* <![CDATA[ */
+            (function() {
+                var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
+                
+                s.type = 'text/javascript';
+                s.async = true;
+                s.src = 'http://api.flattr.com/js/0.5.0/load.js?mode=auto';
+                
+                t.parentNode.insertBefore(s, t);
+            })();
+        /* ]]> */
+        </script>
+
+        <script type="text/javascript">
+          var _gaq = _gaq || [];
+          _gaq.push(['_setAccount', 'UA-15328874-3']);
+          _gaq.push(['_trackPageview']);
+
+          (function() {
+            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+          })();
+        </script>
     </head>
+
     <body>
         <div id="repos">
             <a href="http://bitbucket.org/sjl/gundo.vim/">Mercurial Repository</a><br/>
-            <a href="http://github.com/sjl/gundo.vim/">Git Repository</a>
+            <a href="http://github.com/sjl/gundo.vim/">Git Repository</a><br/>
+
+            <a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://bitbucket.org/sjl/gundo.vim/"></a>
         </div>
         <div class="wrap">
             <header>