Presentation.deploy.js 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536
  1. smalltalk.addClass('Slide', smalltalk.Widget, ['presentation'], 'Presentation');
  2. smalltalk.addMethod(
  3. '_presentation',
  4. smalltalk.method({
  5. selector: 'presentation',
  6. fn: function () {
  7. var self = this;
  8. return self['@presentation'];
  9. return self;
  10. }
  11. }),
  12. smalltalk.Slide);
  13. smalltalk.addMethod(
  14. '_presentation_',
  15. smalltalk.method({
  16. selector: 'presentation:',
  17. fn: function (aPresentation) {
  18. var self = this;
  19. self['@presentation'] = aPresentation;
  20. return self;
  21. }
  22. }),
  23. smalltalk.Slide);
  24. smalltalk.addMethod(
  25. '_id',
  26. smalltalk.method({
  27. selector: 'id',
  28. fn: function () {
  29. var self = this;
  30. smalltalk.send(self, "_subclassResponsibility", []);
  31. return self;
  32. }
  33. }),
  34. smalltalk.Slide);
  35. smalltalk.addMethod(
  36. '_cssClass',
  37. smalltalk.method({
  38. selector: 'cssClass',
  39. fn: function () {
  40. var self = this;
  41. return "slide";
  42. return self;
  43. }
  44. }),
  45. smalltalk.Slide);
  46. smalltalk.addMethod(
  47. '_backgroundColor',
  48. smalltalk.method({
  49. selector: 'backgroundColor',
  50. fn: function () {
  51. var self = this;
  52. return unescape("%23555");
  53. return self;
  54. }
  55. }),
  56. smalltalk.Slide);
  57. smalltalk.addMethod(
  58. '_show',
  59. smalltalk.method({
  60. selector: 'show',
  61. fn: function (){
  62. var self=this;
  63. (($receiver = smalltalk.send(self, "_backgroundColor", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(smalltalk.send((typeof window == 'undefined' ? nil : window), "_jQuery_", [unescape("%23slides")]), "_css_color_", ["background", smalltalk.send(self, "_backgroundColor", [])]);})() : nil;
  64. smalltalk.send(smalltalk.send((typeof window == 'undefined' ? nil : window), "_jQuery_", [".slide"]), "_hide_options_duration_", [smalltalk.send(smalltalk.send(self, "_presentation", []), "_slideTransition", []), [], (300)]);
  65. smalltalk.send(smalltalk.send((typeof window == 'undefined' ? nil : window), "_jQuery_", [smalltalk.send(unescape("%23"), "__comma", [smalltalk.send(self, "_id", [])])]), "_show_options_duration_", [smalltalk.send(smalltalk.send(self, "_presentation", []), "_slideTransition", []), [], (300)]);
  66. return self;}
  67. }),
  68. smalltalk.Slide);
  69. smalltalk.addMethod(
  70. '_renderOn_',
  71. smalltalk.method({
  72. selector: 'renderOn:',
  73. fn: function (html) {
  74. var self = this;
  75. (function ($rec) {smalltalk.send($rec, "_class_", [smalltalk.send(self, "_cssClass", [])]);smalltalk.send($rec, "_id_", [smalltalk.send(self, "_id", [])]);return smalltalk.send($rec, "_with_", [function () {smalltalk.send(self, "_renderSlideOn_", [html]);return smalltalk.send(self, "_renderMetaOn_", [html]);}]);}(smalltalk.send(html, "_div", [])));
  76. return self;
  77. }
  78. }),
  79. smalltalk.Slide);
  80. smalltalk.addMethod(
  81. '_renderSlideOn_',
  82. smalltalk.method({
  83. selector: 'renderSlideOn:',
  84. fn: function (html) {
  85. var self = this;
  86. return self;
  87. }
  88. }),
  89. smalltalk.Slide);
  90. smalltalk.addMethod(
  91. '_renderMetaOn_',
  92. smalltalk.method({
  93. selector: 'renderMetaOn:',
  94. fn: function (html) {
  95. var self = this;
  96. (function ($rec) {smalltalk.send($rec, "_id_", ["meta"]);return smalltalk.send($rec, "_with_", [function () {(function ($rec) {smalltalk.send($rec, "_class_", ["title"]);return smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(self, "_presentation", []), "_title", [])]);}(smalltalk.send(html, "_p", [])));(function ($rec) {smalltalk.send($rec, "_class_", ["description"]);return smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(self, "_presentation", []), "_description", [])]);}(smalltalk.send(html, "_p", [])));(function ($rec) {smalltalk.send($rec, "_class_", ["author"]);smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(self, "_presentation", []), "_author", [])]);return smalltalk.send($rec, "_href_", [smalltalk.send("mailto:", "__comma", [smalltalk.send(smalltalk.send(self, "_presentation", []), "_email", [])])]);}(smalltalk.send(html, "_a", [])));return function ($rec) {smalltalk.send($rec, "_class_", ["url"]);smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(self, "_presentation", []), "_url", [])]);return smalltalk.send($rec, "_href_", [smalltalk.send(smalltalk.send(self, "_presentation", []), "_url", [])]);}(smalltalk.send(html, "_a", []));}]);}(smalltalk.send(html, "_div", [])));
  97. return self;
  98. }
  99. }),
  100. smalltalk.Slide);
  101. smalltalk.addMethod(
  102. '_title',
  103. smalltalk.method({
  104. selector: 'title',
  105. fn: function (){
  106. var self=this;
  107. return smalltalk.send(self, "_id", []);
  108. return self;}
  109. }),
  110. smalltalk.Slide);
  111. smalltalk.addMethod(
  112. '_on_',
  113. smalltalk.method({
  114. selector: 'on:',
  115. fn: function (aPresentation) {
  116. var self = this;
  117. return function ($rec) {smalltalk.send($rec, "_presentation_", [aPresentation]);return smalltalk.send($rec, "_yourself", []);}(smalltalk.send(self, "_new", []));
  118. return self;
  119. }
  120. }),
  121. smalltalk.Slide.klass);
  122. smalltalk.addClass('Presentation', smalltalk.Widget, ['currentSlide', 'slides'], 'Presentation');
  123. smalltalk.addMethod(
  124. '_title',
  125. smalltalk.method({
  126. selector: 'title',
  127. fn: function () {
  128. var self = this;
  129. return smalltalk.send(smalltalk.send(self, "_class", []), "_title", []);
  130. return self;
  131. }
  132. }),
  133. smalltalk.Presentation);
  134. smalltalk.addMethod(
  135. '_author',
  136. smalltalk.method({
  137. selector: 'author',
  138. fn: function () {
  139. var self = this;
  140. return "John Smith";
  141. return self;
  142. }
  143. }),
  144. smalltalk.Presentation);
  145. smalltalk.addMethod(
  146. '_url',
  147. smalltalk.method({
  148. selector: 'url',
  149. fn: function () {
  150. var self = this;
  151. return unescape("http%3A//jtalk-project.org");
  152. return self;
  153. }
  154. }),
  155. smalltalk.Presentation);
  156. smalltalk.addMethod(
  157. '_description',
  158. smalltalk.method({
  159. selector: 'description',
  160. fn: function () {
  161. var self = this;
  162. return "A presentation written in Jtalk";
  163. return self;
  164. }
  165. }),
  166. smalltalk.Presentation);
  167. smalltalk.addMethod(
  168. '_email',
  169. smalltalk.method({
  170. selector: 'email',
  171. fn: function () {
  172. var self = this;
  173. return unescape("john@smith.com");
  174. return self;
  175. }
  176. }),
  177. smalltalk.Presentation);
  178. smalltalk.addMethod(
  179. '_slides',
  180. smalltalk.method({
  181. selector: 'slides',
  182. fn: function () {
  183. var self = this;
  184. ($receiver = self['@slides']) == nil || $receiver == undefined ? function () {return smalltalk.send(self, "_initSlides", []);}() : $receiver;
  185. return self['@slides'];
  186. return self;
  187. }
  188. }),
  189. smalltalk.Presentation);
  190. smalltalk.addMethod(
  191. '_slideClasses',
  192. smalltalk.method({
  193. selector: 'slideClasses',
  194. fn: function () {
  195. var self = this;
  196. return smalltalk.send(self, "_subclassResponsibility", []);
  197. return self;
  198. }
  199. }),
  200. smalltalk.Presentation);
  201. smalltalk.addMethod(
  202. '_currentSlide',
  203. smalltalk.method({
  204. selector: 'currentSlide',
  205. fn: function () {
  206. var self = this;
  207. return self['@currentSlide'];
  208. return self;
  209. }
  210. }),
  211. smalltalk.Presentation);
  212. smalltalk.addMethod(
  213. '_currentSlide_',
  214. smalltalk.method({
  215. selector: 'currentSlide:',
  216. fn: function (aSlide) {
  217. var self = this;
  218. self['@currentSlide'] = aSlide;
  219. return self;
  220. }
  221. }),
  222. smalltalk.Presentation);
  223. smalltalk.addMethod(
  224. '_slideTransition',
  225. smalltalk.method({
  226. selector: 'slideTransition',
  227. fn: function () {
  228. var self = this;
  229. return "fade";
  230. return self;
  231. }
  232. }),
  233. smalltalk.Presentation);
  234. smalltalk.addMethod(
  235. '_style',
  236. smalltalk.method({
  237. selector: 'style',
  238. fn: function () {
  239. var self = this;
  240. return "";
  241. return self;
  242. }
  243. }),
  244. smalltalk.Presentation);
  245. smalltalk.addMethod(
  246. '_nextSlide',
  247. smalltalk.method({
  248. selector: 'nextSlide',
  249. fn: function (){
  250. var self=this;
  251. var next=nil;
  252. (($receiver = smalltalk.send(self, "_currentSlide", [])) != nil && $receiver != undefined) ? (function(){next=smalltalk.send(smalltalk.send(self, "_slides", []), "_at_ifAbsent_", [((($receiver = smalltalk.send(self, "_currentSlideIndex", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])), (function(){return nil;})]);return (($receiver = next) != nil && $receiver != undefined) ? (function(){self['@currentSlide']=next;return smalltalk.send(next, "_show", []);})() : nil;})() : nil;
  253. return self;}
  254. }),
  255. smalltalk.Presentation);
  256. smalltalk.addMethod(
  257. '_showCurrentSlide',
  258. smalltalk.method({
  259. selector: 'showCurrentSlide',
  260. fn: function () {
  261. var self = this;
  262. ($receiver = smalltalk.send(self, "_currentSlide", [])) != nil &&
  263. $receiver != undefined ? function () {smalltalk.send(smalltalk.send(".slide", "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(smalltalk.send(unescape("%23"), "__comma", [smalltalk.send(smalltalk.send(self, "_currentSlide", []), "_id", [])]), "_asJQuery", []), "_show", []);return smalltalk.send(smalltalk.send("title", "_asJQuery", []), "_text_", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_title", []), "__comma", [unescape("%20-%20")]), "__comma", [smalltalk.send(smalltalk.send(self, "_currentSlide", []), "_id", [])])]);}() : nil;
  264. return self;
  265. }
  266. }),
  267. smalltalk.Presentation);
  268. smalltalk.addMethod(
  269. '_previousSlide',
  270. smalltalk.method({
  271. selector: 'previousSlide',
  272. fn: function (){
  273. var self=this;
  274. var next=nil;
  275. (($receiver = smalltalk.send(self, "_currentSlide", [])) != nil && $receiver != undefined) ? (function(){next=smalltalk.send(smalltalk.send(self, "_slides", []), "_at_ifAbsent_", [((($receiver = smalltalk.send(self, "_currentSlideIndex", [])).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), (function(){return nil;})]);return (($receiver = next) != nil && $receiver != undefined) ? (function(){self['@currentSlide']=next;return smalltalk.send(next, "_show", []);})() : nil;})() : nil;
  276. return self;}
  277. }),
  278. smalltalk.Presentation);
  279. smalltalk.addMethod(
  280. '_initSlides',
  281. smalltalk.method({
  282. selector: 'initSlides',
  283. fn: function () {
  284. var self = this;
  285. self['@slides'] = smalltalk.send(smalltalk.send(self, "_slideClasses", []), "_collect_", [function (each) {return smalltalk.send(each, "_on_", [self]);}]);
  286. return self;
  287. }
  288. }),
  289. smalltalk.Presentation);
  290. smalltalk.addMethod(
  291. '_renderOn_',
  292. smalltalk.method({
  293. selector: 'renderOn:',
  294. fn: function (html) {
  295. var self = this;
  296. (function ($rec) {smalltalk.send($rec, "_type_", [unescape("text/css")]);return smalltalk.send($rec, "_with_", [smalltalk.send(self, "_style", [])]);}(smalltalk.send(html, "_style", [])));
  297. (function ($rec) {smalltalk.send($rec, "_id_", ["slides"]);return smalltalk.send($rec, "_with_", [function () {return smalltalk.send(self, "_renderSlidesOn_", [html]);}]);}(smalltalk.send(html, "_div", [])));
  298. return self;
  299. }
  300. }),
  301. smalltalk.Presentation);
  302. smalltalk.addMethod(
  303. '_renderSlidesOn_',
  304. smalltalk.method({
  305. selector: 'renderSlidesOn:',
  306. fn: function (html) {
  307. var self = this;
  308. smalltalk.send(smalltalk.send(self, "_slides", []), "_do_", [function (each) {return smalltalk.send(each, "_renderOn_", [html]);}]);
  309. ($receiver = self['@currentSlide']) == nil ||
  310. $receiver == undefined ? function () {return self['@currentSlide'] = smalltalk.send(smalltalk.send(self, "_slides", []), "_first", []);}() : $receiver;
  311. smalltalk.send(self, "_showCurrentSlide", []);
  312. return self;
  313. }
  314. }),
  315. smalltalk.Presentation);
  316. smalltalk.addMethod(
  317. '_slidesDo_',
  318. smalltalk.method({
  319. selector: 'slidesDo:',
  320. fn: function (aBlockWithArg){
  321. var self=this;
  322. smalltalk.send(smalltalk.send(self, "_slides", []), "_do_", [(function(aSlide){return smalltalk.send(aBlockWithArg, "_value_", [aSlide]);})]);
  323. return self;}
  324. }),
  325. smalltalk.Presentation);
  326. smalltalk.addMethod(
  327. '_moveAt_',
  328. smalltalk.method({
  329. selector: 'moveAt:',
  330. fn: function (anInteger){
  331. var self=this;
  332. var next=nil;
  333. next=smalltalk.send(smalltalk.send(self, "_slides", []), "_at_ifAbsent_", [anInteger, (function(){return nil;})]);
  334. (($receiver = next) != nil && $receiver != undefined) ? (function(){self['@currentSlide']=next;return smalltalk.send(next, "_show", []);})() : nil;
  335. return self;}
  336. }),
  337. smalltalk.Presentation);
  338. smalltalk.addMethod(
  339. '_currentSlideIndex',
  340. smalltalk.method({
  341. selector: 'currentSlideIndex',
  342. fn: function (){
  343. var self=this;
  344. return smalltalk.send(smalltalk.send(self, "_slides", []), "_indexOf_ifAbsent_", [smalltalk.send(self, "_currentSlide", []), (function(){return (1);})]);
  345. return self;}
  346. }),
  347. smalltalk.Presentation);
  348. smalltalk.Presentation.klass.iVarNames = ['current'];
  349. smalltalk.addMethod(
  350. '_isConcrete',
  351. smalltalk.method({
  352. selector: 'isConcrete',
  353. fn: function () {
  354. var self = this;
  355. return false;
  356. return self;
  357. }
  358. }),
  359. smalltalk.Presentation.klass);
  360. smalltalk.addMethod(
  361. '_concretePresentations',
  362. smalltalk.method({
  363. selector: 'concretePresentations',
  364. fn: function () {
  365. var self = this;
  366. return smalltalk.send(smalltalk.send(self, "_allSubclasses", []), "_select_", [function (aPresentationClass) {return smalltalk.send(aPresentationClass, "_isConcrete", []);}]);
  367. return self;
  368. }
  369. }),
  370. smalltalk.Presentation.klass);
  371. smalltalk.addMethod(
  372. '_title',
  373. smalltalk.method({
  374. selector: 'title',
  375. fn: function () {
  376. var self = this;
  377. return "Slides";
  378. return self;
  379. }
  380. }),
  381. smalltalk.Presentation.klass);
  382. smalltalk.addMethod(
  383. '_concretePresentationsDo_',
  384. smalltalk.method({
  385. selector: 'concretePresentationsDo:',
  386. fn: function (aBlockWithArg) {
  387. var self = this;
  388. smalltalk.send(smalltalk.send(self, "_concretePresentations", []), "_do_", [aBlockWithArg]);
  389. return self;
  390. }
  391. }),
  392. smalltalk.Presentation.klass);
  393. smalltalk.addClass('ESUG2011Presentation', smalltalk.Presentation, [], 'Presentation');
  394. smalltalk.addMethod(
  395. '_description',
  396. smalltalk.method({
  397. selector: 'description',
  398. fn: function () {
  399. var self = this;
  400. return unescape("ESUG%202011%2C%20Edinburgh");
  401. return self;
  402. }
  403. }),
  404. smalltalk.ESUG2011Presentation);
  405. smalltalk.addMethod(
  406. '_author',
  407. smalltalk.method({
  408. selector: 'author',
  409. fn: function () {
  410. var self = this;
  411. return "Nicolas Petton";
  412. return self;
  413. }
  414. }),
  415. smalltalk.ESUG2011Presentation);
  416. smalltalk.addMethod(
  417. '_email',
  418. smalltalk.method({
  419. selector: 'email',
  420. fn: function () {
  421. var self = this;
  422. return unescape("nico@objectfusion.fr");
  423. return self;
  424. }
  425. }),
  426. smalltalk.ESUG2011Presentation);
  427. smalltalk.addMethod(
  428. '_url',
  429. smalltalk.method({
  430. selector: 'url',
  431. fn: function () {
  432. var self = this;
  433. return unescape("http%3A//jtalk-project.org");
  434. return self;
  435. }
  436. }),
  437. smalltalk.ESUG2011Presentation);
  438. smalltalk.addMethod(
  439. '_slideClasses',
  440. smalltalk.method({
  441. selector: 'slideClasses',
  442. fn: function () {
  443. var self = this;
  444. return function ($rec) {smalltalk.send($rec, "_add_", [smalltalk.IntroSlide || IntroSlide]);smalltalk.send($rec, "_add_", [smalltalk.AboutSlide || AboutSlide]);smalltalk.send($rec, "_add_", [smalltalk.WhatIsJtalkSlide || WhatIsJtalkSlide]);smalltalk.send($rec, "_add_", [smalltalk.JtalkFeaturesSlide || JtalkFeaturesSlide]);smalltalk.send($rec, "_add_", [smalltalk.WorkspaceSlide || WorkspaceSlide]);smalltalk.send($rec, "_add_", [smalltalk.IDESlide || IDESlide]);smalltalk.send($rec, "_add_", [smalltalk.CountersSlide || CountersSlide]);smalltalk.send($rec, "_add_", [smalltalk.JtalkAndJavascriptSlide || JtalkAndJavascriptSlide]);smalltalk.send($rec, "_add_", [smalltalk.JtalkAndJavascriptSlide2 || JtalkAndJavascriptSlide2]);smalltalk.send($rec, "_add_", [smalltalk.JtalkAndJavascriptSlide3 || JtalkAndJavascriptSlide3]);smalltalk.send($rec, "_add_", [smalltalk.JtalkAndJavascriptSlide4 || JtalkAndJavascriptSlide4]);smalltalk.send($rec, "_add_", [smalltalk.JtalkAndCLI || JtalkAndCLI]);smalltalk.send($rec, "_add_", [smalltalk.JtalkAndNode || JtalkAndNode]);smalltalk.send($rec, "_add_", [smalltalk.JtalkAndNode2 || JtalkAndNode2]);smalltalk.send($rec, "_add_", [smalltalk.JtalkAndNode3 || JtalkAndNode3]);smalltalk.send($rec, "_add_", [smalltalk.JtalkAndWebOS || JtalkAndWebOS]);smalltalk.send($rec, "_add_", [smalltalk.JtalkAndEnyo || JtalkAndEnyo]);smalltalk.send($rec, "_add_", [smalltalk.ContributionsSlide || ContributionsSlide]);return smalltalk.send($rec, "_yourself", []);}(smalltalk.send(smalltalk.Array || Array, "_new", []));
  445. return self;
  446. }
  447. }),
  448. smalltalk.ESUG2011Presentation);
  449. smalltalk.addMethod(
  450. '_style',
  451. smalltalk.method({
  452. selector: 'style',
  453. fn: function () {
  454. var self = this;
  455. return unescape("%0Abody%20%7B%0A%20%20%20%20font-family%3A%20Helvetica%2CArial%2Csans%3B%0A%7D%0A%0A%23slides%20%7B%0A%20%20%20%20width%3A%20100%25%3B%0A%20%20%20%20height%3A%20100%25%3B%0A%20%20%20%20overflow%3A%20hidden%3B%0A%20%20%20%20position%3A%20absolute%3B%0A%20%20%20%20top%3A%200%3B%0A%20%20%20%20bottom%3A%200%3B%0A%20%20%20%20left%3A%200%3B%0A%20%20%20%20right%3A%200%3B%0A%20%20%20%20background%3A%20%23555%3B%0A%7D%0A%0A.slide%20%7B%0A%20%20%20%20background%3A%20%23fff%3B%0A%20%20%20%20color%3A%20%23444%3B%0A%20%20%20%20text-align%3A%20left%3B%0A%20%20%20%20font-size%3A%2020px%3B%0A%20%20%20%20line-height%3A%201.8em%3B%0A%20%20%20%20height%3A%20500px%3B%0A%20%20%20%20width%3A%20700px%3B%0A%20%20%20%20padding%3A%2060px%3B%0A%20%20%20%20position%3A%20absolute%3B%0A%20%20%20%20left%3A%2050%25%3B%0A%20%20%20%20top%3A%2050%25%3B%0A%20%20%20%20margin-left%3A%20-420px%3B%0A%20%20%20%20margin-top%3A%20-320px%3B%0A%20%20%20%20box-shadow%3A%200%200%2020px%20%23111%3B%0A%20%20%20%20-moz-box-shadow%3A%200%200%2020px%20%23111%3B%0A%20%20%20%20-webkit-box-shadow%3A%200%200%2020px%20%23111%3B%0A%7D%0A%0A.slide.transparent%20%7B%0A%20%20%20%20background%3A%20transparent%3B%0A%20%20%20%20box-shadow%3A%200%200%200%20none%3B%0A%20%20%20%20-moz-box-shadow%3A%200%200%200%20transparent%3B%0A%20%20%20%20-webkit-box-shadow%3A%200%200%200%20transparent%3B%0A%20%20%20%20color%3A%20%23fff%20%21important%3B%0A%7D%0A%0A.slide.black%20%7B%0A%20%20%20%20background%3A%20black%3B%0A%20%20%20%20background-image%3A%20-webkit-gradient%28%0A%09linear%2C%0A%09left%20bottom%2C%0A%09left%20top%2C%0A%09color-stop%280.38%2C%20rgb%2879%2C79%2C79%29%29%2C%0A%09color-stop%280.69%2C%20rgb%2833%2C33%2C33%29%29%2C%0A%09color-stop%280.86%2C%20rgb%284%2C4%2C4%29%29%0A%20%20%20%20%29%3B%0A%20%20%20%20background-image%3A%20-moz-linear-gradient%28%0A%09center%20bottom%2C%0A%09rgb%2879%2C79%2C79%29%2038%25%2C%0A%09rgb%2833%2C33%2C33%29%2069%25%2C%0A%09rgb%284%2C4%2C4%29%2086%25%0A%20%20%20%20%29%3B%0A%20%20%20%20color%3A%20%23fff%20%21important%3B%0A%7D%0A%0A.slide.black%20h1%2C%20.slide.black%20h2%2C%20.slide.black%20h3%2C%0A.slide.transparent%20h1%2C%20.slide.transparent%20h2%2C%20.slide.transparent%20h3%20%7B%0A%20%20%20%20color%3A%20%23fff%3B%0A%20%20%20%20text-shadow%3A%200%201px%204px%20%23aaa%3B%0A%7D%0A%0A.slide.black%20a%2C%20.slide.transparent%20a%20%7B%0A%20%20%20%20color%3A%20%23ccc%3B%0A%7D%0A%0A.slide.white%20%7B%0A%20%20%20%20color%3A%20%23333%20%21important%3B%0A%7D%0A%0A.slide.white%20h1%2C%20.slide.white%20h2%2C%20.slide.white%20h3%20%7B%0A%20%20%20%20color%3A%20%23333%3B%0A%7D%0A%0A.slide.white%20a%20%7B%0A%20%20%20%20color%3A%20%23333%3B%0A%7D%0A%0A%0A.slide%20h1%2C%20.slide%20h2%2C%20.slide%20h3%20%7B%0A%20%20%20%20color%3A%20%23333%3B%0A%20%20%20%20/*%20text-align%3A%20center%3B%20*/%0A%7D%0A%0A.slide%20h1%20%7B%0A%20%20%20%20font-family%3A%20%22Droid%20Sans%22%3B%0A%20%20%20%20font-size%3A%2036px%3B%0A%20%20%20%20text-shadow%3A%200%201px%204px%20%23aaa%3B%0A%20%20%20%20margin-top%3A%2030px%3B%0A%20%20%20%20margin-bottom%3A%2050px%3B%0A%7D%0A%0A/*%20.slide%20ul%2C%20.slide%20li%20%7B%20*/%0A/*%20%20%20%20%20padding%3A%200%3B%20*/%0A/*%20%20%20%20%20margin%3A%200%3B%20*/%0A/*%20%7D%20*/%0A%0A.slide%20button%20%7B%0A%20%20%20%20font-size%3A%2018px%3B%0A%7D%0A%0A.slide%20a%20%7B%0A%20%20%20%20color%3A%20%23555%3B%0A%20%20%20%20text-decoration%3A%20none%3B%0A%20%20%20%20cursor%3A%20pointer%3B%0A%7D%0A%0A.slide%20a%3Ahover%20%7B%0A%20%20%20%20color%3A%20%23fff%3B%0A%20%20%20%20background%3A%20%23555%3B%0A%7D%0A%0A.slide%20.right%20%7B%0A%20%20%20%20text-align%3A%20right%3B%0A%7D%0A%0A.slide%20.section.center%20%7B%0A%20%20%20%20text-align%3A%20center%3B%0A%20%20%20%20display%3A%20table-cell%3B%0A%20%20%20%20vertical-align%3A%20middle%3B%0A%20%20%20%20width%3A%20700px%3B%0A%20%20%20%20height%3A%20500px%3B%0A%7D%0A%0A.slide%20code%20%7B%0A%20%20%20%20font-family%3A%20%22Droid%20Sans%20Mono%22%3B%0A%20%20%20%20color%3A%20%23444%3B%0A%20%20%20%20border%3A%201px%20solid%20%23ddd%3B%0A%20%20%20%20background%3A%20%23eee%3B%0A%20%20%20%20border-radius%3A%204px%3B%0A%20%20%20%20padding%3A%202px%3B%0A%20%20%20%20font-size%3A%2016px%3B%0A%7D%0A%0A.slide%20.code2%20%7B%0A%20%20%20%20font-family%3A%20%22Droid%20Sans%20Mono%22%3B%0A%20%20%20%20line-height%3A%201.2em%3B%0A%20%20%20%20color%3A%20%23444%3B%0A%20%20%20%20padding%3A%202px%3B%0A%20%20%20%20font-size%3A%2016px%3B%0A%7D%0A%0A%0A.slide%20.CodeMirror%20%7B%0A%20%20%20%20width%3A%20500px%3B%0A%20%20%20%20height%3A%20300px%3B%0A%20%20%20%20text-align%3A%20left%3B%0A%7D%0A%0A.slide%20.CodeMirror-scroll%20%7B%0A%20%20%20%20text-align%3A%20left%3B%0A%7D%0A%0A.slide%20.fancy%20%7B%0A%20%20%20%20margin-top%3A%2030px%3B%0A%20%20%20%20-webkit-transform%3A%20rotate%28-10deg%29%3B%0A%20%20%20%20-moz-transform%3A%20rotate%28-10deg%29%3B%0A%20%20%20%20transform%3A%20rotate%28-10deg%29%3B%0A%20%20%20%20color%3A%20red%3B%0A%7D%0A%0A.slide%20.comment%20%7B%0A%20%20%20%20opacity%3A%200.6%3B%0A%20%20%20%20font-weight%3A%20normal%3B%0A%7D%0A%0A.slide%20.red%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%7D%0A%0A.slide%20.blue%20%7B%0A%20%20%20%20color%3A%20blue%3B%0A%7D%0A%0A.slide%23WhatIsJtalk%20%7B%0A%20%20%20%20background%3A%20white%20url%28%22esug2011/images/balloon.jpg%22%29%20650px%2050px%20no-repeat%3B%0A%7D%0A%0A.slide%23ide%20%7B%0A%20%20%20%20background%3A%20black%20url%28%22esug2011/images/ide_star_wars.png%22%29%20center%20center%20no-repeat%3B%0A%7D%0A%0A.slide%23JtalkAndCLI%20%7B%0A%20%20%20%20background%3A%20white%20url%28%22esug2011/images/terminal.png%22%29%20620px%2020px%20no-repeat%3B%0A%7D%0A%0A.slide%23JtalkAndNode%20%7B%0A%20%20%20%20background%3A%20white%20url%28%22esug2011/images/nodejs.png%22%29%20580px%2040px%20no-repeat%3B%0A%7D%0A.slide%23JtalkAndNode2%20%7B%0A%20%20%20%20background%3A%20white%20url%28%22esug2011/images/nodejs.png%22%29%20580px%2040px%20no-repeat%3B%0A%7D%0A%0A.slide%23JtalkAndNode3%20%7B%0A%20%20%20%20background%3A%20white%20url%28%22esug2011/images/nodejs.png%22%29%20580px%2040px%20no-repeat%3B%0A%7D%0A%0A.slide%23JtalkAndWebOS%20%7B%0A%20%20%20%20background%3A%20white%20url%28%22esug2011/images/devices.jpg%22%29%20380px%20280px%20no-repeat%3B%0A%7D%0A%0A.slide%23JtalkAndEnyo%20%7B%0A%20%20%20%20background%3A%20white%20url%28%22esug2011/images/enyo.png%22%29%20130px%20150px%20no-repeat%3B%0A%7D%0A%0A.slide%23links%20%7B%0A%20%20%20%20background%3A%20white%20url%28%22esug2011/images/asterix.png%22%29%2030px%20130px%20no-repeat%3B%0A%7D%0A%0A.slide%23links%20.section%20%7B%0A%20%20%20%20margin-left%3A%20250px%3B%0A%20%20%20%20margin-top%3A%20200px%3B%0A%20%20%20%20font-family%3A%20%22Droid%20Sans%22%3B%0A%20%20%20%20font-size%3A%2026px%3B%0A%20%20%20%20font-weight%3A%20bold%3B%0A%7D%0A%0A%0A%23meta%20%7B%0A%20%20%20%20position%3A%20absolute%3B%0A%20%20%20%20font-size%3A%2012px%3B%0A%20%20%20%20opacity%3A%200.6%3B%0A%20%20%20%20bottom%3A%200%3B%0A%20%20%20%20right%3A%200%3B%0A%20%20%20%20z-index%3A%202%3B%0A%20%20%20%20background%3A%20%23333%3B%0A%20%20%20%20text-align%3A%20right%3B%0A%20%20%20%20padding%3A%200%2010px%3B%0A%20%20%20%20line-height%3A%201.8em%3B%0A%20%20%20%20color%3A%20%23eee%3B%0A%20%20%20%20border-top-left-radius%3A%205px%3B%0A%7D%0A%0A%23meta%3Ahover%20%7B%0A%20%20%20%20opacity%3A%200.8%3B%0A%7D%0A%0A%23meta%20p%20%7B%0A%20%20%20%20display%3A%20inline%3B%0A%20%20%20%20padding%3A%200%205px%3B%0A%7D%0A%0A%23meta%20a%20%7B%0A%20%20%20%20//background%3A%20%23ccc%3B%0A%20%20%20%20color%3A%20%23ccc%3B%0A%20%20%20%20text-decoration%3A%20none%3B%0A%20%20%20%20padding%3A%200%205px%3B%0A%7D%0A%0A.slide%20%7B%0A%20%20%20%20%0A%7D%0A");
  456. return self;
  457. }
  458. }),
  459. smalltalk.ESUG2011Presentation);
  460. smalltalk.ESUG2011Presentation.klass.iVarNames = ['current'];
  461. smalltalk.addMethod(
  462. '_isConcrete',
  463. smalltalk.method({
  464. selector: 'isConcrete',
  465. fn: function () {
  466. var self = this;
  467. return true;
  468. return self;
  469. }
  470. }),
  471. smalltalk.ESUG2011Presentation.klass);
  472. smalltalk.addMethod(
  473. '_title',
  474. smalltalk.method({
  475. selector: 'title',
  476. fn: function () {
  477. var self = this;
  478. return "Jtalk";
  479. return self;
  480. }
  481. }),
  482. smalltalk.ESUG2011Presentation.klass);
  483. smalltalk.addClass('IntroSlide', smalltalk.Slide, [], 'Presentation');
  484. smalltalk.addMethod(
  485. '_id',
  486. smalltalk.method({
  487. selector: 'id',
  488. fn: function () {
  489. var self = this;
  490. return "intro";
  491. return self;
  492. }
  493. }),
  494. smalltalk.IntroSlide);
  495. smalltalk.addMethod(
  496. '_cssClass',
  497. smalltalk.method({
  498. selector: 'cssClass',
  499. fn: function () {
  500. var self = this;
  501. return "slide black";
  502. return self;
  503. }
  504. }),
  505. smalltalk.IntroSlide);
  506. smalltalk.addMethod(
  507. '_renderSlideOn_',
  508. smalltalk.method({
  509. selector: 'renderSlideOn:',
  510. fn: function (html) {
  511. var self = this;
  512. (function ($rec) {smalltalk.send($rec, "_class_", ["section center"]);return smalltalk.send($rec, "_with_", [function () {smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", [unescape("Jtalk%2C%20the%20Smalltalk%20for%20Web%20developers")]);smalltalk.send(smalltalk.send(html, "_p", []), "_with_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_presentation", []), "_author", []), "__comma", [unescape("%20%26%20G%F6ran%20Krampe%20-%20")]), "__comma", [smalltalk.send(smalltalk.send(self, "_presentation", []), "_description", [])])]);smalltalk.send(smalltalk.send(html, "_p", []), "_with_", [function () {return function ($rec) {smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(self, "_presentation", []), "_email", [])]);return smalltalk.send($rec, "_href_", [smalltalk.send("mailto:", "__comma", [smalltalk.send(smalltalk.send(self, "_presentation", []), "_email", [])])]);}(smalltalk.send(html, "_a", []));}]);smalltalk.send(smalltalk.send(html, "_p", []), "_with_", [function () {return function ($rec) {smalltalk.send($rec, "_with_", [unescape("goran@krampe.se")]);return smalltalk.send($rec, "_href_", [unescape("mailto%3Agoran@krampe.se")]);}(smalltalk.send(html, "_a", []));}]);return smalltalk.send(smalltalk.send(html, "_p", []), "_with_", [function () {return function ($rec) {smalltalk.send($rec, "_with_", ["objectfusion.fr"]);return smalltalk.send($rec, "_href_", [unescape("http%3A//www.objectfusion.fr")]);}(smalltalk.send(html, "_a", []));}]);}]);}(smalltalk.send(html, "_div", [])));
  513. return self;
  514. }
  515. }),
  516. smalltalk.IntroSlide);
  517. smalltalk.addClass('WhatIsJtalkSlide', smalltalk.Slide, [], 'Presentation');
  518. smalltalk.addMethod(
  519. '_id',
  520. smalltalk.method({
  521. selector: 'id',
  522. fn: function () {
  523. var self = this;
  524. return "WhatIsJtalk";
  525. return self;
  526. }
  527. }),
  528. smalltalk.WhatIsJtalkSlide);
  529. smalltalk.addMethod(
  530. '_renderSlideOn_',
  531. smalltalk.method({
  532. selector: 'renderSlideOn:',
  533. fn: function (html) {
  534. var self = this;
  535. (function ($rec) {smalltalk.send($rec, "_class_", ["section center"]);return smalltalk.send($rec, "_with_", [function () {smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", ["Jtalk in a nutshell"]);smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", ["Jtalk is an implementation of Smalltalk"]);smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", ["Jtalk runs on top of the JavaScript runtime"]);smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", [unescape("Jtalk%20is%20an%20opensource%20project%20%28MIT%29")]);return function ($rec) {smalltalk.send($rec, "_class_", ["fancy"]);return smalltalk.send($rec, "_with_", [unescape("Jtalk%20is%20cool%21")]);}(smalltalk.send(html, "_h2", []));}]);}(smalltalk.send(html, "_div", [])));
  536. return self;
  537. }
  538. }),
  539. smalltalk.WhatIsJtalkSlide);
  540. smalltalk.addClass('JtalkFeaturesSlide', smalltalk.Slide, [], 'Presentation');
  541. smalltalk.addMethod(
  542. '_id',
  543. smalltalk.method({
  544. selector: 'id',
  545. fn: function () {
  546. var self = this;
  547. return "features";
  548. return self;
  549. }
  550. }),
  551. smalltalk.JtalkFeaturesSlide);
  552. smalltalk.addMethod(
  553. '_renderSlideOn_',
  554. smalltalk.method({
  555. selector: 'renderSlideOn:',
  556. fn: function (html) {
  557. var self = this;
  558. smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", ["Jtalk features"]);
  559. smalltalk.send(smalltalk.send(html, "_ul", []), "_with_", [function () {smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [unescape("Jtalk%20is%20%28mostly%29%20written%20in%20itself%2C%20including%20the%20parser%20%26%20compiler")]);smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [unescape("Full%20Smalltalk%20object%20system%2C%20including%20classes%20%26%20metaclasses%2C%20etc")]);smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [unescape("Core%20libraries%20%28streams%2C%20collections%2C%20RegExp%2C%20etc%29")]);smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [unescape("Web%20related%20libraries%3A%20HTML%20Canvas%2C%20DOM%20manipulation")]);smalltalk.send(smalltalk.send(html, "_li", []), "_with_", ["Full featured IDE"]);return smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [function () {smalltalk.send(html, "_with_", [unescape("Advanced%20Smalltalk%20features%2C%20including%20")]);smalltalk.send(smalltalk.send(html, "_code", []), "_with_", [unescape("%23doesNotUnderstand%3A")]);smalltalk.send(html, "_with_", [" support and "]);return smalltalk.send(smalltalk.send(html, "_code", []), "_with_", ["thisContext"]);}]);}]);
  560. return self;
  561. }
  562. }),
  563. smalltalk.JtalkFeaturesSlide);
  564. smalltalk.addClass('AboutSlide', smalltalk.Slide, [], 'Presentation');
  565. smalltalk.addMethod(
  566. '_id',
  567. smalltalk.method({
  568. selector: 'id',
  569. fn: function () {
  570. var self = this;
  571. return "about";
  572. return self;
  573. }
  574. }),
  575. smalltalk.AboutSlide);
  576. smalltalk.addMethod(
  577. '_cssClass',
  578. smalltalk.method({
  579. selector: 'cssClass',
  580. fn: function () {
  581. var self = this;
  582. return "slide transparent white";
  583. return self;
  584. }
  585. }),
  586. smalltalk.AboutSlide);
  587. smalltalk.addMethod(
  588. '_backgroundColor',
  589. smalltalk.method({
  590. selector: 'backgroundColor',
  591. fn: function () {
  592. var self = this;
  593. return "white";
  594. return self;
  595. }
  596. }),
  597. smalltalk.AboutSlide);
  598. smalltalk.addMethod(
  599. '_renderSlideOn_',
  600. smalltalk.method({
  601. selector: 'renderSlideOn:',
  602. fn: function (html) {
  603. var self = this;
  604. (function ($rec) {smalltalk.send($rec, "_class_", ["section center"]);return smalltalk.send($rec, "_with_", [function () {smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", ["About this presentation"]);smalltalk.send(smalltalk.send(html, "_p", []), "_with_", [unescape("This%20presentation%20is%20entirely%20written%20in%20Jtalk%20and%20is%20licensed%20under%20CC%20BY-SA.")]);smalltalk.send(smalltalk.send(html, "_p", []), "_with_", [function () {smalltalk.send(html, "_with_", ["Press "]);smalltalk.send(smalltalk.send(html, "_code", []), "_with_", [unescape("%u2190")]);smalltalk.send(html, "_with_", [" to move backward and "]);smalltalk.send(smalltalk.send(html, "_code", []), "_with_", [unescape("%20%u2192")]);return smalltalk.send(html, "_with_", [" to move forward."]);}]);return smalltalk.send(smalltalk.send(html, "_p", []), "_with_", [function () {smalltalk.send(html, "_with_", ["Open a "]);(function ($rec) {smalltalk.send($rec, "_with_", ["browser"]);return smalltalk.send($rec, "_onClick_", [function () {return smalltalk.send(smalltalk.Browser || Browser, "_openOn_", [smalltalk.Presentation || Presentation]);}]);}(smalltalk.send(html, "_button", [])));return smalltalk.send(html, "_with_", [" to edit the source code."]);}]);}]);}(smalltalk.send(html, "_div", [])));
  605. return self;
  606. }
  607. }),
  608. smalltalk.AboutSlide);
  609. smalltalk.addClass('JtalkAndJavascriptSlide3', smalltalk.Slide, [], 'Presentation');
  610. smalltalk.addMethod(
  611. '_id',
  612. smalltalk.method({
  613. selector: 'id',
  614. fn: function () {
  615. var self = this;
  616. return "jtalkAndJs3";
  617. return self;
  618. }
  619. }),
  620. smalltalk.JtalkAndJavascriptSlide3);
  621. smalltalk.addMethod(
  622. '_backgroundColor',
  623. smalltalk.method({
  624. selector: 'backgroundColor',
  625. fn: function () {
  626. var self = this;
  627. return unescape("%2308C");
  628. return self;
  629. }
  630. }),
  631. smalltalk.JtalkAndJavascriptSlide3);
  632. smalltalk.addMethod(
  633. '_renderSlideOn_',
  634. smalltalk.method({
  635. selector: 'renderSlideOn:',
  636. fn: function (html) {
  637. var self = this;
  638. smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", [function () {smalltalk.send(html, "_with_", ["Smalltalk "]);(function ($rec) {smalltalk.send($rec, "_class_", ["red"]);return smalltalk.send($rec, "_with_", [unescape("%u2665")]);}(smalltalk.send(html, "_span", [])));return smalltalk.send(html, "_with_", [" JavaScript"]);}]);
  639. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", [unescape("Smalltalk%20%u21D2%20JavaScript")]);
  640. smalltalk.send(smalltalk.send(html, "_ol", []), "_with_", [function () {(function ($rec) {smalltalk.send($rec, "_with_", ["Unary messages begin with an underscore: "]);smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.send(html, "_code", []), "_with_", ["yourself"]);}]);smalltalk.send($rec, "_with_", [" becomes "]);return smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.send(html, "_code", []), "_with_", [unescape("_yourself%28%29")]);}]);}(smalltalk.send(html, "_li", [])));(function ($rec) {smalltalk.send($rec, "_with_", ["Binary messages are prefixed with 2 underscores: "]);smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.send(html, "_code", []), "_with_", [unescape("3@4")]);}]);smalltalk.send($rec, "_with_", [" becomes "]);return smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.send(html, "_code", []), "_with_", [unescape("%283%29.__at%284%29")]);}]);}(smalltalk.send(html, "_li", [])));return function ($rec) {smalltalk.send($rec, "_with_", [unescape("Keyword%20message%20follow%20the%20same%20rules%20as%20unary%20messages%2C%20with%20a%20final%20underscore%3A%20")]);smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.send(html, "_code", []), "_with_", ["aDictionary at: 3 put: 4"]);}]);smalltalk.send($rec, "_with_", [" becomes "]);return smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.send(html, "_code", []), "_with_", [unescape("aDictionary._at_put_%283%2C%204%29")]);}]);}(smalltalk.send(html, "_li", []));}]);
  641. return self;
  642. }
  643. }),
  644. smalltalk.JtalkAndJavascriptSlide3);
  645. smalltalk.addClass('JtalkAndJavascriptSlide2', smalltalk.Slide, [], 'Presentation');
  646. smalltalk.addMethod(
  647. '_id',
  648. smalltalk.method({
  649. selector: 'id',
  650. fn: function () {
  651. var self = this;
  652. return "jtalkAndJs2";
  653. return self;
  654. }
  655. }),
  656. smalltalk.JtalkAndJavascriptSlide2);
  657. smalltalk.addMethod(
  658. '_backgroundColor',
  659. smalltalk.method({
  660. selector: 'backgroundColor',
  661. fn: function () {
  662. var self = this;
  663. return unescape("%2308C");
  664. return self;
  665. }
  666. }),
  667. smalltalk.JtalkAndJavascriptSlide2);
  668. smalltalk.addMethod(
  669. '_renderSlideOn_',
  670. smalltalk.method({
  671. selector: 'renderSlideOn:',
  672. fn: function (html) {
  673. var self = this;
  674. smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", [function () {smalltalk.send(html, "_with_", ["Smalltalk "]);(function ($rec) {smalltalk.send($rec, "_class_", ["red"]);return smalltalk.send($rec, "_with_", [unescape("%u2665")]);}(smalltalk.send(html, "_span", [])));return smalltalk.send(html, "_with_", [" JavaScript"]);}]);
  675. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", ["Jtalk maps one to one with the JavaScript equivalent:"]);
  676. smalltalk.send(smalltalk.send(html, "_ul", []), "_with_", [function () {smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [unescape("String%20%u21D4%20String")]);smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [unescape("Number%20%u21D4%20Number")]);smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [unescape("BlockClosure%20%u21D4%20function")]);smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [unescape("Dictionary%20%u21D4%20Object")]);smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [unescape("Error%20%u21D4%20Error")]);return smalltalk.send(smalltalk.send(html, "_li", []), "_with_", ["etc."]);}]);
  677. return self;
  678. }
  679. }),
  680. smalltalk.JtalkAndJavascriptSlide2);
  681. smalltalk.addClass('JtalkAndJavascriptSlide', smalltalk.Slide, [], 'Presentation');
  682. smalltalk.addMethod(
  683. '_id',
  684. smalltalk.method({
  685. selector: 'id',
  686. fn: function () {
  687. var self = this;
  688. return "jtalkAndJs";
  689. return self;
  690. }
  691. }),
  692. smalltalk.JtalkAndJavascriptSlide);
  693. smalltalk.addMethod(
  694. '_cssClass',
  695. smalltalk.method({
  696. selector: 'cssClass',
  697. fn: function () {
  698. var self = this;
  699. return "slide transparent";
  700. return self;
  701. }
  702. }),
  703. smalltalk.JtalkAndJavascriptSlide);
  704. smalltalk.addMethod(
  705. '_backgroundColor',
  706. smalltalk.method({
  707. selector: 'backgroundColor',
  708. fn: function () {
  709. var self = this;
  710. return unescape("%2308C");
  711. return self;
  712. }
  713. }),
  714. smalltalk.JtalkAndJavascriptSlide);
  715. smalltalk.addMethod(
  716. '_renderSlideOn_',
  717. smalltalk.method({
  718. selector: 'renderSlideOn:',
  719. fn: function (html) {
  720. var self = this;
  721. (function ($rec) {smalltalk.send($rec, "_class_", ["section center"]);return smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", [function () {smalltalk.send(html, "_with_", ["Smalltalk "]);(function ($rec) {smalltalk.send($rec, "_class_", ["red"]);return smalltalk.send($rec, "_with_", [unescape("%u2665")]);}(smalltalk.send(html, "_span", [])));return smalltalk.send(html, "_with_", [" JavaScript"]);}]);}]);}(smalltalk.send(html, "_div", [])));
  722. return self;
  723. }
  724. }),
  725. smalltalk.JtalkAndJavascriptSlide);
  726. smalltalk.addClass('WorkspaceSlide', smalltalk.Slide, [], 'Presentation');
  727. smalltalk.addMethod(
  728. '_id',
  729. smalltalk.method({
  730. selector: 'id',
  731. fn: function () {
  732. var self = this;
  733. return "workspace";
  734. return self;
  735. }
  736. }),
  737. smalltalk.WorkspaceSlide);
  738. smalltalk.addMethod(
  739. '_backgroundColor',
  740. smalltalk.method({
  741. selector: 'backgroundColor',
  742. fn: function () {
  743. var self = this;
  744. return unescape("%2318bd7d");
  745. return self;
  746. }
  747. }),
  748. smalltalk.WorkspaceSlide);
  749. smalltalk.addMethod(
  750. '_renderSlideOn_',
  751. smalltalk.method({
  752. selector: 'renderSlideOn:',
  753. fn: function (html) {
  754. var self = this;
  755. var workspace = nil;
  756. workspace = smalltalk.send(smalltalk.SourceArea || SourceArea, "_new", []);
  757. (function ($rec) {smalltalk.send($rec, "_class_", ["section center"]);return smalltalk.send($rec, "_with_", [function () {smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", [unescape("Give%20Jtalk%20a%20try%21")]);smalltalk.send(workspace, "_renderOn_", [html]);return smalltalk.send(smalltalk.send(html, "_div", []), "_with_", [function () {(function ($rec) {smalltalk.send($rec, "_with_", ["DoIt"]);return smalltalk.send($rec, "_onClick_", [function () {return smalltalk.send(workspace, "_doIt", []);}]);}(smalltalk.send(html, "_button", [])));(function ($rec) {smalltalk.send($rec, "_with_", ["PrintIt"]);return smalltalk.send($rec, "_onClick_", [function () {return smalltalk.send(workspace, "_printIt", []);}]);}(smalltalk.send(html, "_button", [])));return function ($rec) {smalltalk.send($rec, "_with_", ["InspectIt"]);return smalltalk.send($rec, "_onClick_", [function () {return smalltalk.send(workspace, "_inspectIt", []);}]);}(smalltalk.send(html, "_button", []));}]);}]);}(smalltalk.send(html, "_div", [])));
  758. return self;
  759. }
  760. }),
  761. smalltalk.WorkspaceSlide);
  762. smalltalk.addClass('CountersSlide', smalltalk.Slide, [], 'Presentation');
  763. smalltalk.addMethod(
  764. '_id',
  765. smalltalk.method({
  766. selector: 'id',
  767. fn: function () {
  768. var self = this;
  769. return "counters";
  770. return self;
  771. }
  772. }),
  773. smalltalk.CountersSlide);
  774. smalltalk.addMethod(
  775. '_backgroundColor',
  776. smalltalk.method({
  777. selector: 'backgroundColor',
  778. fn: function () {
  779. var self = this;
  780. return unescape("%2318bd7d");
  781. return self;
  782. }
  783. }),
  784. smalltalk.CountersSlide);
  785. smalltalk.addMethod(
  786. '_renderSlideOn_',
  787. smalltalk.method({
  788. selector: 'renderSlideOn:',
  789. fn: function (html) {
  790. var self = this;
  791. (function ($rec) {smalltalk.send($rec, "_class_", ["section center"]);return smalltalk.send($rec, "_with_", [function () {smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", ["The counter example"]);return smalltalk.send(smalltalk.send(html, "_div", []), "_with_", [function () {return smalltalk.send(2, "_timesRepeat_", [function () {return smalltalk.send(smalltalk.send(smalltalk.Counter || Counter, "_new", []), "_renderOn_", [html]);}]);}]);}]);}(smalltalk.send(html, "_div", [])));
  792. return self;
  793. }
  794. }),
  795. smalltalk.CountersSlide);
  796. smalltalk.addClass('JtalkAndJavascriptSlide4', smalltalk.Slide, [], 'Presentation');
  797. smalltalk.addMethod(
  798. '_id',
  799. smalltalk.method({
  800. selector: 'id',
  801. fn: function () {
  802. var self = this;
  803. return "jtalkAndJs4";
  804. return self;
  805. }
  806. }),
  807. smalltalk.JtalkAndJavascriptSlide4);
  808. smalltalk.addMethod(
  809. '_backgroundColor',
  810. smalltalk.method({
  811. selector: 'backgroundColor',
  812. fn: function () {
  813. var self = this;
  814. return unescape("%2308C");
  815. return self;
  816. }
  817. }),
  818. smalltalk.JtalkAndJavascriptSlide4);
  819. smalltalk.addMethod(
  820. '_renderSlideOn_',
  821. smalltalk.method({
  822. selector: 'renderSlideOn:',
  823. fn: function (html) {
  824. var self = this;
  825. smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", [function () {smalltalk.send(html, "_with_", ["JavaScript "]);(function ($rec) {smalltalk.send($rec, "_class_", ["red"]);return smalltalk.send($rec, "_with_", [unescape("%u2665")]);}(smalltalk.send(html, "_span", [])));return function ($rec) {smalltalk.send($rec, "_with_", [unescape("%20Smalltalk%20too%21%20")]);return smalltalk.send($rec, "_with_", [function () {return function ($rec) {smalltalk.send($rec, "_class_", ["comment"]);return smalltalk.send($rec, "_with_", [unescape("%28how%20cute%29")]);}(smalltalk.send(html, "_span", []));}]);}(html);}]);
  826. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", [unescape("JavaScript%20%u21D2%20Smalltalk")]);
  827. smalltalk.send(smalltalk.send(html, "_ol", []), "_with_", [function () {(function ($rec) {smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.send(html, "_code", []), "_with_", ["someUser.name"]);}]);smalltalk.send($rec, "_with_", [" becomes "]);return smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.send(html, "_code", []), "_with_", ["someUser name"]);}]);}(smalltalk.send(html, "_li", [])));(function ($rec) {smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.send(html, "_code", []), "_with_", [unescape("someUser%20name%20%3D%20%22John%22")]);}]);smalltalk.send($rec, "_with_", [" becomes "]);return smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.send(html, "_code", []), "_with_", [unescape("someUser%20name%3A%20%27John%27")]);}]);}(smalltalk.send(html, "_li", [])));(function ($rec) {smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.send(html, "_code", []), "_with_", [unescape("console.log%28%27hello%20world%27%29")]);}]);smalltalk.send($rec, "_with_", [" becomes "]);return smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.send(html, "_code", []), "_with_", [unescape("console%20log%3A%20%27hello%20world%27")]);}]);}(smalltalk.send(html, "_li", [])));return function ($rec) {smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.send(html, "_code", []), "_with_", [unescape("window.jQuery%28%27foo%27%29.css%28%27background%27%2C%20%27red%27%29")]);}]);smalltalk.send($rec, "_with_", [" becomes "]);smalltalk.send($rec, "_with_", [function () {return smalltalk.send(html, "_br", []);}]);return smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.send(html, "_code", []), "_with_", [unescape("%28window%20jQuery%3A%20%27foo%27%29%20css%3A%20%27background%27%20color%3A%20%27red%27")]);}]);}(smalltalk.send(html, "_li", []));}]);
  828. return self;
  829. }
  830. }),
  831. smalltalk.JtalkAndJavascriptSlide4);
  832. smalltalk.addClass('IDESlide', smalltalk.Slide, [], 'Presentation');
  833. smalltalk.addMethod(
  834. '_id',
  835. smalltalk.method({
  836. selector: 'id',
  837. fn: function () {
  838. var self = this;
  839. return "ide";
  840. return self;
  841. }
  842. }),
  843. smalltalk.IDESlide);
  844. smalltalk.addMethod(
  845. '_backgroundColor',
  846. smalltalk.method({
  847. selector: 'backgroundColor',
  848. fn: function () {
  849. var self = this;
  850. return "black";
  851. return self;
  852. }
  853. }),
  854. smalltalk.IDESlide);
  855. smalltalk.addMethod(
  856. '_cssClass',
  857. smalltalk.method({
  858. selector: 'cssClass',
  859. fn: function () {
  860. var self = this;
  861. return "slide transparent";
  862. return self;
  863. }
  864. }),
  865. smalltalk.IDESlide);
  866. smalltalk.addMethod(
  867. '_renderSlideOn_',
  868. smalltalk.method({
  869. selector: 'renderSlideOn:',
  870. fn: function (html) {
  871. var self = this;
  872. return self;
  873. }
  874. }),
  875. smalltalk.IDESlide);
  876. smalltalk.addClass('ContributionsSlide', smalltalk.Slide, [], 'Presentation');
  877. smalltalk.addMethod(
  878. '_id',
  879. smalltalk.method({
  880. selector: 'id',
  881. fn: function () {
  882. var self = this;
  883. return "links";
  884. return self;
  885. }
  886. }),
  887. smalltalk.ContributionsSlide);
  888. smalltalk.addMethod(
  889. '_renderSlideOn_',
  890. smalltalk.method({
  891. selector: 'renderSlideOn:',
  892. fn: function (html) {
  893. var self = this;
  894. (function ($rec) {smalltalk.send($rec, "_class_", ["section"]);return smalltalk.send($rec, "_with_", [function () {smalltalk.send(smalltalk.send(html, "_p", []), "_with_", [function () {return function ($rec) {smalltalk.send($rec, "_href_", [unescape("http%3A//jtalk-project.org")]);return smalltalk.send($rec, "_with_", [unescape("jtalk-project.org")]);}(smalltalk.send(html, "_a", []));}]);smalltalk.send(smalltalk.send(html, "_p", []), "_with_", [function () {return function ($rec) {smalltalk.send($rec, "_href_", [unescape("https%3A//github.com/NicolasPetton/jtalk")]);return smalltalk.send($rec, "_with_", [unescape("github.com/NicolasPetton/jtalk")]);}(smalltalk.send(html, "_a", []));}]);return smalltalk.send(smalltalk.send(html, "_p", []), "_with_", [function () {return function ($rec) {smalltalk.send($rec, "_href_", [unescape("http%3A//http%3A//groups.google.com/group/jtalk-project")]);return smalltalk.send($rec, "_with_", [unescape("groups.google.com/group/jtalk-project")]);}(smalltalk.send(html, "_a", []));}]);}]);}(smalltalk.send(html, "_div", [])));
  895. return self;
  896. }
  897. }),
  898. smalltalk.ContributionsSlide);
  899. smalltalk.addClass('JtalkAndCLI', smalltalk.Slide, [], 'Presentation');
  900. smalltalk.addMethod(
  901. '_backgroundColor',
  902. smalltalk.method({
  903. selector: 'backgroundColor',
  904. fn: function () {
  905. var self = this;
  906. return unescape("%230A1");
  907. return self;
  908. }
  909. }),
  910. smalltalk.JtalkAndCLI);
  911. smalltalk.addMethod(
  912. '_id',
  913. smalltalk.method({
  914. selector: 'id',
  915. fn: function () {
  916. var self = this;
  917. return "JtalkAndCLI";
  918. return self;
  919. }
  920. }),
  921. smalltalk.JtalkAndCLI);
  922. smalltalk.addMethod(
  923. '_renderSlideOn_',
  924. smalltalk.method({
  925. selector: 'renderSlideOn:',
  926. fn: function (html) {
  927. var self = this;
  928. smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", [function () {smalltalk.send(html, "_with_", ["Jtalk and "]);return function ($rec) {smalltalk.send($rec, "_class_", ["blue"]);return smalltalk.send($rec, "_with_", ["the command line"]);}(smalltalk.send(html, "_span", []));}]);
  929. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", [unescape("jtalkc%20-%20a%20fairly%20elaborate%20bash%20script%20that%3A")]);
  930. smalltalk.send(smalltalk.send(html, "_ul", []), "_with_", [function () {smalltalk.send(smalltalk.send(html, "_li", []), "_with_", ["Uses Node.js to run the Jtalk Compiler"]);smalltalk.send(smalltalk.send(html, "_li", []), "_with_", ["Compiles .st files to .js"]);smalltalk.send(smalltalk.send(html, "_li", []), "_with_", ["Links .js files into a single one"]);smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [unescape("Adds%20class%20initilization%20and/or%20call%20to%20main")]);return smalltalk.send(smalltalk.send(html, "_li", []), "_with_", ["Optionally runs Google Closure compiler"]);}]);
  931. return self;
  932. }
  933. }),
  934. smalltalk.JtalkAndCLI);
  935. smalltalk.addClass('JtalkAndNode', smalltalk.Slide, [], 'Presentation');
  936. smalltalk.addMethod(
  937. '_backgroundColor',
  938. smalltalk.method({
  939. selector: 'backgroundColor',
  940. fn: function () {
  941. var self = this;
  942. return unescape("%230A1");
  943. return self;
  944. }
  945. }),
  946. smalltalk.JtalkAndNode);
  947. smalltalk.addMethod(
  948. '_id',
  949. smalltalk.method({
  950. selector: 'id',
  951. fn: function () {
  952. var self = this;
  953. return "JtalkAndNode";
  954. return self;
  955. }
  956. }),
  957. smalltalk.JtalkAndNode);
  958. smalltalk.addMethod(
  959. '_renderSlideOn_',
  960. smalltalk.method({
  961. selector: 'renderSlideOn:',
  962. fn: function (html) {
  963. var self = this;
  964. smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", [function () {smalltalk.send(html, "_with_", ["Jtalk and "]);return function ($rec) {smalltalk.send($rec, "_class_", ["blue"]);return smalltalk.send($rec, "_with_", ["Node.js"]);}(smalltalk.send(html, "_span", []));}]);
  965. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", ["Hello.st:"]);
  966. smalltalk.send(smalltalk.send(html, "_pre", []), "_with_", [function () {return function ($rec) {smalltalk.send($rec, "_class_", ["code2"]);return smalltalk.send($rec, "_with_", [unescape("Object%20subclass%3A%20%23Hello%0A%20%20%20%20%20%20%20%20instanceVariableNames%3A%20%27%27%0A%20%20%20%20%20%20%20%20category%3A%20%27Hello%27%21%0A%0A%21Hello%20class%20methodsFor%3A%20%27main%27%21%0Amain%0A%09console%20log%3A%20%27Hello%20world%20from%20JTalk%20in%20Node.js%27%0A%21%20%21")]);}(smalltalk.send(html, "_div", []));}]);
  967. return self;
  968. }
  969. }),
  970. smalltalk.JtalkAndNode);
  971. smalltalk.addClass('JtalkAndNode2', smalltalk.Slide, [], 'Presentation');
  972. smalltalk.addMethod(
  973. '_backgroundColor',
  974. smalltalk.method({
  975. selector: 'backgroundColor',
  976. fn: function () {
  977. var self = this;
  978. return unescape("%230A1");
  979. return self;
  980. }
  981. }),
  982. smalltalk.JtalkAndNode2);
  983. smalltalk.addMethod(
  984. '_id',
  985. smalltalk.method({
  986. selector: 'id',
  987. fn: function () {
  988. var self = this;
  989. return "JtalkAndNode2";
  990. return self;
  991. }
  992. }),
  993. smalltalk.JtalkAndNode2);
  994. smalltalk.addMethod(
  995. '_renderSlideOn_',
  996. smalltalk.method({
  997. selector: 'renderSlideOn:',
  998. fn: function (html) {
  999. var self = this;
  1000. smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", [function () {smalltalk.send(html, "_with_", ["Jtalk and "]);return function ($rec) {smalltalk.send($rec, "_class_", ["blue"]);return smalltalk.send($rec, "_with_", ["Node.js"]);}(smalltalk.send(html, "_span", []));}]);
  1001. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", ["Makefile:"]);
  1002. smalltalk.send(smalltalk.send(html, "_pre", []), "_with_", [function () {return function ($rec) {smalltalk.send($rec, "_class_", ["code2"]);return smalltalk.send($rec, "_with_", [unescape("Program.js%3A%20Hello.st%0A%09../../bin/jtalkc%20-N%20-m%20Hello%20Hello.st%20Program%0A%0Arun%3A%20Program.js%0A%09./hello%0A%0Aclean%3A%0A%09rm%20-f%20Program.js%20Hello.js%0A")]);}(smalltalk.send(html, "_div", []));}]);
  1003. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", ["hello:"]);
  1004. smalltalk.send(smalltalk.send(html, "_pre", []), "_with_", [function () {return function ($rec) {smalltalk.send($rec, "_class_", ["code2"]);return smalltalk.send($rec, "_with_", [unescape("node%20Program.js%20%24@")]);}(smalltalk.send(html, "_div", []));}]);
  1005. return self;
  1006. }
  1007. }),
  1008. smalltalk.JtalkAndNode2);
  1009. smalltalk.addClass('JtalkAndNode3', smalltalk.Slide, [], 'Presentation');
  1010. smalltalk.addMethod(
  1011. '_backgroundColor',
  1012. smalltalk.method({
  1013. selector: 'backgroundColor',
  1014. fn: function () {
  1015. var self = this;
  1016. return unescape("%230A1");
  1017. return self;
  1018. }
  1019. }),
  1020. smalltalk.JtalkAndNode3);
  1021. smalltalk.addMethod(
  1022. '_id',
  1023. smalltalk.method({
  1024. selector: 'id',
  1025. fn: function () {
  1026. var self = this;
  1027. return "JtalkAndNode3";
  1028. return self;
  1029. }
  1030. }),
  1031. smalltalk.JtalkAndNode3);
  1032. smalltalk.addMethod(
  1033. '_renderSlideOn_',
  1034. smalltalk.method({
  1035. selector: 'renderSlideOn:',
  1036. fn: function (html) {
  1037. var self = this;
  1038. smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", [function () {smalltalk.send(html, "_with_", ["Jtalk and "]);return function ($rec) {smalltalk.send($rec, "_class_", ["blue"]);return smalltalk.send($rec, "_with_", ["Node.js"]);}(smalltalk.send(html, "_span", []));}]);
  1039. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", [unescape("make%20clean%20%26%26%20make%20run%3A")]);
  1040. smalltalk.send(smalltalk.send(html, "_pre", []), "_with_", [function () {(function ($rec) {smalltalk.send($rec, "_class_", ["code2"]);return smalltalk.send($rec, "_with_", [unescape("rm%20-f%20Program.js%20Hello.js%0A../../bin/jtalkc%20-N%20-m%20Hello%20Hello.st%20Program%0ALoading%20libraries%20%20/home/gokr/jtalk/js/boot.js%20/home/gokr/jtalk/js/Kernel.js%0A/home/gokr/jtalk/js/Parser.js%20/home/gokr/jtalk/js/Compiler.js%0A/home/gokr/jtalk/js/init.js%20/home/gokr/jtalk/nodejs/nodecompile.js%0Aand%20compiling%20...%0ACompiling%20in%20debugMode%3A%20false%0AReading%20file%20Hello.st%0AExporting%20category%20Hello%20as%20Hello.js%0AAdding%20libraries%20%20/home/gokr/jtalk/js/boot.js%20/home/gokr/jtalk/js/Kernel.js%20%20...%0AAdding%20Jtalk%20code%20Hello.js%20...%0AAdding%20initializer%20/home/gokr/jtalk/js/init.js%20...%0AAdding%20call%20to%20Hello%20class%20%3E%3E%20main%20...%0AWriting%20Program.js%20...%0ADone.%0A./hello")]);}(smalltalk.send(html, "_div", [])));return function ($rec) {smalltalk.send($rec, "_class_", ["blue"]);return smalltalk.send($rec, "_with_", ["Hello world from JTalk in Node.js"]);}(smalltalk.send(html, "_span", []));}]);
  1041. return self;
  1042. }
  1043. }),
  1044. smalltalk.JtalkAndNode3);
  1045. smalltalk.addClass('JtalkAndWebOS', smalltalk.Slide, [], 'Presentation');
  1046. smalltalk.addMethod(
  1047. '_backgroundColor',
  1048. smalltalk.method({
  1049. selector: 'backgroundColor',
  1050. fn: function () {
  1051. var self = this;
  1052. return unescape("%230A1");
  1053. return self;
  1054. }
  1055. }),
  1056. smalltalk.JtalkAndWebOS);
  1057. smalltalk.addMethod(
  1058. '_id',
  1059. smalltalk.method({
  1060. selector: 'id',
  1061. fn: function () {
  1062. var self = this;
  1063. return "JtalkAndWebOS";
  1064. return self;
  1065. }
  1066. }),
  1067. smalltalk.JtalkAndWebOS);
  1068. smalltalk.addMethod(
  1069. '_renderSlideOn_',
  1070. smalltalk.method({
  1071. selector: 'renderSlideOn:',
  1072. fn: function (html) {
  1073. var self = this;
  1074. smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", [function () {smalltalk.send(html, "_with_", ["Jtalk and "]);return function ($rec) {smalltalk.send($rec, "_class_", ["blue"]);return smalltalk.send($rec, "_with_", ["webOS"]);}(smalltalk.send(html, "_span", []));}]);
  1075. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", ["A really cool mobile OS based on Linux:"]);
  1076. smalltalk.send(smalltalk.send(html, "_ul", []), "_with_", [function () {smalltalk.send(smalltalk.send(html, "_li", []), "_with_", ["The primary language in webOS is Javascript"]);smalltalk.send(smalltalk.send(html, "_li", []), "_with_", ["The new UI framework for webOS 3.0 is called Enyo"]);smalltalk.send(smalltalk.send(html, "_li", []), "_with_", [unescape("Regular%20apps%20run%20in%20V8%20+%20Webkit")]);return smalltalk.send(smalltalk.send(html, "_li", []), "_with_", ["Background services run in Node.js"]);}]);
  1077. return self;
  1078. }
  1079. }),
  1080. smalltalk.JtalkAndWebOS);
  1081. smalltalk.addClass('JtalkAndEnyo', smalltalk.Slide, [], 'Presentation');
  1082. smalltalk.addMethod(
  1083. '_id',
  1084. smalltalk.method({
  1085. selector: 'id',
  1086. fn: function () {
  1087. var self = this;
  1088. return "JtalkAndEnyo";
  1089. return self;
  1090. }
  1091. }),
  1092. smalltalk.JtalkAndEnyo);
  1093. smalltalk.addMethod(
  1094. '_backgroundColor',
  1095. smalltalk.method({
  1096. selector: 'backgroundColor',
  1097. fn: function () {
  1098. var self = this;
  1099. return unescape("%230A1");
  1100. return self;
  1101. }
  1102. }),
  1103. smalltalk.JtalkAndEnyo);
  1104. smalltalk.addMethod(
  1105. '_renderSlideOn_',
  1106. smalltalk.method({
  1107. selector: 'renderSlideOn:',
  1108. fn: function (html) {
  1109. var self = this;
  1110. smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", [function () {smalltalk.send(html, "_with_", ["Jtalk and "]);return function ($rec) {smalltalk.send($rec, "_class_", ["blue"]);return smalltalk.send($rec, "_with_", ["Enyo"]);}(smalltalk.send(html, "_span", []));}]);
  1111. return self;
  1112. }
  1113. }),
  1114. smalltalk.JtalkAndEnyo);
  1115. smalltalk.addClass('PresentationNavigator', smalltalk.Widget, ['presentationBrush', 'currentPresentation', 'slideSelect'], 'Presentation');
  1116. smalltalk.addMethod(
  1117. '_renderToolsOn_',
  1118. smalltalk.method({
  1119. selector: 'renderToolsOn:',
  1120. fn: function (html) {
  1121. var self = this;
  1122. (function ($rec) {smalltalk.send($rec, "_with_", ["IDE"]);return smalltalk.send($rec, "_onClick_", [function () {return smalltalk.send(smalltalk.send(smalltalk.TabManager || TabManager, "_current", []), "_open", []);}]);}(smalltalk.send(html, "_a", [])));
  1123. (function ($rec) {smalltalk.send($rec, "_with_", ["Reload"]);return smalltalk.send($rec, "_onClick_", [function () {return smalltalk.send(self, "_reload", []);}]);}(smalltalk.send(html, "_a", [])));
  1124. (function ($rec) {smalltalk.send($rec, "_with_", [unescape("%u2190")]);return smalltalk.send($rec, "_onClick_", [function () {return smalltalk.send(self, "_previousSlide", []);}]);}(smalltalk.send(html, "_a", [])));
  1125. (function ($rec) {smalltalk.send($rec, "_with_", [unescape("%u2192")]);return smalltalk.send($rec, "_onClick_", [function () {return smalltalk.send(self, "_nextSlide", []);}]);}(smalltalk.send(html, "_a", [])));
  1126. return self;
  1127. }
  1128. }),
  1129. smalltalk.PresentationNavigator);
  1130. smalltalk.addMethod(
  1131. '_setKeybindings',
  1132. smalltalk.method({
  1133. selector: 'setKeybindings',
  1134. fn: function () {
  1135. var self = this;
  1136. smalltalk.send(smalltalk.send(typeof window == "undefined" ? nil : window, "_jQuery_", [typeof document == "undefined" ? nil : document]), "_keyup_", [function (e) {var node = nil;node = smalltalk.send(smalltalk.send(smalltalk.send(e, "_target", []), "_nodeName", []), "_asLowercase", []);return ($receiver = smalltalk.send(smalltalk.send(node, "__eq", ["textarea"]), "_or_", [function () {return smalltalk.send(node, "__eq", ["input"]);}])).klass === smalltalk.Boolean ? !$receiver ? function () {($receiver = smalltalk.send(smalltalk.send(e, "_keyCode", []), "__eq", [39])).klass === smalltalk.Boolean ? $receiver ? function () {return smalltalk.send(self, "_nextSlide", []);}() : nil : smalltalk.send($receiver, "_ifTrue_", [function () {return smalltalk.send(self, "_nextSlide", []);}]);return ($receiver = smalltalk.send(smalltalk.send(e, "_keyCode", []), "__eq", [37])).klass === smalltalk.Boolean ? $receiver ? function () {return smalltalk.send(self, "_previousSlide", []);}() : nil : smalltalk.send($receiver, "_ifTrue_", [function () {return smalltalk.send(self, "_previousSlide", []);}]);}() : nil : smalltalk.send($receiver, "_ifFalse_", [function () {($receiver = smalltalk.send(smalltalk.send(e, "_keyCode", []), "__eq", [39])).klass === smalltalk.Boolean ? $receiver ? function () {return smalltalk.send(self, "_nextSlide", []);}() : nil : smalltalk.send($receiver, "_ifTrue_", [function () {return smalltalk.send(self, "_nextSlide", []);}]);return ($receiver = smalltalk.send(smalltalk.send(e, "_keyCode", []), "__eq", [37])).klass === smalltalk.Boolean ? $receiver ? function () {return smalltalk.send(self, "_previousSlide", []);}() : nil : smalltalk.send($receiver, "_ifTrue_", [function () {return smalltalk.send(self, "_previousSlide", []);}]);}]);}]);
  1137. return self;
  1138. }
  1139. }),
  1140. smalltalk.PresentationNavigator);
  1141. smalltalk.addMethod(
  1142. '_checkHash',
  1143. smalltalk.method({
  1144. selector: 'checkHash',
  1145. fn: function (){
  1146. var self=this;
  1147. try{var hash=nil;
  1148. var presentation=nil;
  1149. hash=smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send((typeof document == 'undefined' ? nil : document), "_location", []), "_hash", []), "_replace_with_", [unescape("%5E%23"), ""]), "_tokenize_", [unescape("-")]);
  1150. presentation=smalltalk.send(smalltalk.send((smalltalk.Presentation || Presentation), "_concretePresentations", []), "_detect_ifNone_", [(function(aPresentationClass){return smalltalk.send(smalltalk.send(aPresentationClass, "_name", []), "__eq_eq", [smalltalk.send(hash, "_first", [])]);}), (function(){return (function(){throw({name: 'stReturn', selector: '_checkHash', fn: function(){return self}})})();})]);
  1151. ((($receiver = smalltalk.send(presentation, "__eq_eq", [smalltalk.send(smalltalk.send(self, "_currentPresentation", []), "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){smalltalk.send(self, "_selectPresentationNamed_", [presentation]);return smalltalk.send(self, "_selectSlideAt_", [smalltalk.send(hash, "_last", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){smalltalk.send(self, "_selectPresentationNamed_", [presentation]);return smalltalk.send(self, "_selectSlideAt_", [smalltalk.send(hash, "_last", [])]);})]));
  1152. return self;
  1153. } catch(e) {if(e.name === 'stReturn' && e.selector === '_checkHash'){return e.fn()} throw(e)}}
  1154. }),
  1155. smalltalk.PresentationNavigator);
  1156. smalltalk.addMethod(
  1157. '_checkHashChange',
  1158. smalltalk.method({
  1159. selector: 'checkHashChange',
  1160. fn: function () {
  1161. var self = this;
  1162. smalltalk.send(smalltalk.send(typeof window == "undefined" ? nil : window, "_jQuery_", [typeof window == "undefined" ? nil : window]), "_bind_do_", ["hashchange", function () {return smalltalk.send(self, "_checkHash", []);}]);
  1163. return self;
  1164. }
  1165. }),
  1166. smalltalk.PresentationNavigator);
  1167. smalltalk.addMethod(
  1168. '_renderPresentationSelectOn_',
  1169. smalltalk.method({
  1170. selector: 'renderPresentationSelectOn:',
  1171. fn: function (html) {
  1172. var self = this;
  1173. var presentationSelect = nil;
  1174. presentationSelect = smalltalk.send(html, "_select", []);
  1175. (function ($rec) {smalltalk.send($rec, "_onChange_", [function () {return smalltalk.send(self, "_selectPresentationNamed_", [smalltalk.send(smalltalk.send(presentationSelect, "_asJQuery", []), "_val", [])]);}]);return smalltalk.send($rec, "_with_", [function () {return smalltalk.send(smalltalk.Presentation || Presentation, "_concretePresentationsDo_", [function (aPresentationClass) {return function ($rec) {smalltalk.send($rec, "_value_", [smalltalk.send(aPresentationClass, "_name", [])]);return smalltalk.send($rec, "_with_", [smalltalk.send(aPresentationClass, "_title", [])]);}(smalltalk.send(html, "_option", []));}]);}]);}(presentationSelect));
  1176. return self;
  1177. }
  1178. }),
  1179. smalltalk.PresentationNavigator);
  1180. smalltalk.addMethod(
  1181. '_open',
  1182. smalltalk.method({
  1183. selector: 'open',
  1184. fn: function () {
  1185. var self = this;
  1186. smalltalk.send(smalltalk.send(typeof window == "undefined" ? nil : window, "_jQuery_", [typeof document == "undefined" ? nil : document]), "_ready_", [function () {return function ($rec) {smalltalk.send($rec, "_appendToJQuery_", [smalltalk.send("body", "_asJQuery", [])]);smalltalk.send($rec, "_setKeybindings", []);return smalltalk.send($rec, "_checkHashChange", []);}(self);}]);
  1187. return self;
  1188. }
  1189. }),
  1190. smalltalk.PresentationNavigator);
  1191. smalltalk.addMethod(
  1192. '_renderOn_',
  1193. smalltalk.method({
  1194. selector: 'renderOn:',
  1195. fn: function (html){
  1196. var self=this;
  1197. (function($rec){smalltalk.send($rec, "_type_", [unescape("text/css")]);return smalltalk.send($rec, "_with_", [smalltalk.send(self, "_style", [])]);})(smalltalk.send(html, "_style", []));
  1198. (function($rec){smalltalk.send($rec, "_id_", ["navigator"]);return smalltalk.send($rec, "_with_", [(function(){return (function($rec){smalltalk.send($rec, "_renderToolsOn_", [html]);smalltalk.send($rec, "_renderPresentationSelectOn_", [html]);return smalltalk.send($rec, "_renderSlideSelectOn_", [html]);})(self);})]);})(smalltalk.send(html, "_div", []));
  1199. self['@presentationBrush']=(function($rec){smalltalk.send($rec, "_id_", ["presentation"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", []));
  1200. smalltalk.send(self, "_checkHash", []);
  1201. smalltalk.send(self, "_renderCurrentPresentation", []);
  1202. return self;}
  1203. }),
  1204. smalltalk.PresentationNavigator);
  1205. smalltalk.addMethod(
  1206. '_selectPresentation_',
  1207. smalltalk.method({
  1208. selector: 'selectPresentation:',
  1209. fn: function (aPresentationClass) {
  1210. var self = this;
  1211. smalltalk.send(self, "_currentPresentation_", [smalltalk.send(aPresentationClass, "_new", [])]);
  1212. smalltalk.send(self, "_renderCurrentPresentation", []);
  1213. return self;
  1214. }
  1215. }),
  1216. smalltalk.PresentationNavigator);
  1217. smalltalk.addMethod(
  1218. '_currentPresentation_',
  1219. smalltalk.method({
  1220. selector: 'currentPresentation:',
  1221. fn: function (aPresentation) {
  1222. var self = this;
  1223. self['@currentPresentation'] = aPresentation;
  1224. return self;
  1225. }
  1226. }),
  1227. smalltalk.PresentationNavigator);
  1228. smalltalk.addMethod(
  1229. '_currentPresentation',
  1230. smalltalk.method({
  1231. selector: 'currentPresentation',
  1232. fn: function () {
  1233. var self = this;
  1234. return ($receiver = self['@currentPresentation']) == nil ||
  1235. $receiver == undefined ? function () {return self['@currentPresentation'] = smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Presentation || Presentation, "_concretePresentations", []), "_first", []), "_new", []);}() : $receiver;
  1236. return self;
  1237. }
  1238. }),
  1239. smalltalk.PresentationNavigator);
  1240. smalltalk.addMethod(
  1241. '_selectPresentationNamed_',
  1242. smalltalk.method({
  1243. selector: 'selectPresentationNamed:',
  1244. fn: function (aString){
  1245. var self=this;
  1246. var presentationClass=nil;
  1247. presentationClass=smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_at_", [aString]);
  1248. (($receiver = presentationClass) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_selectPresentation_", [presentationClass]);})() : nil;
  1249. return self;}
  1250. }),
  1251. smalltalk.PresentationNavigator);
  1252. smalltalk.addMethod(
  1253. '_style',
  1254. smalltalk.method({
  1255. selector: 'style',
  1256. fn: function () {
  1257. var self = this;
  1258. return unescape("%0A%23navigator%20%7B%0A%20%20%20%20z-index%3A%201%3B%0A%20%20%20%20position%3A%20fixed%3B%0A%20%20%20%20top%3A%200%3B%0A%20%20%20%20left%3A%2050%25%3B%0A%20%20%20%20margin-left%3A%20-150px%3B%0A%20%20%20%20padding%3A%205px%3B%0A%20%20%20%20border-radius%3A%205px%3B%0A%20%20%20%20-moz-border-radius%3A%205px%3B%0A%20%20%20%20-webkit-border-radius%3A%205px%3B%0A%20%20%20%20background%3A%20%23333%3B%0A%20%20%20%20opacity%3A%200.3%3B%0A%20%20%20%20color%3A%20%23eee%3B%0A%7D%0A%0A%23navigator%20a%20%7B%0A%20%20%20%20font-weight%3A%20bold%3B%0A%20%20%20%20color%3A%20%23eee%3B%0A%20%20%20%20text-decoration%3A%20none%3B%0A%20%20%20%20cursor%3A%20pointer%3B%0A%20%20%20%20padding%3A%200%202px%3B%0A%20%20%20%20font-size%3A%2014px%3B%0A%7D%0A%0A%23navigator%3Ahover%20%7B%0A%20%20%20%20opacity%3A%200.8%3B%0A%7D%0A");
  1259. return self;
  1260. }
  1261. }),
  1262. smalltalk.PresentationNavigator);
  1263. smalltalk.addMethod(
  1264. '_renderCurrentPresentation',
  1265. smalltalk.method({
  1266. selector: 'renderCurrentPresentation',
  1267. fn: function (){
  1268. var self=this;
  1269. smalltalk.send(self['@presentationBrush'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_currentPresentation", []), "_renderOn_", [html]);})]);
  1270. smalltalk.send(self, "_updateSlideSelect", []);
  1271. return self;}
  1272. }),
  1273. smalltalk.PresentationNavigator);
  1274. smalltalk.addMethod(
  1275. '_previousSlide',
  1276. smalltalk.method({
  1277. selector: 'previousSlide',
  1278. fn: function (){
  1279. var self=this;
  1280. smalltalk.send(smalltalk.send(self, "_currentPresentation", []), "_previousSlide", []);
  1281. smalltalk.send(self, "_updateHash", []);
  1282. return self;}
  1283. }),
  1284. smalltalk.PresentationNavigator);
  1285. smalltalk.addMethod(
  1286. '_nextSlide',
  1287. smalltalk.method({
  1288. selector: 'nextSlide',
  1289. fn: function (){
  1290. var self=this;
  1291. smalltalk.send(smalltalk.send(self, "_currentPresentation", []), "_nextSlide", []);
  1292. smalltalk.send(self, "_updateHash", []);
  1293. return self;}
  1294. }),
  1295. smalltalk.PresentationNavigator);
  1296. smalltalk.addMethod(
  1297. '_reload',
  1298. smalltalk.method({
  1299. selector: 'reload',
  1300. fn: function () {
  1301. var self = this;
  1302. smalltalk.send(self, "_currentPresentation_", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_currentPresentation", []), "_class", []), "_new", [])]);
  1303. smalltalk.send(self, "_renderCurrentPresentation", []);
  1304. return self;
  1305. }
  1306. }),
  1307. smalltalk.PresentationNavigator);
  1308. smalltalk.addMethod(
  1309. '_renderSlideSelectOn_',
  1310. smalltalk.method({
  1311. selector: 'renderSlideSelectOn:',
  1312. fn: function (html){
  1313. var self=this;
  1314. self['@slideSelect']=smalltalk.send(html, "_select", []);
  1315. smalltalk.send(self['@slideSelect'], "_onChange_", [(function(){return smalltalk.send(self, "_selectSlideAt_", [smalltalk.send(smalltalk.send(self['@slideSelect'], "_asJQuery", []), "_val", [])]);})]);
  1316. smalltalk.send(self, "_updateSlideSelect", []);
  1317. return self;}
  1318. }),
  1319. smalltalk.PresentationNavigator);
  1320. smalltalk.addMethod(
  1321. '_selectSlideAt_',
  1322. smalltalk.method({
  1323. selector: 'selectSlideAt:',
  1324. fn: function (anInteger){
  1325. var self=this;
  1326. smalltalk.send(smalltalk.send(self, "_currentPresentation", []), "_moveAt_", [anInteger]);
  1327. smalltalk.send(self, "_updateHash", []);
  1328. return self;}
  1329. }),
  1330. smalltalk.PresentationNavigator);
  1331. smalltalk.addMethod(
  1332. '_updateSlideSelect',
  1333. smalltalk.method({
  1334. selector: 'updateSlideSelect',
  1335. fn: function (){
  1336. var self=this;
  1337. smalltalk.send(self['@slideSelect'], "_contents_", [(function(html){var index=nil;
  1338. index=(0);return smalltalk.send(smalltalk.send(self, "_currentPresentation", []), "_slidesDo_", [(function(aSlide){index=((($receiver = index).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return (function($rec){smalltalk.send($rec, "_value_", [index]);return smalltalk.send($rec, "_with_", [smalltalk.send(aSlide, "_title", [])]);})(smalltalk.send(html, "_option", []));})]);})]);
  1339. return self;}
  1340. }),
  1341. smalltalk.PresentationNavigator);
  1342. smalltalk.addMethod(
  1343. '_updateHash',
  1344. smalltalk.method({
  1345. selector: 'updateHash',
  1346. fn: function (){
  1347. var self=this;
  1348. smalltalk.send(smalltalk.send((typeof document == 'undefined' ? nil : document), "_location", []), "_hash_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_currentPresentation", []), "_class", []), "_name", []), "__comma", [unescape("-")]), "__comma", [smalltalk.send(smalltalk.send(self, "_currentPresentation", []), "_currentSlideIndex", [])])]);
  1349. return self;}
  1350. }),
  1351. smalltalk.PresentationNavigator);
  1352. smalltalk.addMethod(
  1353. '_initialize',
  1354. smalltalk.method({
  1355. selector: 'initialize',
  1356. fn: function () {
  1357. var self = this;
  1358. return smalltalk.send(self, "_open", []);
  1359. return self;
  1360. }
  1361. }),
  1362. smalltalk.PresentationNavigator.klass);
  1363. smalltalk.addMethod(
  1364. '_open',
  1365. smalltalk.method({
  1366. selector: 'open',
  1367. fn: function () {
  1368. var self = this;
  1369. return smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
  1370. return self;
  1371. }
  1372. }),
  1373. smalltalk.PresentationNavigator.klass);