Presentation.deploy.js 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462
  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. smalltalk.send(smalltalk.send(typeof document == "undefined" ? nil : document, "_location", []), "_hash_", [smalltalk.send(self, "_id", [])]);
  64. ($receiver = smalltalk.send(self, "_backgroundColor", [])) != nil &&
  65. $receiver != undefined ? function () {return smalltalk.send(smalltalk.send(typeof window == "undefined" ? nil : window, "_jQuery_", [unescape("%23slides")]), "_css_color_", ["background", smalltalk.send(self, "_backgroundColor", [])]);}() : nil;
  66. smalltalk.send(smalltalk.send(typeof window == "undefined" ? nil : window, "_jQuery_", [".slide"]), "_hide_options_duration_", [smalltalk.send(smalltalk.send(self, "_presentation", []), "_slideTransition", []), [], 300]);
  67. 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]);
  68. return self;
  69. }
  70. }),
  71. smalltalk.Slide);
  72. smalltalk.addMethod(
  73. '_renderOn_',
  74. smalltalk.method({
  75. selector: 'renderOn:',
  76. fn: function (html) {
  77. var self = this;
  78. (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", [])));
  79. return self;
  80. }
  81. }),
  82. smalltalk.Slide);
  83. smalltalk.addMethod(
  84. '_renderSlideOn_',
  85. smalltalk.method({
  86. selector: 'renderSlideOn:',
  87. fn: function (html) {
  88. var self = this;
  89. return self;
  90. }
  91. }),
  92. smalltalk.Slide);
  93. smalltalk.addMethod(
  94. '_renderMetaOn_',
  95. smalltalk.method({
  96. selector: 'renderMetaOn:',
  97. fn: function (html) {
  98. var self = this;
  99. (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", [])));
  100. return self;
  101. }
  102. }),
  103. smalltalk.Slide);
  104. smalltalk.addMethod(
  105. '_on_',
  106. smalltalk.method({
  107. selector: 'on:',
  108. fn: function (aPresentation) {
  109. var self = this;
  110. return function ($rec) {smalltalk.send($rec, "_presentation_", [aPresentation]);return smalltalk.send($rec, "_yourself", []);}(smalltalk.send(self, "_new", []));
  111. return self;
  112. }
  113. }),
  114. smalltalk.Slide.klass);
  115. smalltalk.addClass('Presentation', smalltalk.Widget, ['currentSlide', 'slides'], 'Presentation');
  116. smalltalk.addMethod(
  117. '_title',
  118. smalltalk.method({
  119. selector: 'title',
  120. fn: function () {
  121. var self = this;
  122. return smalltalk.send(smalltalk.send(self, "_class", []), "_title", []);
  123. return self;
  124. }
  125. }),
  126. smalltalk.Presentation);
  127. smalltalk.addMethod(
  128. '_author',
  129. smalltalk.method({
  130. selector: 'author',
  131. fn: function () {
  132. var self = this;
  133. return "John Smith";
  134. return self;
  135. }
  136. }),
  137. smalltalk.Presentation);
  138. smalltalk.addMethod(
  139. '_url',
  140. smalltalk.method({
  141. selector: 'url',
  142. fn: function () {
  143. var self = this;
  144. return unescape("http%3A//jtalk-project.org");
  145. return self;
  146. }
  147. }),
  148. smalltalk.Presentation);
  149. smalltalk.addMethod(
  150. '_description',
  151. smalltalk.method({
  152. selector: 'description',
  153. fn: function () {
  154. var self = this;
  155. return "A presentation written in Jtalk";
  156. return self;
  157. }
  158. }),
  159. smalltalk.Presentation);
  160. smalltalk.addMethod(
  161. '_email',
  162. smalltalk.method({
  163. selector: 'email',
  164. fn: function () {
  165. var self = this;
  166. return unescape("john@smith.com");
  167. return self;
  168. }
  169. }),
  170. smalltalk.Presentation);
  171. smalltalk.addMethod(
  172. '_slides',
  173. smalltalk.method({
  174. selector: 'slides',
  175. fn: function () {
  176. var self = this;
  177. ($receiver = self['@slides']) == nil || $receiver == undefined ? function () {return smalltalk.send(self, "_initSlides", []);}() : $receiver;
  178. return self['@slides'];
  179. return self;
  180. }
  181. }),
  182. smalltalk.Presentation);
  183. smalltalk.addMethod(
  184. '_slideClasses',
  185. smalltalk.method({
  186. selector: 'slideClasses',
  187. fn: function () {
  188. var self = this;
  189. return smalltalk.send(self, "_subclassResponsibility", []);
  190. return self;
  191. }
  192. }),
  193. smalltalk.Presentation);
  194. smalltalk.addMethod(
  195. '_currentSlide',
  196. smalltalk.method({
  197. selector: 'currentSlide',
  198. fn: function () {
  199. var self = this;
  200. return self['@currentSlide'];
  201. return self;
  202. }
  203. }),
  204. smalltalk.Presentation);
  205. smalltalk.addMethod(
  206. '_currentSlide_',
  207. smalltalk.method({
  208. selector: 'currentSlide:',
  209. fn: function (aSlide) {
  210. var self = this;
  211. self['@currentSlide'] = aSlide;
  212. return self;
  213. }
  214. }),
  215. smalltalk.Presentation);
  216. smalltalk.addMethod(
  217. '_slideTransition',
  218. smalltalk.method({
  219. selector: 'slideTransition',
  220. fn: function () {
  221. var self = this;
  222. return "fade";
  223. return self;
  224. }
  225. }),
  226. smalltalk.Presentation);
  227. smalltalk.addMethod(
  228. '_style',
  229. smalltalk.method({
  230. selector: 'style',
  231. fn: function () {
  232. var self = this;
  233. return "";
  234. return self;
  235. }
  236. }),
  237. smalltalk.Presentation);
  238. smalltalk.addMethod(
  239. '_nextSlide',
  240. smalltalk.method({
  241. selector: 'nextSlide',
  242. fn: function () {
  243. var self = this;
  244. var next = nil;
  245. ($receiver = smalltalk.send(self, "_currentSlide", [])) != nil &&
  246. $receiver != undefined ? function () {next = smalltalk.send(smalltalk.send(self, "_slides", []), "_at_ifAbsent_", [($receiver = smalltalk.send(smalltalk.send(self, "_slides", []), "_indexOf_", [smalltalk.send(self, "_currentSlide", [])])).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;
  247. return self;
  248. }
  249. }),
  250. smalltalk.Presentation);
  251. smalltalk.addMethod(
  252. '_showCurrentSlide',
  253. smalltalk.method({
  254. selector: 'showCurrentSlide',
  255. fn: function () {
  256. var self = this;
  257. ($receiver = smalltalk.send(self, "_currentSlide", [])) != nil &&
  258. $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;
  259. return self;
  260. }
  261. }),
  262. smalltalk.Presentation);
  263. smalltalk.addMethod(
  264. '_previousSlide',
  265. smalltalk.method({
  266. selector: 'previousSlide',
  267. fn: function () {
  268. var self = this;
  269. var next = nil;
  270. ($receiver = smalltalk.send(self, "_currentSlide", [])) != nil &&
  271. $receiver != undefined ? function () {next = smalltalk.send(smalltalk.send(self, "_slides", []), "_at_ifAbsent_", [($receiver = smalltalk.send(smalltalk.send(self, "_slides", []), "_indexOf_", [smalltalk.send(self, "_currentSlide", [])])).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;
  272. return self;
  273. }
  274. }),
  275. smalltalk.Presentation);
  276. smalltalk.addMethod(
  277. '_checkHash',
  278. smalltalk.method({
  279. selector: 'checkHash',
  280. fn: function () {
  281. var self = this;
  282. var hash = nil;
  283. var slide = nil;
  284. hash = smalltalk.send(smalltalk.send(smalltalk.send(typeof document == "undefined" ? nil : document, "_location", []), "_hash", []), "_replace_with_", [unescape("%5E%23"), ""]);
  285. slide = smalltalk.send(smalltalk.send(self, "_slides", []), "_detect_ifNone_", [function (each) {return smalltalk.send(smalltalk.send(each, "_id", []), "__eq", [hash]);}, function () {return nil;}]);
  286. ($receiver = slide) != nil && $receiver != undefined ? function () {return ($receiver = smalltalk.send(smalltalk.send(self, "_currentSlide", []), "__eq", [slide])).klass === smalltalk.Boolean ? !$receiver ? function () {smalltalk.send(self, "_currentSlide_", [slide]);return smalltalk.send(slide, "_show", []);}() : nil : smalltalk.send($receiver, "_ifFalse_", [function () {smalltalk.send(self, "_currentSlide_", [slide]);return smalltalk.send(slide, "_show", []);}]);}() : nil;
  287. return self;
  288. }
  289. }),
  290. smalltalk.Presentation);
  291. smalltalk.addMethod(
  292. '_initSlides',
  293. smalltalk.method({
  294. selector: 'initSlides',
  295. fn: function () {
  296. var self = this;
  297. self['@slides'] = smalltalk.send(smalltalk.send(self, "_slideClasses", []), "_collect_", [function (each) {return smalltalk.send(each, "_on_", [self]);}]);
  298. return self;
  299. }
  300. }),
  301. smalltalk.Presentation);
  302. smalltalk.addMethod(
  303. '_renderOn_',
  304. smalltalk.method({
  305. selector: 'renderOn:',
  306. fn: function (html) {
  307. var self = this;
  308. (function ($rec) {smalltalk.send($rec, "_type_", [unescape("text/css")]);return smalltalk.send($rec, "_with_", [smalltalk.send(self, "_style", [])]);}(smalltalk.send(html, "_style", [])));
  309. (function ($rec) {smalltalk.send($rec, "_id_", ["slides"]);return smalltalk.send($rec, "_with_", [function () {return smalltalk.send(self, "_renderSlidesOn_", [html]);}]);}(smalltalk.send(html, "_div", [])));
  310. return self;
  311. }
  312. }),
  313. smalltalk.Presentation);
  314. smalltalk.addMethod(
  315. '_renderSlidesOn_',
  316. smalltalk.method({
  317. selector: 'renderSlidesOn:',
  318. fn: function (html) {
  319. var self = this;
  320. smalltalk.send(smalltalk.send(self, "_slides", []), "_do_", [function (each) {return smalltalk.send(each, "_renderOn_", [html]);}]);
  321. ($receiver = self['@currentSlide']) == nil ||
  322. $receiver == undefined ? function () {return self['@currentSlide'] = smalltalk.send(smalltalk.send(self, "_slides", []), "_first", []);}() : $receiver;
  323. smalltalk.send(self, "_showCurrentSlide", []);
  324. return self;
  325. }
  326. }),
  327. smalltalk.Presentation);
  328. smalltalk.Presentation.klass.iVarNames = ['current'];
  329. smalltalk.addMethod(
  330. '_isConcrete',
  331. smalltalk.method({
  332. selector: 'isConcrete',
  333. fn: function () {
  334. var self = this;
  335. return false;
  336. return self;
  337. }
  338. }),
  339. smalltalk.Presentation.klass);
  340. smalltalk.addMethod(
  341. '_concretePresentations',
  342. smalltalk.method({
  343. selector: 'concretePresentations',
  344. fn: function () {
  345. var self = this;
  346. return smalltalk.send(smalltalk.send(self, "_allSubclasses", []), "_select_", [function (aPresentationClass) {return smalltalk.send(aPresentationClass, "_isConcrete", []);}]);
  347. return self;
  348. }
  349. }),
  350. smalltalk.Presentation.klass);
  351. smalltalk.addMethod(
  352. '_title',
  353. smalltalk.method({
  354. selector: 'title',
  355. fn: function () {
  356. var self = this;
  357. return "Slides";
  358. return self;
  359. }
  360. }),
  361. smalltalk.Presentation.klass);
  362. smalltalk.addMethod(
  363. '_concretePresentationsDo_',
  364. smalltalk.method({
  365. selector: 'concretePresentationsDo:',
  366. fn: function (aBlockWithArg) {
  367. var self = this;
  368. smalltalk.send(smalltalk.send(self, "_concretePresentations", []), "_do_", [aBlockWithArg]);
  369. return self;
  370. }
  371. }),
  372. smalltalk.Presentation.klass);
  373. smalltalk.addClass('ESUG2011Presentation', smalltalk.Presentation, [], 'Presentation');
  374. smalltalk.addMethod(
  375. '_description',
  376. smalltalk.method({
  377. selector: 'description',
  378. fn: function () {
  379. var self = this;
  380. return unescape("ESUG%202011%2C%20Edinburgh");
  381. return self;
  382. }
  383. }),
  384. smalltalk.ESUG2011Presentation);
  385. smalltalk.addMethod(
  386. '_author',
  387. smalltalk.method({
  388. selector: 'author',
  389. fn: function () {
  390. var self = this;
  391. return "Nicolas Petton";
  392. return self;
  393. }
  394. }),
  395. smalltalk.ESUG2011Presentation);
  396. smalltalk.addMethod(
  397. '_email',
  398. smalltalk.method({
  399. selector: 'email',
  400. fn: function () {
  401. var self = this;
  402. return unescape("nico@objectfusion.fr");
  403. return self;
  404. }
  405. }),
  406. smalltalk.ESUG2011Presentation);
  407. smalltalk.addMethod(
  408. '_url',
  409. smalltalk.method({
  410. selector: 'url',
  411. fn: function () {
  412. var self = this;
  413. return unescape("http%3A//jtalk-project.org");
  414. return self;
  415. }
  416. }),
  417. smalltalk.ESUG2011Presentation);
  418. smalltalk.addMethod(
  419. '_slideClasses',
  420. smalltalk.method({
  421. selector: 'slideClasses',
  422. fn: function () {
  423. var self = this;
  424. 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", []));
  425. return self;
  426. }
  427. }),
  428. smalltalk.ESUG2011Presentation);
  429. smalltalk.addMethod(
  430. '_style',
  431. smalltalk.method({
  432. selector: 'style',
  433. fn: function () {
  434. var self = this;
  435. 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");
  436. return self;
  437. }
  438. }),
  439. smalltalk.ESUG2011Presentation);
  440. smalltalk.ESUG2011Presentation.klass.iVarNames = ['current'];
  441. smalltalk.addMethod(
  442. '_isConcrete',
  443. smalltalk.method({
  444. selector: 'isConcrete',
  445. fn: function () {
  446. var self = this;
  447. return true;
  448. return self;
  449. }
  450. }),
  451. smalltalk.ESUG2011Presentation.klass);
  452. smalltalk.addMethod(
  453. '_title',
  454. smalltalk.method({
  455. selector: 'title',
  456. fn: function () {
  457. var self = this;
  458. return "Jtalk";
  459. return self;
  460. }
  461. }),
  462. smalltalk.ESUG2011Presentation.klass);
  463. smalltalk.addClass('IntroSlide', smalltalk.Slide, [], 'Presentation');
  464. smalltalk.addMethod(
  465. '_id',
  466. smalltalk.method({
  467. selector: 'id',
  468. fn: function () {
  469. var self = this;
  470. return "intro";
  471. return self;
  472. }
  473. }),
  474. smalltalk.IntroSlide);
  475. smalltalk.addMethod(
  476. '_cssClass',
  477. smalltalk.method({
  478. selector: 'cssClass',
  479. fn: function () {
  480. var self = this;
  481. return "slide black";
  482. return self;
  483. }
  484. }),
  485. smalltalk.IntroSlide);
  486. smalltalk.addMethod(
  487. '_renderSlideOn_',
  488. smalltalk.method({
  489. selector: 'renderSlideOn:',
  490. fn: function (html) {
  491. var self = this;
  492. (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", [])));
  493. return self;
  494. }
  495. }),
  496. smalltalk.IntroSlide);
  497. smalltalk.addClass('WhatIsJtalkSlide', smalltalk.Slide, [], 'Presentation');
  498. smalltalk.addMethod(
  499. '_id',
  500. smalltalk.method({
  501. selector: 'id',
  502. fn: function () {
  503. var self = this;
  504. return "WhatIsJtalk";
  505. return self;
  506. }
  507. }),
  508. smalltalk.WhatIsJtalkSlide);
  509. smalltalk.addMethod(
  510. '_renderSlideOn_',
  511. smalltalk.method({
  512. selector: 'renderSlideOn:',
  513. fn: function (html) {
  514. var self = this;
  515. (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", [])));
  516. return self;
  517. }
  518. }),
  519. smalltalk.WhatIsJtalkSlide);
  520. smalltalk.addClass('JtalkFeaturesSlide', smalltalk.Slide, [], 'Presentation');
  521. smalltalk.addMethod(
  522. '_id',
  523. smalltalk.method({
  524. selector: 'id',
  525. fn: function () {
  526. var self = this;
  527. return "features";
  528. return self;
  529. }
  530. }),
  531. smalltalk.JtalkFeaturesSlide);
  532. smalltalk.addMethod(
  533. '_renderSlideOn_',
  534. smalltalk.method({
  535. selector: 'renderSlideOn:',
  536. fn: function (html) {
  537. var self = this;
  538. smalltalk.send(smalltalk.send(html, "_h1", []), "_with_", ["Jtalk features"]);
  539. 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"]);}]);}]);
  540. return self;
  541. }
  542. }),
  543. smalltalk.JtalkFeaturesSlide);
  544. smalltalk.addClass('AboutSlide', smalltalk.Slide, [], 'Presentation');
  545. smalltalk.addMethod(
  546. '_id',
  547. smalltalk.method({
  548. selector: 'id',
  549. fn: function () {
  550. var self = this;
  551. return "about";
  552. return self;
  553. }
  554. }),
  555. smalltalk.AboutSlide);
  556. smalltalk.addMethod(
  557. '_cssClass',
  558. smalltalk.method({
  559. selector: 'cssClass',
  560. fn: function () {
  561. var self = this;
  562. return "slide transparent white";
  563. return self;
  564. }
  565. }),
  566. smalltalk.AboutSlide);
  567. smalltalk.addMethod(
  568. '_backgroundColor',
  569. smalltalk.method({
  570. selector: 'backgroundColor',
  571. fn: function () {
  572. var self = this;
  573. return "white";
  574. return self;
  575. }
  576. }),
  577. smalltalk.AboutSlide);
  578. smalltalk.addMethod(
  579. '_renderSlideOn_',
  580. smalltalk.method({
  581. selector: 'renderSlideOn:',
  582. fn: function (html) {
  583. var self = this;
  584. (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", [])));
  585. return self;
  586. }
  587. }),
  588. smalltalk.AboutSlide);
  589. smalltalk.addClass('JtalkAndJavascriptSlide3', smalltalk.Slide, [], 'Presentation');
  590. smalltalk.addMethod(
  591. '_id',
  592. smalltalk.method({
  593. selector: 'id',
  594. fn: function () {
  595. var self = this;
  596. return "jtalkAndJs3";
  597. return self;
  598. }
  599. }),
  600. smalltalk.JtalkAndJavascriptSlide3);
  601. smalltalk.addMethod(
  602. '_backgroundColor',
  603. smalltalk.method({
  604. selector: 'backgroundColor',
  605. fn: function () {
  606. var self = this;
  607. return unescape("%2308C");
  608. return self;
  609. }
  610. }),
  611. smalltalk.JtalkAndJavascriptSlide3);
  612. smalltalk.addMethod(
  613. '_renderSlideOn_',
  614. smalltalk.method({
  615. selector: 'renderSlideOn:',
  616. fn: function (html) {
  617. var self = this;
  618. 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"]);}]);
  619. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", [unescape("Smalltalk%20%u21D2%20JavaScript")]);
  620. 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", []));}]);
  621. return self;
  622. }
  623. }),
  624. smalltalk.JtalkAndJavascriptSlide3);
  625. smalltalk.addClass('JtalkAndJavascriptSlide2', smalltalk.Slide, [], 'Presentation');
  626. smalltalk.addMethod(
  627. '_id',
  628. smalltalk.method({
  629. selector: 'id',
  630. fn: function () {
  631. var self = this;
  632. return "jtalkAndJs2";
  633. return self;
  634. }
  635. }),
  636. smalltalk.JtalkAndJavascriptSlide2);
  637. smalltalk.addMethod(
  638. '_backgroundColor',
  639. smalltalk.method({
  640. selector: 'backgroundColor',
  641. fn: function () {
  642. var self = this;
  643. return unescape("%2308C");
  644. return self;
  645. }
  646. }),
  647. smalltalk.JtalkAndJavascriptSlide2);
  648. smalltalk.addMethod(
  649. '_renderSlideOn_',
  650. smalltalk.method({
  651. selector: 'renderSlideOn:',
  652. fn: function (html) {
  653. var self = this;
  654. 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"]);}]);
  655. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", ["Jtalk maps one to one with the JavaScript equivalent:"]);
  656. 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."]);}]);
  657. return self;
  658. }
  659. }),
  660. smalltalk.JtalkAndJavascriptSlide2);
  661. smalltalk.addClass('JtalkAndJavascriptSlide', smalltalk.Slide, [], 'Presentation');
  662. smalltalk.addMethod(
  663. '_id',
  664. smalltalk.method({
  665. selector: 'id',
  666. fn: function () {
  667. var self = this;
  668. return "jtalkAndJs";
  669. return self;
  670. }
  671. }),
  672. smalltalk.JtalkAndJavascriptSlide);
  673. smalltalk.addMethod(
  674. '_cssClass',
  675. smalltalk.method({
  676. selector: 'cssClass',
  677. fn: function () {
  678. var self = this;
  679. return "slide transparent";
  680. return self;
  681. }
  682. }),
  683. smalltalk.JtalkAndJavascriptSlide);
  684. smalltalk.addMethod(
  685. '_backgroundColor',
  686. smalltalk.method({
  687. selector: 'backgroundColor',
  688. fn: function () {
  689. var self = this;
  690. return unescape("%2308C");
  691. return self;
  692. }
  693. }),
  694. smalltalk.JtalkAndJavascriptSlide);
  695. smalltalk.addMethod(
  696. '_renderSlideOn_',
  697. smalltalk.method({
  698. selector: 'renderSlideOn:',
  699. fn: function (html) {
  700. var self = this;
  701. (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", [])));
  702. return self;
  703. }
  704. }),
  705. smalltalk.JtalkAndJavascriptSlide);
  706. smalltalk.addClass('WorkspaceSlide', smalltalk.Slide, [], 'Presentation');
  707. smalltalk.addMethod(
  708. '_id',
  709. smalltalk.method({
  710. selector: 'id',
  711. fn: function () {
  712. var self = this;
  713. return "workspace";
  714. return self;
  715. }
  716. }),
  717. smalltalk.WorkspaceSlide);
  718. smalltalk.addMethod(
  719. '_backgroundColor',
  720. smalltalk.method({
  721. selector: 'backgroundColor',
  722. fn: function () {
  723. var self = this;
  724. return unescape("%2318bd7d");
  725. return self;
  726. }
  727. }),
  728. smalltalk.WorkspaceSlide);
  729. smalltalk.addMethod(
  730. '_renderSlideOn_',
  731. smalltalk.method({
  732. selector: 'renderSlideOn:',
  733. fn: function (html) {
  734. var self = this;
  735. var workspace = nil;
  736. workspace = smalltalk.send(smalltalk.SourceArea || SourceArea, "_new", []);
  737. (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", [])));
  738. return self;
  739. }
  740. }),
  741. smalltalk.WorkspaceSlide);
  742. smalltalk.addClass('CountersSlide', smalltalk.Slide, [], 'Presentation');
  743. smalltalk.addMethod(
  744. '_id',
  745. smalltalk.method({
  746. selector: 'id',
  747. fn: function () {
  748. var self = this;
  749. return "counters";
  750. return self;
  751. }
  752. }),
  753. smalltalk.CountersSlide);
  754. smalltalk.addMethod(
  755. '_backgroundColor',
  756. smalltalk.method({
  757. selector: 'backgroundColor',
  758. fn: function () {
  759. var self = this;
  760. return unescape("%2318bd7d");
  761. return self;
  762. }
  763. }),
  764. smalltalk.CountersSlide);
  765. smalltalk.addMethod(
  766. '_renderSlideOn_',
  767. smalltalk.method({
  768. selector: 'renderSlideOn:',
  769. fn: function (html) {
  770. var self = this;
  771. (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", [])));
  772. return self;
  773. }
  774. }),
  775. smalltalk.CountersSlide);
  776. smalltalk.addClass('JtalkAndJavascriptSlide4', smalltalk.Slide, [], 'Presentation');
  777. smalltalk.addMethod(
  778. '_id',
  779. smalltalk.method({
  780. selector: 'id',
  781. fn: function () {
  782. var self = this;
  783. return "jtalkAndJs4";
  784. return self;
  785. }
  786. }),
  787. smalltalk.JtalkAndJavascriptSlide4);
  788. smalltalk.addMethod(
  789. '_backgroundColor',
  790. smalltalk.method({
  791. selector: 'backgroundColor',
  792. fn: function () {
  793. var self = this;
  794. return unescape("%2308C");
  795. return self;
  796. }
  797. }),
  798. smalltalk.JtalkAndJavascriptSlide4);
  799. smalltalk.addMethod(
  800. '_renderSlideOn_',
  801. smalltalk.method({
  802. selector: 'renderSlideOn:',
  803. fn: function (html) {
  804. var self = this;
  805. 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);}]);
  806. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", [unescape("JavaScript%20%u21D2%20Smalltalk")]);
  807. 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", []));}]);
  808. return self;
  809. }
  810. }),
  811. smalltalk.JtalkAndJavascriptSlide4);
  812. smalltalk.addClass('IDESlide', smalltalk.Slide, [], 'Presentation');
  813. smalltalk.addMethod(
  814. '_id',
  815. smalltalk.method({
  816. selector: 'id',
  817. fn: function () {
  818. var self = this;
  819. return "ide";
  820. return self;
  821. }
  822. }),
  823. smalltalk.IDESlide);
  824. smalltalk.addMethod(
  825. '_backgroundColor',
  826. smalltalk.method({
  827. selector: 'backgroundColor',
  828. fn: function () {
  829. var self = this;
  830. return "black";
  831. return self;
  832. }
  833. }),
  834. smalltalk.IDESlide);
  835. smalltalk.addMethod(
  836. '_cssClass',
  837. smalltalk.method({
  838. selector: 'cssClass',
  839. fn: function () {
  840. var self = this;
  841. return "slide transparent";
  842. return self;
  843. }
  844. }),
  845. smalltalk.IDESlide);
  846. smalltalk.addMethod(
  847. '_renderSlideOn_',
  848. smalltalk.method({
  849. selector: 'renderSlideOn:',
  850. fn: function (html) {
  851. var self = this;
  852. return self;
  853. }
  854. }),
  855. smalltalk.IDESlide);
  856. smalltalk.addClass('ContributionsSlide', smalltalk.Slide, [], 'Presentation');
  857. smalltalk.addMethod(
  858. '_id',
  859. smalltalk.method({
  860. selector: 'id',
  861. fn: function () {
  862. var self = this;
  863. return "links";
  864. return self;
  865. }
  866. }),
  867. smalltalk.ContributionsSlide);
  868. smalltalk.addMethod(
  869. '_renderSlideOn_',
  870. smalltalk.method({
  871. selector: 'renderSlideOn:',
  872. fn: function (html) {
  873. var self = this;
  874. (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", [])));
  875. return self;
  876. }
  877. }),
  878. smalltalk.ContributionsSlide);
  879. smalltalk.addClass('JtalkAndCLI', smalltalk.Slide, [], 'Presentation');
  880. smalltalk.addMethod(
  881. '_backgroundColor',
  882. smalltalk.method({
  883. selector: 'backgroundColor',
  884. fn: function () {
  885. var self = this;
  886. return unescape("%230A1");
  887. return self;
  888. }
  889. }),
  890. smalltalk.JtalkAndCLI);
  891. smalltalk.addMethod(
  892. '_id',
  893. smalltalk.method({
  894. selector: 'id',
  895. fn: function () {
  896. var self = this;
  897. return "JtalkAndCLI";
  898. return self;
  899. }
  900. }),
  901. smalltalk.JtalkAndCLI);
  902. smalltalk.addMethod(
  903. '_renderSlideOn_',
  904. smalltalk.method({
  905. selector: 'renderSlideOn:',
  906. fn: function (html) {
  907. var self = this;
  908. 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", []));}]);
  909. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", [unescape("jtalkc%20-%20a%20fairly%20elaborate%20bash%20script%20that%3A")]);
  910. 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"]);}]);
  911. return self;
  912. }
  913. }),
  914. smalltalk.JtalkAndCLI);
  915. smalltalk.addClass('JtalkAndNode', smalltalk.Slide, [], 'Presentation');
  916. smalltalk.addMethod(
  917. '_backgroundColor',
  918. smalltalk.method({
  919. selector: 'backgroundColor',
  920. fn: function () {
  921. var self = this;
  922. return unescape("%230A1");
  923. return self;
  924. }
  925. }),
  926. smalltalk.JtalkAndNode);
  927. smalltalk.addMethod(
  928. '_id',
  929. smalltalk.method({
  930. selector: 'id',
  931. fn: function () {
  932. var self = this;
  933. return "JtalkAndNode";
  934. return self;
  935. }
  936. }),
  937. smalltalk.JtalkAndNode);
  938. smalltalk.addMethod(
  939. '_renderSlideOn_',
  940. smalltalk.method({
  941. selector: 'renderSlideOn:',
  942. fn: function (html) {
  943. var self = this;
  944. 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", []));}]);
  945. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", ["Hello.st:"]);
  946. 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", []));}]);
  947. return self;
  948. }
  949. }),
  950. smalltalk.JtalkAndNode);
  951. smalltalk.addClass('JtalkAndNode2', smalltalk.Slide, [], 'Presentation');
  952. smalltalk.addMethod(
  953. '_backgroundColor',
  954. smalltalk.method({
  955. selector: 'backgroundColor',
  956. fn: function () {
  957. var self = this;
  958. return unescape("%230A1");
  959. return self;
  960. }
  961. }),
  962. smalltalk.JtalkAndNode2);
  963. smalltalk.addMethod(
  964. '_id',
  965. smalltalk.method({
  966. selector: 'id',
  967. fn: function () {
  968. var self = this;
  969. return "JtalkAndNode2";
  970. return self;
  971. }
  972. }),
  973. smalltalk.JtalkAndNode2);
  974. smalltalk.addMethod(
  975. '_renderSlideOn_',
  976. smalltalk.method({
  977. selector: 'renderSlideOn:',
  978. fn: function (html) {
  979. var self = this;
  980. 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", []));}]);
  981. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", ["Makefile:"]);
  982. 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", []));}]);
  983. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", ["hello:"]);
  984. 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", []));}]);
  985. return self;
  986. }
  987. }),
  988. smalltalk.JtalkAndNode2);
  989. smalltalk.addClass('JtalkAndNode3', smalltalk.Slide, [], 'Presentation');
  990. smalltalk.addMethod(
  991. '_backgroundColor',
  992. smalltalk.method({
  993. selector: 'backgroundColor',
  994. fn: function () {
  995. var self = this;
  996. return unescape("%230A1");
  997. return self;
  998. }
  999. }),
  1000. smalltalk.JtalkAndNode3);
  1001. smalltalk.addMethod(
  1002. '_id',
  1003. smalltalk.method({
  1004. selector: 'id',
  1005. fn: function () {
  1006. var self = this;
  1007. return "JtalkAndNode3";
  1008. return self;
  1009. }
  1010. }),
  1011. smalltalk.JtalkAndNode3);
  1012. smalltalk.addMethod(
  1013. '_renderSlideOn_',
  1014. smalltalk.method({
  1015. selector: 'renderSlideOn:',
  1016. fn: function (html) {
  1017. var self = this;
  1018. 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", []));}]);
  1019. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", [unescape("make%20clean%20%26%26%20make%20run%3A")]);
  1020. 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", []));}]);
  1021. return self;
  1022. }
  1023. }),
  1024. smalltalk.JtalkAndNode3);
  1025. smalltalk.addClass('JtalkAndWebOS', smalltalk.Slide, [], 'Presentation');
  1026. smalltalk.addMethod(
  1027. '_backgroundColor',
  1028. smalltalk.method({
  1029. selector: 'backgroundColor',
  1030. fn: function () {
  1031. var self = this;
  1032. return unescape("%230A1");
  1033. return self;
  1034. }
  1035. }),
  1036. smalltalk.JtalkAndWebOS);
  1037. smalltalk.addMethod(
  1038. '_id',
  1039. smalltalk.method({
  1040. selector: 'id',
  1041. fn: function () {
  1042. var self = this;
  1043. return "JtalkAndWebOS";
  1044. return self;
  1045. }
  1046. }),
  1047. smalltalk.JtalkAndWebOS);
  1048. smalltalk.addMethod(
  1049. '_renderSlideOn_',
  1050. smalltalk.method({
  1051. selector: 'renderSlideOn:',
  1052. fn: function (html) {
  1053. var self = this;
  1054. 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", []));}]);
  1055. smalltalk.send(smalltalk.send(html, "_h2", []), "_with_", ["A really cool mobile OS based on Linux:"]);
  1056. 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"]);}]);
  1057. return self;
  1058. }
  1059. }),
  1060. smalltalk.JtalkAndWebOS);
  1061. smalltalk.addClass('JtalkAndEnyo', smalltalk.Slide, [], 'Presentation');
  1062. smalltalk.addMethod(
  1063. '_id',
  1064. smalltalk.method({
  1065. selector: 'id',
  1066. fn: function () {
  1067. var self = this;
  1068. return "JtalkAndEnyo";
  1069. return self;
  1070. }
  1071. }),
  1072. smalltalk.JtalkAndEnyo);
  1073. smalltalk.addMethod(
  1074. '_backgroundColor',
  1075. smalltalk.method({
  1076. selector: 'backgroundColor',
  1077. fn: function () {
  1078. var self = this;
  1079. return unescape("%230A1");
  1080. return self;
  1081. }
  1082. }),
  1083. smalltalk.JtalkAndEnyo);
  1084. smalltalk.addMethod(
  1085. '_renderSlideOn_',
  1086. smalltalk.method({
  1087. selector: 'renderSlideOn:',
  1088. fn: function (html) {
  1089. var self = this;
  1090. 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", []));}]);
  1091. return self;
  1092. }
  1093. }),
  1094. smalltalk.JtalkAndEnyo);
  1095. smalltalk.addClass('PresentationNavigator', smalltalk.Widget, ['presentationBrush', 'currentPresentation'], 'Presentation');
  1096. smalltalk.addMethod(
  1097. '_renderToolsOn_',
  1098. smalltalk.method({
  1099. selector: 'renderToolsOn:',
  1100. fn: function (html) {
  1101. var self = this;
  1102. (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", [])));
  1103. (function ($rec) {smalltalk.send($rec, "_with_", ["Reload"]);return smalltalk.send($rec, "_onClick_", [function () {return smalltalk.send(self, "_reload", []);}]);}(smalltalk.send(html, "_a", [])));
  1104. (function ($rec) {smalltalk.send($rec, "_with_", [unescape("%u2190")]);return smalltalk.send($rec, "_onClick_", [function () {return smalltalk.send(self, "_previousSlide", []);}]);}(smalltalk.send(html, "_a", [])));
  1105. (function ($rec) {smalltalk.send($rec, "_with_", [unescape("%u2192")]);return smalltalk.send($rec, "_onClick_", [function () {return smalltalk.send(self, "_nextSlide", []);}]);}(smalltalk.send(html, "_a", [])));
  1106. return self;
  1107. }
  1108. }),
  1109. smalltalk.PresentationNavigator);
  1110. smalltalk.addMethod(
  1111. '_setKeybindings',
  1112. smalltalk.method({
  1113. selector: 'setKeybindings',
  1114. fn: function () {
  1115. var self = this;
  1116. 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", []);}]);}]);}]);
  1117. return self;
  1118. }
  1119. }),
  1120. smalltalk.PresentationNavigator);
  1121. smalltalk.addMethod(
  1122. '_checkHash',
  1123. smalltalk.method({
  1124. selector: 'checkHash',
  1125. fn: function () {
  1126. var self = this;
  1127. smalltalk.send(smalltalk.send(self, "_currentPresentation", []), "_checkHash", []);
  1128. return self;
  1129. }
  1130. }),
  1131. smalltalk.PresentationNavigator);
  1132. smalltalk.addMethod(
  1133. '_checkHashChange',
  1134. smalltalk.method({
  1135. selector: 'checkHashChange',
  1136. fn: function () {
  1137. var self = this;
  1138. smalltalk.send(smalltalk.send(typeof window == "undefined" ? nil : window, "_jQuery_", [typeof window == "undefined" ? nil : window]), "_bind_do_", ["hashchange", function () {return smalltalk.send(self, "_checkHash", []);}]);
  1139. return self;
  1140. }
  1141. }),
  1142. smalltalk.PresentationNavigator);
  1143. smalltalk.addMethod(
  1144. '_renderPresentationSelectOn_',
  1145. smalltalk.method({
  1146. selector: 'renderPresentationSelectOn:',
  1147. fn: function (html) {
  1148. var self = this;
  1149. var presentationSelect = nil;
  1150. presentationSelect = smalltalk.send(html, "_select", []);
  1151. (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));
  1152. return self;
  1153. }
  1154. }),
  1155. smalltalk.PresentationNavigator);
  1156. smalltalk.addMethod(
  1157. '_open',
  1158. smalltalk.method({
  1159. selector: 'open',
  1160. fn: function () {
  1161. var self = this;
  1162. 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);}]);
  1163. return self;
  1164. }
  1165. }),
  1166. smalltalk.PresentationNavigator);
  1167. smalltalk.addMethod(
  1168. '_renderOn_',
  1169. smalltalk.method({
  1170. selector: 'renderOn:',
  1171. fn: function (html) {
  1172. var self = this;
  1173. (function ($rec) {smalltalk.send($rec, "_type_", [unescape("text/css")]);return smalltalk.send($rec, "_with_", [smalltalk.send(self, "_style", [])]);}(smalltalk.send(html, "_style", [])));
  1174. (function ($rec) {smalltalk.send($rec, "_id_", ["navigator"]);return smalltalk.send($rec, "_with_", [function () {return function ($rec) {smalltalk.send($rec, "_renderToolsOn_", [html]);return smalltalk.send($rec, "_renderPresentationSelectOn_", [html]);}(self);}]);}(smalltalk.send(html, "_div", [])));
  1175. self['@presentationBrush'] = function ($rec) {smalltalk.send($rec, "_id_", ["presentation"]);return smalltalk.send($rec, "_yourself", []);}(smalltalk.send(html, "_div", []));
  1176. smalltalk.send(self, "_renderCurrentPresentation", []);
  1177. return self;
  1178. }
  1179. }),
  1180. smalltalk.PresentationNavigator);
  1181. smalltalk.addMethod(
  1182. '_selectPresentation_',
  1183. smalltalk.method({
  1184. selector: 'selectPresentation:',
  1185. fn: function (aPresentationClass) {
  1186. var self = this;
  1187. smalltalk.send(self, "_currentPresentation_", [smalltalk.send(aPresentationClass, "_new", [])]);
  1188. smalltalk.send(self, "_renderCurrentPresentation", []);
  1189. return self;
  1190. }
  1191. }),
  1192. smalltalk.PresentationNavigator);
  1193. smalltalk.addMethod(
  1194. '_currentPresentation_',
  1195. smalltalk.method({
  1196. selector: 'currentPresentation:',
  1197. fn: function (aPresentation) {
  1198. var self = this;
  1199. self['@currentPresentation'] = aPresentation;
  1200. return self;
  1201. }
  1202. }),
  1203. smalltalk.PresentationNavigator);
  1204. smalltalk.addMethod(
  1205. '_currentPresentation',
  1206. smalltalk.method({
  1207. selector: 'currentPresentation',
  1208. fn: function () {
  1209. var self = this;
  1210. return ($receiver = self['@currentPresentation']) == nil ||
  1211. $receiver == undefined ? function () {return self['@currentPresentation'] = smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Presentation || Presentation, "_concretePresentations", []), "_first", []), "_new", []);}() : $receiver;
  1212. return self;
  1213. }
  1214. }),
  1215. smalltalk.PresentationNavigator);
  1216. smalltalk.addMethod(
  1217. '_selectPresentationNamed_',
  1218. smalltalk.method({
  1219. selector: 'selectPresentationNamed:',
  1220. fn: function (aString) {
  1221. var self = this;
  1222. var presentationClass = nil;
  1223. presentationClass = smalltalk.send(smalltalk.send(smalltalk.Smalltalk || Smalltalk, "_current", []), "_at_", [aString]);
  1224. ($receiver = presentationClass) != nil && $receiver != undefined ? function () {return smalltalk.send(self, "_selectPresentation_", [presentationClass]);}() : nil;
  1225. return self;
  1226. }
  1227. }),
  1228. smalltalk.PresentationNavigator);
  1229. smalltalk.addMethod(
  1230. '_style',
  1231. smalltalk.method({
  1232. selector: 'style',
  1233. fn: function () {
  1234. var self = this;
  1235. 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");
  1236. return self;
  1237. }
  1238. }),
  1239. smalltalk.PresentationNavigator);
  1240. smalltalk.addMethod(
  1241. '_renderCurrentPresentation',
  1242. smalltalk.method({
  1243. selector: 'renderCurrentPresentation',
  1244. fn: function () {
  1245. var self = this;
  1246. smalltalk.send(self['@presentationBrush'], "_contents_", [function (html) {return function ($rec) {smalltalk.send($rec, "_renderOn_", [html]);return smalltalk.send($rec, "_checkHash", []);}(smalltalk.send(self, "_currentPresentation", []));}]);
  1247. return self;
  1248. }
  1249. }),
  1250. smalltalk.PresentationNavigator);
  1251. smalltalk.addMethod(
  1252. '_previousSlide',
  1253. smalltalk.method({
  1254. selector: 'previousSlide',
  1255. fn: function () {
  1256. var self = this;
  1257. smalltalk.send(smalltalk.send(self, "_currentPresentation", []), "_previousSlide", []);
  1258. return self;
  1259. }
  1260. }),
  1261. smalltalk.PresentationNavigator);
  1262. smalltalk.addMethod(
  1263. '_nextSlide',
  1264. smalltalk.method({
  1265. selector: 'nextSlide',
  1266. fn: function () {
  1267. var self = this;
  1268. smalltalk.send(smalltalk.send(self, "_currentPresentation", []), "_nextSlide", []);
  1269. return self;
  1270. }
  1271. }),
  1272. smalltalk.PresentationNavigator);
  1273. smalltalk.addMethod(
  1274. '_reload',
  1275. smalltalk.method({
  1276. selector: 'reload',
  1277. fn: function () {
  1278. var self = this;
  1279. smalltalk.send(self, "_currentPresentation_", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_currentPresentation", []), "_class", []), "_new", [])]);
  1280. smalltalk.send(self, "_renderCurrentPresentation", []);
  1281. return self;
  1282. }
  1283. }),
  1284. smalltalk.PresentationNavigator);
  1285. smalltalk.addMethod(
  1286. '_initialize',
  1287. smalltalk.method({
  1288. selector: 'initialize',
  1289. fn: function () {
  1290. var self = this;
  1291. return smalltalk.send(self, "_open", []);
  1292. return self;
  1293. }
  1294. }),
  1295. smalltalk.PresentationNavigator.klass);
  1296. smalltalk.addMethod(
  1297. '_open',
  1298. smalltalk.method({
  1299. selector: 'open',
  1300. fn: function () {
  1301. var self = this;
  1302. return smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
  1303. return self;
  1304. }
  1305. }),
  1306. smalltalk.PresentationNavigator.klass);