index.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Jtalk Smalltalk</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <link rel="stylesheet" type="text/css" href='css/style.css' />
  7. <script type='text/javascript' src='../js/boot.js'></script>
  8. <script type='text/javascript' src='../js/jquery-1.4.4.min.js'></script>
  9. <script type='text/javascript' src='../js/jquery-ui-1.8.9.custom.min.js'></script>
  10. <script type='text/javascript' src='../js/jquery.textarea.js'></script>
  11. <script type='text/javascript' src='../js/kernel.js'></script>
  12. <script type='text/javascript' src='../js/parser.js'></script>
  13. <script type='text/javascript' src='../js/compiler.js'></script>
  14. <script type='text/javascript' src='../js/jQuery.js'></script>
  15. <script type='text/javascript' src='../js/canvas.js'></script>
  16. <script type='text/javascript' src='../js/ide.js'></script>
  17. <script type='text/javascript' src='../js/init.js'></script>
  18. <link rel="stylesheet" type="text/css" href="../css/jtalk.css">
  19. </head>
  20. <body>
  21. <script type="text/javascript">
  22. jQuery(window).scroll(function() {
  23. if(jQuery(window).scrollTop() > 210) {
  24. jQuery('#menu')
  25. .css('position', 'fixed')
  26. .css('top', '0px')
  27. } else {
  28. jQuery('#menu')
  29. .css('position', 'absolute')
  30. .css('top', '210px')
  31. }
  32. });
  33. </script>
  34. <a href="http://github.com/you"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://assets.github.com/img/bec6c51521dcc8148146135149fe06a9cc737577?repo=&url=http%3A%2F%2Fs3.amazonaws.com%2Fgithub%2Fribbons%2Fforkme_left_darkblue_121621.png&path=" alt="Fork me on GitHub"></a>
  35. <div id="wrapper">
  36. <div id="header">
  37. <div class="main">
  38. <img alt="Jtalk, the Smalltalk for web developers" src="images/text_header.png"/>
  39. </div>
  40. </div>
  41. <div id="menu">
  42. <ul>
  43. <li><a href="#header">Overview</a></li> ·
  44. <li><a href="#download">Download</a></li> ·
  45. <li><a href="#documentation">Documentation</a></li> ·
  46. <li><a href="#try-it">Try it!</a></li>
  47. </ul>
  48. </div>
  49. <div id="content">
  50. <div class="main">
  51. <div class="box first">
  52. <div class="content">
  53. <h1><img alt="Jtalk is an implementation of the Smalltalk language that runs on the JavaScript runtime." src="images/title_container1.png"/></h1>
  54. <div class="left">
  55. <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>
  56. <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>
  57. <p>Try a <button onClick="smalltalk.Browser._open()"> Class browser</button> right now!</p>
  58. </div>
  59. <div class="right"><img src="images/screen2.png"/></div>
  60. <div class="clear"></div>
  61. </div>
  62. </div>
  63. <div class="box">
  64. <h2>Client-side usage</h2>
  65. <div class="content">
  66. <p>Load the full Jtalk Smalltalk environment in your page:</p>
  67. <pre>&lt;script&gt; src="jtalk.js" type="text/javascript" &lt;/script&gt;</pre>
  68. <p>Or the runtime JavaScript file only (without the Smalltalk source or compiler):</p>
  69. <pre>&lt;script&gt; src="jtalk-runtime.js" type="text/javascript" &lt;/script&gt;</pre>
  70. <p>Read the <a href="#documentation">documentation</a> to learn more about writing applications in Jtalk.</p>
  71. </div>
  72. </div>
  73. <div class="box last doc" id="documentation">
  74. <h2>Documentation</h2>
  75. <div class="content">
  76. <h3 id="intro">1. Introduction <a href="#intro">&para;</a></h3>
  77. <p class="warning">This documentation is a work in progress.</p>
  78. <p class="information">Jtalk is a young piece of code and evolves quickly. Some features are still incomplete and you may very well encounter bugs.</p>
  79. <p>Jtalk is an implementation of the Smalltalk-80 language. It allows developers to write client-side heavy web applications in Smalltalk. Jtalk includes an integrated development environment with a class browser, workspace and transcript.</p>
  80. <p>Jtalk includes the following features:</p>
  81. <ol>
  82. <li>It is semantically and syntaxically equivalent to <a href="http://www.pharo-project.org">Pharo Smalltalk</a> (the implementation considered as the reference)</li>
  83. <li>It is written in itself and compiles into efficient JavaScript</li>
  84. <li>A canvas API similar to <a href="http://www.seaside.st">Seaside</a> to generate HTML</li>
  85. <li>A <a href="http://www.jquery.com">jQuery</a> binding</li>
  86. </ol>
  87. <h3 id="differences-other-smalltalks">2. Differences with other Smalltalk implementations <a href="#differences-other-smalltalks">&para;</a></h3>
  88. <h3 id="counter-example">3. The counter example <a href="#counter-example">&para;</a></h3>
  89. <p>The following example is the traditional Seaside-like multi-counter application. The buttons at the bottom of each counter increase or decrease the counter.</p>
  90. <div id="counters"></div>
  91. <script type="text/javascript">
  92. jQuery(document).ready(function() {'#counters'._asJQuery()._append_(smalltalk.Counter._new())._append_(smalltalk.Counter._new())});
  93. </script>
  94. <p>Open a <button onclick="smalltalk.Browser._openOn_(smalltalk.Counter);">browser</button> on the <code>Counter</code> class in the <code>Canvas</code> class category.
  95. <p>Each Jtalk widget is a subclass of <code>Widget</code>. A widget is a graphical component. The <code>#renderOn:</code> method is used to generate HTML using the HTML canvas.</p>
  96. <h3 id="html-canvas">4. The HTML canvas <a href="#html-canvas">&para;</a></h3>
  97. <h3 id="widgets">5. Widgets <a href="#widgets">&para;</a></h3>
  98. <h3 id="jquery">6. jQuery <a href="#jquery">&para;</a></h3>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. <div id="footer">
  105. <div class="main">
  106. <p>Copyright © 2011 <a href="mailto:petton.nicolas@gmail.com">Nicolas Petton</a>.</p>
  107. <p>Jtalk is an opensource project sponsored by <a href="http://www.objectfusion.fr">objectfusion</a>.</p>
  108. <p>The design of this website was kindly provided by <a href="mailto:neomie.thirion@gmail.com">Noémie Thirion</a>.</p>
  109. </div>
  110. </div>
  111. </body>
  112. </html>