Browse Source

Flattr button

Nicolas Petton 14 years ago
parent
commit
34de36826c
2 changed files with 24 additions and 0 deletions
  1. 12 0
      _site/index.html
  2. 12 0
      index.html

+ 12 - 0
_site/index.html

@@ -69,6 +69,18 @@ t: 0; border: 0;" src="https://assets.github.com/img/bec6c51521dcc8148146135149f
       <p>Jtalk is an implementation of the  <a href="http://en.wikipedia.org/wiki/Smalltalk">Smalltalk</a> language that runs on top of the <a href="http://en.wikipedia.org/wiki/Javascript">JavaScript</a> runtime. It is designed to make client-side development faster and easier.</p>
       <p>Jtalk is written in itself, including the parser and compiler. Jtalk compiles into efficient JavaScript, mapping one-to-one with the equivalent JavaScript. There is no interpretation at runtime.</p>
       <p>Try a <button onClick="smalltalk.Browser._open()"> Class browser</button> right now!</p>
+      <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.6/load.js?mode=auto';
+        t.parentNode.insertBefore(s, t);
+    })();
+/* ]]> */
+      </script>
+      <p>If you enjoy my work on Jtalk, you can <a class="FlattrButton" style="display:none;" rev="flattr" href="http://jtalk-project.org"></a> the project.</p>
     </div>
     <div class="right"><img src="images/screen2.png"/></div>
     <div class="clear"></div>

+ 12 - 0
index.html

@@ -10,6 +10,18 @@ title: Jtalk Smalltalk
       <p>Jtalk is an implementation of the  <a href="http://en.wikipedia.org/wiki/Smalltalk">Smalltalk</a> language that runs on top of the <a href="http://en.wikipedia.org/wiki/Javascript">JavaScript</a> runtime. It is designed to make client-side development faster and easier.</p>
       <p>Jtalk is written in itself, including the parser and compiler. Jtalk compiles into efficient JavaScript, mapping one-to-one with the equivalent JavaScript. There is no interpretation at runtime.</p>
       <p>Try a <button onClick="smalltalk.Browser._open()"> Class browser</button> right now!</p>
+      <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.6/load.js?mode=auto';
+        t.parentNode.insertBefore(s, t);
+    })();
+/* ]]> */
+      </script>
+      <p>If you enjoy my work on Jtalk, you can <a class="FlattrButton" style="display:none;" rev="flattr" href="http://jtalk-project.org"></a> the project.</p>
     </div>
     <div class="right"><img src="images/screen2.png"/></div>
     <div class="clear"></div>