Presentation.deploy.js 67 KB

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