|
@@ -6,7 +6,26 @@
|
|
|
<link href='http://fonts.googleapis.com/css?family=Istok+Web' rel='stylesheet' type='text/css'>
|
|
|
<meta name="author" content="Nicolas Petton">
|
|
|
<link rel="stylesheet" type="text/css" href="css/profstef.css">
|
|
|
- <script type="text/javascript" src="./amber/js/amber.js"></script>
|
|
|
+
|
|
|
+ <script type='text/javascript' src='amber/support/amber.js'></script>
|
|
|
+ <script type='text/javascript' src='amber/support/requirejs/require.min.js'></script>
|
|
|
+ <script type='text/javascript'>
|
|
|
+ require.config({
|
|
|
+ paths: {
|
|
|
+ 'amber_examples_profstef': 'examples/trysmalltalk/js',
|
|
|
+ 'amber_examples_profstef/_source': 'examples/trysmalltalk/st'
|
|
|
+ }
|
|
|
+ });
|
|
|
+ require(['amber/devel','amber_examples_profstef/TrySmalltalk'], function(smalltalk) {
|
|
|
+ smalltalk.defaultAmdNamespace = 'amber_examples_profstef';
|
|
|
+ smalltalk.initialize();
|
|
|
+
|
|
|
+ jQuery('#tutorial').empty();
|
|
|
+ smalltalk.TrySmalltalkWidget._new()._appendToJQuery_(jQuery('#tutorial'));
|
|
|
+ });
|
|
|
+ </script>
|
|
|
+
|
|
|
+
|
|
|
</head>
|
|
|
<body>
|
|
|
|
|
@@ -16,24 +35,14 @@
|
|
|
<h1>Hey there! Got 5 minutes? I'm prof Stef and I want to teach you Smalltalk. I promise, it won't take long!</h1>
|
|
|
|
|
|
<div id="tutorial"><h2>Loading...</h2></div>
|
|
|
- <script>
|
|
|
- function loadTutorial() {
|
|
|
- jQuery('#tutorial').empty();
|
|
|
- smalltalk.TrySmalltalkWidget._new()._appendToJQuery_(jQuery('#tutorial'));
|
|
|
- }
|
|
|
- </script>
|
|
|
</div>
|
|
|
|
|
|
<div id="footer">
|
|
|
<div class="main">
|
|
|
- <p>Copyright © 2011 - 2013 <a href="http://www.nicolas-petton.fr/">Nicolas Petton</a> and <a href="https://github.com/amber-smalltalk/amber/contributors">Amber contributors</a>. The content of this website in licensed under <a href="http://creativecommons.org/licenses/by-nc/3.0/">CC-BY-NC 3.0</a>.</p>
|
|
|
+ <p>Copyright © 2011 <a href="http://www.nicolas-petton.fr/">Nicolas Petton</a>. The content of this website in licensed under <a href="http://creativecommons.org/licenses/by-nc/3.0/">CC-BY-NC 3.0</a>.</p>
|
|
|
+ <p>Amber is an opensource project sponsored by <a href="http://www.objectfusion.fr/">objectfusion</a>.</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <script type="text/javascript">
|
|
|
- loadAmber({files: ['TrySmalltalk.js'], prefix: '../learn/js', ready: loadTutorial});
|
|
|
- </script>
|
|
|
-
|
|
|
-
|
|
|
</body>
|
|
|
</html>
|