1
0
Ver Fonte

Fixed profStef tutorial page

Nicolas Petton há 13 anos atrás
pai
commit
8d3df8b476
1 ficheiros alterados com 4 adições e 7 exclusões
  1. 4 7
      learn.html

+ 4 - 7
learn.html

@@ -6,7 +6,7 @@
     <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="./js/amber.js"></script>
+    <script type="text/javascript" src="./amber/js/amber.js"></script>
   </head>
   <body>
 
@@ -18,11 +18,8 @@
       <div id="tutorial"><h2>Loading...</h2></div>
       <script> 
 	function loadTutorial() {
-	  '#tutorial'._asJQuery()._contents_(
-		function(html) {
-			html._with_(smalltalk.TrySmalltalkWidget._new())
-		}
-	  )
+		jQuery('#tutorial').empty();
+		smalltalk.TrySmalltalkWidget._new()._appendToJQuery_(jQuery('#tutorial'));
 	}
       </script>
     </div>
@@ -35,7 +32,7 @@
     </div>
 
     <script type="text/javascript">
-      loadAmber({files: ['TrySmalltalk.js'], prefix: 'examples/trysmalltalk', ready: loadTutorial});
+      loadAmber({files: ['TrySmalltalk.js'], prefix: 'examples/trysmalltalk/js', ready: loadTutorial});
     </script>