Presentation.deploy.js 63 KB

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