Presentation.js 197 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209
  1. (function(smalltalk,nil,_st){
  2. smalltalk.addPackage('Presentation');
  3. smalltalk.addClass('Presentation', smalltalk.Widget, ['currentSlide', 'slides'], 'Presentation');
  4. smalltalk.addMethod(
  5. smalltalk.method({
  6. selector: "author",
  7. category: 'accessing',
  8. fn: function (){
  9. var self=this;
  10. return smalltalk.withContext(function($ctx1) {
  11. return "John Smith";
  12. }, function($ctx1) {$ctx1.fill(self,"author",{},smalltalk.Presentation)})},
  13. args: [],
  14. source: "author\x0a\x09^'John Smith'",
  15. messageSends: [],
  16. referencedClasses: []
  17. }),
  18. smalltalk.Presentation);
  19. smalltalk.addMethod(
  20. smalltalk.method({
  21. selector: "currentSlide",
  22. category: 'accessing',
  23. fn: function (){
  24. var self=this;
  25. return smalltalk.withContext(function($ctx1) {
  26. var $1;
  27. $1=self["@currentSlide"];
  28. return $1;
  29. }, function($ctx1) {$ctx1.fill(self,"currentSlide",{},smalltalk.Presentation)})},
  30. args: [],
  31. source: "currentSlide\x0a\x09^currentSlide",
  32. messageSends: [],
  33. referencedClasses: []
  34. }),
  35. smalltalk.Presentation);
  36. smalltalk.addMethod(
  37. smalltalk.method({
  38. selector: "currentSlide:",
  39. category: 'accessing',
  40. fn: function (aSlide){
  41. var self=this;
  42. return smalltalk.withContext(function($ctx1) {
  43. self["@currentSlide"]=aSlide;
  44. return self}, function($ctx1) {$ctx1.fill(self,"currentSlide:",{aSlide:aSlide},smalltalk.Presentation)})},
  45. args: ["aSlide"],
  46. source: "currentSlide: aSlide\x0a\x09currentSlide := aSlide",
  47. messageSends: [],
  48. referencedClasses: []
  49. }),
  50. smalltalk.Presentation);
  51. smalltalk.addMethod(
  52. smalltalk.method({
  53. selector: "currentSlideIndex",
  54. category: 'actions',
  55. fn: function (){
  56. var self=this;
  57. return smalltalk.withContext(function($ctx1) {
  58. var $1;
  59. $1=_st(self._slides())._indexOf_ifAbsent_(self._currentSlide(),(function(){
  60. return smalltalk.withContext(function($ctx2) {
  61. return (1);
  62. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  63. return $1;
  64. }, function($ctx1) {$ctx1.fill(self,"currentSlideIndex",{},smalltalk.Presentation)})},
  65. args: [],
  66. source: "currentSlideIndex\x0a\x09^ self slides indexOf: self currentSlide ifAbsent: [1]",
  67. messageSends: ["indexOf:ifAbsent:", "currentSlide", "slides"],
  68. referencedClasses: []
  69. }),
  70. smalltalk.Presentation);
  71. smalltalk.addMethod(
  72. smalltalk.method({
  73. selector: "description",
  74. category: 'accessing',
  75. fn: function (){
  76. var self=this;
  77. return smalltalk.withContext(function($ctx1) {
  78. return "A presentation written in Jtalk";
  79. }, function($ctx1) {$ctx1.fill(self,"description",{},smalltalk.Presentation)})},
  80. args: [],
  81. source: "description\x0a\x09^'A presentation written in Jtalk'",
  82. messageSends: [],
  83. referencedClasses: []
  84. }),
  85. smalltalk.Presentation);
  86. smalltalk.addMethod(
  87. smalltalk.method({
  88. selector: "email",
  89. category: 'accessing',
  90. fn: function (){
  91. var self=this;
  92. return smalltalk.withContext(function($ctx1) {
  93. return "john@smith.com";
  94. }, function($ctx1) {$ctx1.fill(self,"email",{},smalltalk.Presentation)})},
  95. args: [],
  96. source: "email\x0a\x09^'john@smith.com'",
  97. messageSends: [],
  98. referencedClasses: []
  99. }),
  100. smalltalk.Presentation);
  101. smalltalk.addMethod(
  102. smalltalk.method({
  103. selector: "initSlides",
  104. category: 'initialization',
  105. fn: function (){
  106. var self=this;
  107. return smalltalk.withContext(function($ctx1) {
  108. self["@slides"]=_st(self._slideClasses())._collect_((function(each){
  109. return smalltalk.withContext(function($ctx2) {
  110. return _st(each)._on_(self);
  111. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  112. return self}, function($ctx1) {$ctx1.fill(self,"initSlides",{},smalltalk.Presentation)})},
  113. args: [],
  114. source: "initSlides\x0a\x09slides := self slideClasses collect: [:each | each on: self]",
  115. messageSends: ["collect:", "on:", "slideClasses"],
  116. referencedClasses: []
  117. }),
  118. smalltalk.Presentation);
  119. smalltalk.addMethod(
  120. smalltalk.method({
  121. selector: "moveAt:",
  122. category: 'actions',
  123. fn: function (anInteger){
  124. var self=this;
  125. var next;
  126. return smalltalk.withContext(function($ctx1) {
  127. var $1;
  128. next=_st(self._slides())._at_ifAbsent_(anInteger,(function(){
  129. return smalltalk.withContext(function($ctx2) {
  130. return nil;
  131. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  132. $1=next;
  133. if(($receiver = $1) == nil || $receiver == undefined){
  134. $1;
  135. } else {
  136. self["@currentSlide"]=next;
  137. self["@currentSlide"];
  138. _st(next)._show();
  139. };
  140. return self}, function($ctx1) {$ctx1.fill(self,"moveAt:",{anInteger:anInteger,next:next},smalltalk.Presentation)})},
  141. args: ["anInteger"],
  142. source: "moveAt: anInteger\x0a\x09| next |\x0a\x09next := self slides \x0a\x09\x09\x09at: anInteger\x0a\x09\x09\x09ifAbsent: [nil].\x0a\x09next ifNotNil: [currentSlide := next. next show]",
  143. messageSends: ["at:ifAbsent:", "slides", "ifNotNil:", "show"],
  144. referencedClasses: []
  145. }),
  146. smalltalk.Presentation);
  147. smalltalk.addMethod(
  148. smalltalk.method({
  149. selector: "nextSlide",
  150. category: 'actions',
  151. fn: function (){
  152. var self=this;
  153. var next;
  154. return smalltalk.withContext(function($ctx1) {
  155. var $1,$2;
  156. $1=self._currentSlide();
  157. if(($receiver = $1) == nil || $receiver == undefined){
  158. $1;
  159. } else {
  160. next=_st(self._slides())._at_ifAbsent_(_st(self._currentSlideIndex()).__plus((1)),(function(){
  161. return smalltalk.withContext(function($ctx2) {
  162. return nil;
  163. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  164. next;
  165. $2=next;
  166. if(($receiver = $2) == nil || $receiver == undefined){
  167. $2;
  168. } else {
  169. self["@currentSlide"]=next;
  170. self["@currentSlide"];
  171. _st(next)._show();
  172. };
  173. };
  174. return self}, function($ctx1) {$ctx1.fill(self,"nextSlide",{next:next},smalltalk.Presentation)})},
  175. args: [],
  176. source: "nextSlide\x0a\x09| next |\x0a\x09self currentSlide ifNotNil: [\x0a\x09\x09next := self slides \x0a\x09\x09\x09at: (self currentSlideIndex) + 1\x0a\x09\x09\x09ifAbsent: [nil].\x0a\x09\x09next ifNotNil: [currentSlide := next. next show]]",
  177. messageSends: ["ifNotNil:", "at:ifAbsent:", "+", "currentSlideIndex", "slides", "show", "currentSlide"],
  178. referencedClasses: []
  179. }),
  180. smalltalk.Presentation);
  181. smalltalk.addMethod(
  182. smalltalk.method({
  183. selector: "previousSlide",
  184. category: 'actions',
  185. fn: function (){
  186. var self=this;
  187. var next;
  188. return smalltalk.withContext(function($ctx1) {
  189. var $1,$2;
  190. $1=self._currentSlide();
  191. if(($receiver = $1) == nil || $receiver == undefined){
  192. $1;
  193. } else {
  194. next=_st(self._slides())._at_ifAbsent_(_st(self._currentSlideIndex()).__minus((1)),(function(){
  195. return smalltalk.withContext(function($ctx2) {
  196. return nil;
  197. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  198. next;
  199. $2=next;
  200. if(($receiver = $2) == nil || $receiver == undefined){
  201. $2;
  202. } else {
  203. self["@currentSlide"]=next;
  204. self["@currentSlide"];
  205. _st(next)._show();
  206. };
  207. };
  208. return self}, function($ctx1) {$ctx1.fill(self,"previousSlide",{next:next},smalltalk.Presentation)})},
  209. args: [],
  210. source: "previousSlide\x0a\x09| next |\x0a\x09self currentSlide ifNotNil: [\x0a\x09\x09next := self slides \x0a\x09\x09\x09at: (self currentSlideIndex) - 1\x0a\x09\x09\x09ifAbsent: [nil].\x0a\x09\x09next ifNotNil: [currentSlide := next. next show]]",
  211. messageSends: ["ifNotNil:", "at:ifAbsent:", "-", "currentSlideIndex", "slides", "show", "currentSlide"],
  212. referencedClasses: []
  213. }),
  214. smalltalk.Presentation);
  215. smalltalk.addMethod(
  216. smalltalk.method({
  217. selector: "renderOn:",
  218. category: 'rendering',
  219. fn: function (html){
  220. var self=this;
  221. return smalltalk.withContext(function($ctx1) {
  222. var $1,$2,$3,$4;
  223. $1=_st(html)._style();
  224. _st($1)._type_("text/css");
  225. $2=_st($1)._with_(self._style());
  226. $3=_st(html)._div();
  227. _st($3)._id_("slides");
  228. $4=_st($3)._with_((function(){
  229. return smalltalk.withContext(function($ctx2) {
  230. return self._renderSlidesOn_(html);
  231. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  232. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.Presentation)})},
  233. args: ["html"],
  234. source: "renderOn: html\x0a\x09html style\x0a\x09\x09type: 'text/css';\x0a\x09\x09with: self style.\x0a\x09html div \x0a\x09\x09id: 'slides';\x0a\x09\x09with: [self renderSlidesOn: html]",
  235. messageSends: ["type:", "style", "with:", "id:", "div", "renderSlidesOn:"],
  236. referencedClasses: []
  237. }),
  238. smalltalk.Presentation);
  239. smalltalk.addMethod(
  240. smalltalk.method({
  241. selector: "renderSlidesOn:",
  242. category: 'rendering',
  243. fn: function (html){
  244. var self=this;
  245. return smalltalk.withContext(function($ctx1) {
  246. var $1;
  247. _st(self._slides())._do_((function(each){
  248. return smalltalk.withContext(function($ctx2) {
  249. return _st(each)._renderOn_(html);
  250. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  251. $1=self["@currentSlide"];
  252. if(($receiver = $1) == nil || $receiver == undefined){
  253. self["@currentSlide"]=_st(self._slides())._first();
  254. self["@currentSlide"];
  255. } else {
  256. $1;
  257. };
  258. self._showCurrentSlide();
  259. return self}, function($ctx1) {$ctx1.fill(self,"renderSlidesOn:",{html:html},smalltalk.Presentation)})},
  260. args: ["html"],
  261. source: "renderSlidesOn: html\x0a\x09self slides do: [:each | \x0a\x09\x09each renderOn: html].\x0a\x09currentSlide ifNil: [currentSlide := self slides first].\x0a\x09self showCurrentSlide",
  262. messageSends: ["do:", "renderOn:", "slides", "ifNil:", "first", "showCurrentSlide"],
  263. referencedClasses: []
  264. }),
  265. smalltalk.Presentation);
  266. smalltalk.addMethod(
  267. smalltalk.method({
  268. selector: "showCurrentSlide",
  269. category: 'actions',
  270. fn: function (){
  271. var self=this;
  272. return smalltalk.withContext(function($ctx1) {
  273. var $1;
  274. $1=self._currentSlide();
  275. if(($receiver = $1) == nil || $receiver == undefined){
  276. $1;
  277. } else {
  278. _st(".slide"._asJQuery())._hide();
  279. _st(_st("#".__comma(_st(self._currentSlide())._id()))._asJQuery())._show();
  280. _st("title"._asJQuery())._text_(_st(_st(self._title()).__comma(" - ")).__comma(_st(self._currentSlide())._id()));
  281. };
  282. return self}, function($ctx1) {$ctx1.fill(self,"showCurrentSlide",{},smalltalk.Presentation)})},
  283. args: [],
  284. source: "showCurrentSlide\x0a\x09self currentSlide ifNotNil: [\x0a\x09\x09'.slide' asJQuery hide.\x0a\x09\x09('#', self currentSlide id) asJQuery show.\x0a \x09'title' asJQuery text: self title, ' - ', self currentSlide id.\x0a ]",
  285. messageSends: ["ifNotNil:", "hide", "asJQuery", "show", ",", "id", "currentSlide", "text:", "title"],
  286. referencedClasses: []
  287. }),
  288. smalltalk.Presentation);
  289. smalltalk.addMethod(
  290. smalltalk.method({
  291. selector: "slideClasses",
  292. category: 'accessing',
  293. fn: function (){
  294. var self=this;
  295. return smalltalk.withContext(function($ctx1) {
  296. var $1;
  297. $1=self._subclassResponsibility();
  298. return $1;
  299. }, function($ctx1) {$ctx1.fill(self,"slideClasses",{},smalltalk.Presentation)})},
  300. args: [],
  301. source: "slideClasses\x0a\x09^self subclassResponsibility",
  302. messageSends: ["subclassResponsibility"],
  303. referencedClasses: []
  304. }),
  305. smalltalk.Presentation);
  306. smalltalk.addMethod(
  307. smalltalk.method({
  308. selector: "slideTransition",
  309. category: 'accessing',
  310. fn: function (){
  311. var self=this;
  312. return smalltalk.withContext(function($ctx1) {
  313. return "fade";
  314. }, function($ctx1) {$ctx1.fill(self,"slideTransition",{},smalltalk.Presentation)})},
  315. args: [],
  316. source: "slideTransition\x0a\x09^'fade'",
  317. messageSends: [],
  318. referencedClasses: []
  319. }),
  320. smalltalk.Presentation);
  321. smalltalk.addMethod(
  322. smalltalk.method({
  323. selector: "slides",
  324. category: 'accessing',
  325. fn: function (){
  326. var self=this;
  327. return smalltalk.withContext(function($ctx1) {
  328. var $1,$2;
  329. $1=self["@slides"];
  330. if(($receiver = $1) == nil || $receiver == undefined){
  331. self._initSlides();
  332. } else {
  333. $1;
  334. };
  335. $2=self["@slides"];
  336. return $2;
  337. }, function($ctx1) {$ctx1.fill(self,"slides",{},smalltalk.Presentation)})},
  338. args: [],
  339. source: "slides\x0a\x09slides ifNil: [self initSlides].\x0a\x09^slides",
  340. messageSends: ["ifNil:", "initSlides"],
  341. referencedClasses: []
  342. }),
  343. smalltalk.Presentation);
  344. smalltalk.addMethod(
  345. smalltalk.method({
  346. selector: "slidesDo:",
  347. category: 'enumerating',
  348. fn: function (aBlockWithArg){
  349. var self=this;
  350. return smalltalk.withContext(function($ctx1) {
  351. _st(self._slides())._do_((function(aSlide){
  352. return smalltalk.withContext(function($ctx2) {
  353. return _st(aBlockWithArg)._value_(aSlide);
  354. }, function($ctx2) {$ctx2.fillBlock({aSlide:aSlide},$ctx1)})}));
  355. return self}, function($ctx1) {$ctx1.fill(self,"slidesDo:",{aBlockWithArg:aBlockWithArg},smalltalk.Presentation)})},
  356. args: ["aBlockWithArg"],
  357. source: "slidesDo: aBlockWithArg\x0a\x09self slides do: [:aSlide| aBlockWithArg value: aSlide].",
  358. messageSends: ["do:", "value:", "slides"],
  359. referencedClasses: []
  360. }),
  361. smalltalk.Presentation);
  362. smalltalk.addMethod(
  363. smalltalk.method({
  364. selector: "style",
  365. category: 'accessing',
  366. fn: function (){
  367. var self=this;
  368. return smalltalk.withContext(function($ctx1) {
  369. return "";
  370. }, function($ctx1) {$ctx1.fill(self,"style",{},smalltalk.Presentation)})},
  371. args: [],
  372. source: "style\x0a\x09\x22Should return a CSS style\x22\x0a\x09^ ''",
  373. messageSends: [],
  374. referencedClasses: []
  375. }),
  376. smalltalk.Presentation);
  377. smalltalk.addMethod(
  378. smalltalk.method({
  379. selector: "title",
  380. category: 'accessing',
  381. fn: function (){
  382. var self=this;
  383. return smalltalk.withContext(function($ctx1) {
  384. var $1;
  385. $1=_st(self._class())._title();
  386. return $1;
  387. }, function($ctx1) {$ctx1.fill(self,"title",{},smalltalk.Presentation)})},
  388. args: [],
  389. source: "title\x0a\x09^ self class title.",
  390. messageSends: ["title", "class"],
  391. referencedClasses: []
  392. }),
  393. smalltalk.Presentation);
  394. smalltalk.addMethod(
  395. smalltalk.method({
  396. selector: "url",
  397. category: 'accessing',
  398. fn: function (){
  399. var self=this;
  400. return smalltalk.withContext(function($ctx1) {
  401. return "http://jtalk-project.org";
  402. }, function($ctx1) {$ctx1.fill(self,"url",{},smalltalk.Presentation)})},
  403. args: [],
  404. source: "url\x0a\x09^'http://jtalk-project.org'",
  405. messageSends: [],
  406. referencedClasses: []
  407. }),
  408. smalltalk.Presentation);
  409. smalltalk.Presentation.klass.iVarNames = ['current'];
  410. smalltalk.addMethod(
  411. smalltalk.method({
  412. selector: "concretePresentations",
  413. category: 'accessing',
  414. fn: function (){
  415. var self=this;
  416. return smalltalk.withContext(function($ctx1) {
  417. var $1;
  418. $1=_st(self._allSubclasses())._select_((function(aPresentationClass){
  419. return smalltalk.withContext(function($ctx2) {
  420. return _st(aPresentationClass)._isConcrete();
  421. }, function($ctx2) {$ctx2.fillBlock({aPresentationClass:aPresentationClass},$ctx1)})}));
  422. return $1;
  423. }, function($ctx1) {$ctx1.fill(self,"concretePresentations",{},smalltalk.Presentation.klass)})},
  424. args: [],
  425. source: "concretePresentations\x0a\x09^ self allSubclasses select: [:aPresentationClass| aPresentationClass isConcrete]",
  426. messageSends: ["select:", "isConcrete", "allSubclasses"],
  427. referencedClasses: []
  428. }),
  429. smalltalk.Presentation.klass);
  430. smalltalk.addMethod(
  431. smalltalk.method({
  432. selector: "concretePresentationsDo:",
  433. category: 'enumerating',
  434. fn: function (aBlockWithArg){
  435. var self=this;
  436. return smalltalk.withContext(function($ctx1) {
  437. _st(self._concretePresentations())._do_(aBlockWithArg);
  438. return self}, function($ctx1) {$ctx1.fill(self,"concretePresentationsDo:",{aBlockWithArg:aBlockWithArg},smalltalk.Presentation.klass)})},
  439. args: ["aBlockWithArg"],
  440. source: "concretePresentationsDo: aBlockWithArg\x0a\x09self concretePresentations do: aBlockWithArg.",
  441. messageSends: ["do:", "concretePresentations"],
  442. referencedClasses: []
  443. }),
  444. smalltalk.Presentation.klass);
  445. smalltalk.addMethod(
  446. smalltalk.method({
  447. selector: "isConcrete",
  448. category: 'testing',
  449. fn: function (){
  450. var self=this;
  451. return smalltalk.withContext(function($ctx1) {
  452. return false;
  453. }, function($ctx1) {$ctx1.fill(self,"isConcrete",{},smalltalk.Presentation.klass)})},
  454. args: [],
  455. source: "isConcrete\x0a\x09^false",
  456. messageSends: [],
  457. referencedClasses: []
  458. }),
  459. smalltalk.Presentation.klass);
  460. smalltalk.addMethod(
  461. smalltalk.method({
  462. selector: "title",
  463. category: 'accessing',
  464. fn: function (){
  465. var self=this;
  466. return smalltalk.withContext(function($ctx1) {
  467. return "Slides";
  468. }, function($ctx1) {$ctx1.fill(self,"title",{},smalltalk.Presentation.klass)})},
  469. args: [],
  470. source: "title\x0a\x09^ 'Slides'",
  471. messageSends: [],
  472. referencedClasses: []
  473. }),
  474. smalltalk.Presentation.klass);
  475. smalltalk.addClass('ESUG2011Presentation', smalltalk.Presentation, [], 'Presentation');
  476. smalltalk.addMethod(
  477. smalltalk.method({
  478. selector: "author",
  479. category: 'accessing',
  480. fn: function (){
  481. var self=this;
  482. return smalltalk.withContext(function($ctx1) {
  483. return "Nicolas Petton";
  484. }, function($ctx1) {$ctx1.fill(self,"author",{},smalltalk.ESUG2011Presentation)})},
  485. args: [],
  486. source: "author\x0a\x09^'Nicolas Petton'",
  487. messageSends: [],
  488. referencedClasses: []
  489. }),
  490. smalltalk.ESUG2011Presentation);
  491. smalltalk.addMethod(
  492. smalltalk.method({
  493. selector: "description",
  494. category: 'accessing',
  495. fn: function (){
  496. var self=this;
  497. return smalltalk.withContext(function($ctx1) {
  498. return "ESUG 2011, Edinburgh";
  499. }, function($ctx1) {$ctx1.fill(self,"description",{},smalltalk.ESUG2011Presentation)})},
  500. args: [],
  501. source: "description\x0a\x09^'ESUG 2011, Edinburgh'",
  502. messageSends: [],
  503. referencedClasses: []
  504. }),
  505. smalltalk.ESUG2011Presentation);
  506. smalltalk.addMethod(
  507. smalltalk.method({
  508. selector: "email",
  509. category: 'accessing',
  510. fn: function (){
  511. var self=this;
  512. return smalltalk.withContext(function($ctx1) {
  513. return "nico@objectfusion.fr";
  514. }, function($ctx1) {$ctx1.fill(self,"email",{},smalltalk.ESUG2011Presentation)})},
  515. args: [],
  516. source: "email\x0a\x09^'nico@objectfusion.fr'",
  517. messageSends: [],
  518. referencedClasses: []
  519. }),
  520. smalltalk.ESUG2011Presentation);
  521. smalltalk.addMethod(
  522. smalltalk.method({
  523. selector: "slideClasses",
  524. category: 'accessing',
  525. fn: function (){
  526. var self=this;
  527. function $IntroSlide(){return smalltalk.IntroSlide||(typeof IntroSlide=="undefined"?nil:IntroSlide)}
  528. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  529. function $AboutSlide(){return smalltalk.AboutSlide||(typeof AboutSlide=="undefined"?nil:AboutSlide)}
  530. function $WhatIsJtalkSlide(){return smalltalk.WhatIsJtalkSlide||(typeof WhatIsJtalkSlide=="undefined"?nil:WhatIsJtalkSlide)}
  531. function $JtalkFeaturesSlide(){return smalltalk.JtalkFeaturesSlide||(typeof JtalkFeaturesSlide=="undefined"?nil:JtalkFeaturesSlide)}
  532. function $WorkspaceSlide(){return smalltalk.WorkspaceSlide||(typeof WorkspaceSlide=="undefined"?nil:WorkspaceSlide)}
  533. function $IDESlide(){return smalltalk.IDESlide||(typeof IDESlide=="undefined"?nil:IDESlide)}
  534. function $CountersSlide(){return smalltalk.CountersSlide||(typeof CountersSlide=="undefined"?nil:CountersSlide)}
  535. function $JtalkAndJavascriptSlide(){return smalltalk.JtalkAndJavascriptSlide||(typeof JtalkAndJavascriptSlide=="undefined"?nil:JtalkAndJavascriptSlide)}
  536. function $JtalkAndJavascriptSlide2(){return smalltalk.JtalkAndJavascriptSlide2||(typeof JtalkAndJavascriptSlide2=="undefined"?nil:JtalkAndJavascriptSlide2)}
  537. function $JtalkAndJavascriptSlide3(){return smalltalk.JtalkAndJavascriptSlide3||(typeof JtalkAndJavascriptSlide3=="undefined"?nil:JtalkAndJavascriptSlide3)}
  538. function $JtalkAndJavascriptSlide4(){return smalltalk.JtalkAndJavascriptSlide4||(typeof JtalkAndJavascriptSlide4=="undefined"?nil:JtalkAndJavascriptSlide4)}
  539. function $JtalkAndCLI(){return smalltalk.JtalkAndCLI||(typeof JtalkAndCLI=="undefined"?nil:JtalkAndCLI)}
  540. function $JtalkAndNode(){return smalltalk.JtalkAndNode||(typeof JtalkAndNode=="undefined"?nil:JtalkAndNode)}
  541. function $JtalkAndNode2(){return smalltalk.JtalkAndNode2||(typeof JtalkAndNode2=="undefined"?nil:JtalkAndNode2)}
  542. function $JtalkAndNode3(){return smalltalk.JtalkAndNode3||(typeof JtalkAndNode3=="undefined"?nil:JtalkAndNode3)}
  543. function $JtalkAndWebOS(){return smalltalk.JtalkAndWebOS||(typeof JtalkAndWebOS=="undefined"?nil:JtalkAndWebOS)}
  544. function $JtalkAndEnyo(){return smalltalk.JtalkAndEnyo||(typeof JtalkAndEnyo=="undefined"?nil:JtalkAndEnyo)}
  545. function $ContributionsSlide(){return smalltalk.ContributionsSlide||(typeof ContributionsSlide=="undefined"?nil:ContributionsSlide)}
  546. return smalltalk.withContext(function($ctx1) {
  547. var $2,$3,$1;
  548. $2=_st($Array())._new();
  549. _st($2)._add_($IntroSlide());
  550. _st($2)._add_($AboutSlide());
  551. _st($2)._add_($WhatIsJtalkSlide());
  552. _st($2)._add_($JtalkFeaturesSlide());
  553. _st($2)._add_($WorkspaceSlide());
  554. _st($2)._add_($IDESlide());
  555. _st($2)._add_($CountersSlide());
  556. _st($2)._add_($JtalkAndJavascriptSlide());
  557. _st($2)._add_($JtalkAndJavascriptSlide2());
  558. _st($2)._add_($JtalkAndJavascriptSlide3());
  559. _st($2)._add_($JtalkAndJavascriptSlide4());
  560. _st($2)._add_($JtalkAndCLI());
  561. _st($2)._add_($JtalkAndNode());
  562. _st($2)._add_($JtalkAndNode2());
  563. _st($2)._add_($JtalkAndNode3());
  564. _st($2)._add_($JtalkAndWebOS());
  565. _st($2)._add_($JtalkAndEnyo());
  566. _st($2)._add_($ContributionsSlide());
  567. $3=_st($2)._yourself();
  568. $1=$3;
  569. return $1;
  570. }, function($ctx1) {$ctx1.fill(self,"slideClasses",{},smalltalk.ESUG2011Presentation)})},
  571. args: [],
  572. source: "slideClasses\x0a\x09^Array new\x0a\x09\x09add: IntroSlide;\x0a\x09\x09add: AboutSlide;\x0a\x09\x09add: WhatIsJtalkSlide;\x0a\x09\x09add: JtalkFeaturesSlide;\x0a\x09\x09add: WorkspaceSlide;\x0a\x09\x09add: IDESlide;\x0a\x09\x09add: CountersSlide;\x0a\x09\x09add: JtalkAndJavascriptSlide;\x0a\x09\x09add: JtalkAndJavascriptSlide2;\x0a\x09\x09add: JtalkAndJavascriptSlide3;\x0a\x09\x09add: JtalkAndJavascriptSlide4;\x0a\x09\x09add: JtalkAndCLI;\x0a\x09\x09add: JtalkAndNode;\x0a\x09\x09add: JtalkAndNode2;\x0a\x09\x09add: JtalkAndNode3;\x0a\x09\x09add: JtalkAndWebOS;\x0a\x09\x09add: JtalkAndEnyo;\x0a\x09\x09add: ContributionsSlide;\x0a\x09\x09yourself",
  573. messageSends: ["add:", "new", "yourself"],
  574. referencedClasses: ["IntroSlide", "Array", "AboutSlide", "WhatIsJtalkSlide", "JtalkFeaturesSlide", "WorkspaceSlide", "IDESlide", "CountersSlide", "JtalkAndJavascriptSlide", "JtalkAndJavascriptSlide2", "JtalkAndJavascriptSlide3", "JtalkAndJavascriptSlide4", "JtalkAndCLI", "JtalkAndNode", "JtalkAndNode2", "JtalkAndNode3", "JtalkAndWebOS", "JtalkAndEnyo", "ContributionsSlide"]
  575. }),
  576. smalltalk.ESUG2011Presentation);
  577. smalltalk.addMethod(
  578. smalltalk.method({
  579. selector: "style",
  580. category: 'accessing',
  581. fn: function (){
  582. var self=this;
  583. return smalltalk.withContext(function($ctx1) {
  584. return "\x0abody {\x0a font-family: Helvetica,Arial,sans;\x0a}\x0a\x0a#slides {\x0a width: 100%;\x0a height: 100%;\x0a overflow: hidden;\x0a position: absolute;\x0a top: 0;\x0a bottom: 0;\x0a left: 0;\x0a right: 0;\x0a background: #555;\x0a}\x0a\x0a.slide {\x0a background: #fff;\x0a color: #444;\x0a text-align: left;\x0a font-size: 20px;\x0a line-height: 1.8em;\x0a height: 500px;\x0a width: 700px;\x0a padding: 60px;\x0a position: absolute;\x0a left: 50%;\x0a top: 50%;\x0a margin-left: -420px;\x0a margin-top: -320px;\x0a box-shadow: 0 0 20px #111;\x0a -moz-box-shadow: 0 0 20px #111;\x0a -webkit-box-shadow: 0 0 20px #111;\x0a}\x0a\x0a.slide.transparent {\x0a background: transparent;\x0a box-shadow: 0 0 0 none;\x0a -moz-box-shadow: 0 0 0 transparent;\x0a -webkit-box-shadow: 0 0 0 transparent;\x0a color: #fff !important;\x0a}\x0a\x0a.slide.black {\x0a background: black;\x0a background-image: -webkit-gradient(\x0a\x09linear,\x0a\x09left bottom,\x0a\x09left top,\x0a\x09color-stop(0.38, rgb(79,79,79)),\x0a\x09color-stop(0.69, rgb(33,33,33)),\x0a\x09color-stop(0.86, rgb(4,4,4))\x0a );\x0a background-image: -moz-linear-gradient(\x0a\x09center bottom,\x0a\x09rgb(79,79,79) 38%,\x0a\x09rgb(33,33,33) 69%,\x0a\x09rgb(4,4,4) 86%\x0a );\x0a color: #fff !important;\x0a}\x0a\x0a.slide.black h1, .slide.black h2, .slide.black h3,\x0a.slide.transparent h1, .slide.transparent h2, .slide.transparent h3 {\x0a color: #fff;\x0a text-shadow: 0 1px 4px #aaa;\x0a}\x0a\x0a.slide.black a, .slide.transparent a {\x0a color: #ccc;\x0a}\x0a\x0a.slide.white {\x0a color: #333 !important;\x0a}\x0a\x0a.slide.white h1, .slide.white h2, .slide.white h3 {\x0a color: #333;\x0a}\x0a\x0a.slide.white a {\x0a color: #333;\x0a}\x0a\x0a\x0a.slide h1, .slide h2, .slide h3 {\x0a color: #333;\x0a /* text-align: center; */\x0a}\x0a\x0a.slide h1 {\x0a font-family: \x22Droid Sans\x22;\x0a font-size: 36px;\x0a text-shadow: 0 1px 4px #aaa;\x0a margin-top: 30px;\x0a margin-bottom: 50px;\x0a}\x0a\x0a/* .slide ul, .slide li { */\x0a/* padding: 0; */\x0a/* margin: 0; */\x0a/* } */\x0a\x0a.slide button {\x0a font-size: 18px;\x0a}\x0a\x0a.slide a {\x0a color: #555;\x0a text-decoration: none;\x0a cursor: pointer;\x0a}\x0a\x0a.slide a:hover {\x0a color: #fff;\x0a background: #555;\x0a}\x0a\x0a.slide .right {\x0a text-align: right;\x0a}\x0a\x0a.slide .section.center {\x0a text-align: center;\x0a display: table-cell;\x0a vertical-align: middle;\x0a width: 700px;\x0a height: 500px;\x0a}\x0a\x0a.slide code {\x0a font-family: \x22Droid Sans Mono\x22;\x0a color: #444;\x0a border: 1px solid #ddd;\x0a background: #eee;\x0a border-radius: 4px;\x0a padding: 2px;\x0a font-size: 16px;\x0a}\x0a\x0a.slide .code2 {\x0a font-family: \x22Droid Sans Mono\x22;\x0a line-height: 1.2em;\x0a color: #444;\x0a padding: 2px;\x0a font-size: 16px;\x0a}\x0a\x0a\x0a.slide .CodeMirror {\x0a width: 500px;\x0a height: 300px;\x0a text-align: left;\x0a}\x0a\x0a.slide .CodeMirror-scroll {\x0a text-align: left;\x0a}\x0a\x0a.slide .fancy {\x0a margin-top: 30px;\x0a -webkit-transform: rotate(-10deg);\x0a -moz-transform: rotate(-10deg);\x0a transform: rotate(-10deg);\x0a color: red;\x0a}\x0a\x0a.slide .comment {\x0a opacity: 0.6;\x0a font-weight: normal;\x0a}\x0a\x0a.slide .red {\x0a color: red;\x0a}\x0a\x0a.slide .blue {\x0a color: blue;\x0a}\x0a\x0a.slide#WhatIsJtalk {\x0a background: white url(\x22esug2011/images/balloon.jpg\x22) 650px 50px no-repeat;\x0a}\x0a\x0a.slide#ide {\x0a background: black url(\x22esug2011/images/ide_star_wars.png\x22) center center no-repeat;\x0a}\x0a\x0a.slide#JtalkAndCLI {\x0a background: white url(\x22esug2011/images/terminal.png\x22) 620px 20px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndNode {\x0a background: white url(\x22esug2011/images/nodejs.png\x22) 580px 40px no-repeat;\x0a}\x0a.slide#JtalkAndNode2 {\x0a background: white url(\x22esug2011/images/nodejs.png\x22) 580px 40px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndNode3 {\x0a background: white url(\x22esug2011/images/nodejs.png\x22) 580px 40px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndWebOS {\x0a background: white url(\x22esug2011/images/devices.jpg\x22) 380px 280px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndEnyo {\x0a background: white url(\x22esug2011/images/enyo.png\x22) 130px 150px no-repeat;\x0a}\x0a\x0a.slide#links {\x0a background: white url(\x22esug2011/images/asterix.png\x22) 30px 130px no-repeat;\x0a}\x0a\x0a.slide#links .section {\x0a margin-left: 250px;\x0a margin-top: 200px;\x0a font-family: \x22Droid Sans\x22;\x0a font-size: 26px;\x0a font-weight: bold;\x0a}\x0a\x0a\x0a#meta {\x0a position: absolute;\x0a font-size: 12px;\x0a opacity: 0.6;\x0a bottom: 0;\x0a right: 0;\x0a z-index: 2;\x0a background: #333;\x0a text-align: right;\x0a padding: 0 10px;\x0a line-height: 1.8em;\x0a color: #eee;\x0a border-top-left-radius: 5px;\x0a}\x0a\x0a#meta:hover {\x0a opacity: 0.8;\x0a}\x0a\x0a#meta p {\x0a display: inline;\x0a padding: 0 5px;\x0a}\x0a\x0a#meta a {\x0a //background: #ccc;\x0a color: #ccc;\x0a text-decoration: none;\x0a padding: 0 5px;\x0a}\x0a\x0a.slide {\x0a \x0a}\x0a";
  585. }, function($ctx1) {$ctx1.fill(self,"style",{},smalltalk.ESUG2011Presentation)})},
  586. args: [],
  587. source: "style\x0a\x09^'\x0abody {\x0a font-family: Helvetica,Arial,sans;\x0a}\x0a\x0a#slides {\x0a width: 100%;\x0a height: 100%;\x0a overflow: hidden;\x0a position: absolute;\x0a top: 0;\x0a bottom: 0;\x0a left: 0;\x0a right: 0;\x0a background: #555;\x0a}\x0a\x0a.slide {\x0a background: #fff;\x0a color: #444;\x0a text-align: left;\x0a font-size: 20px;\x0a line-height: 1.8em;\x0a height: 500px;\x0a width: 700px;\x0a padding: 60px;\x0a position: absolute;\x0a left: 50%;\x0a top: 50%;\x0a margin-left: -420px;\x0a margin-top: -320px;\x0a box-shadow: 0 0 20px #111;\x0a -moz-box-shadow: 0 0 20px #111;\x0a -webkit-box-shadow: 0 0 20px #111;\x0a}\x0a\x0a.slide.transparent {\x0a background: transparent;\x0a box-shadow: 0 0 0 none;\x0a -moz-box-shadow: 0 0 0 transparent;\x0a -webkit-box-shadow: 0 0 0 transparent;\x0a color: #fff !important;\x0a}\x0a\x0a.slide.black {\x0a background: black;\x0a background-image: -webkit-gradient(\x0a\x09linear,\x0a\x09left bottom,\x0a\x09left top,\x0a\x09color-stop(0.38, rgb(79,79,79)),\x0a\x09color-stop(0.69, rgb(33,33,33)),\x0a\x09color-stop(0.86, rgb(4,4,4))\x0a );\x0a background-image: -moz-linear-gradient(\x0a\x09center bottom,\x0a\x09rgb(79,79,79) 38%,\x0a\x09rgb(33,33,33) 69%,\x0a\x09rgb(4,4,4) 86%\x0a );\x0a color: #fff !important;\x0a}\x0a\x0a.slide.black h1, .slide.black h2, .slide.black h3,\x0a.slide.transparent h1, .slide.transparent h2, .slide.transparent h3 {\x0a color: #fff;\x0a text-shadow: 0 1px 4px #aaa;\x0a}\x0a\x0a.slide.black a, .slide.transparent a {\x0a color: #ccc;\x0a}\x0a\x0a.slide.white {\x0a color: #333 !important;\x0a}\x0a\x0a.slide.white h1, .slide.white h2, .slide.white h3 {\x0a color: #333;\x0a}\x0a\x0a.slide.white a {\x0a color: #333;\x0a}\x0a\x0a\x0a.slide h1, .slide h2, .slide h3 {\x0a color: #333;\x0a /* text-align: center; */\x0a}\x0a\x0a.slide h1 {\x0a font-family: \x22Droid Sans\x22;\x0a font-size: 36px;\x0a text-shadow: 0 1px 4px #aaa;\x0a margin-top: 30px;\x0a margin-bottom: 50px;\x0a}\x0a\x0a/* .slide ul, .slide li { */\x0a/* padding: 0; */\x0a/* margin: 0; */\x0a/* } */\x0a\x0a.slide button {\x0a font-size: 18px;\x0a}\x0a\x0a.slide a {\x0a color: #555;\x0a text-decoration: none;\x0a cursor: pointer;\x0a}\x0a\x0a.slide a:hover {\x0a color: #fff;\x0a background: #555;\x0a}\x0a\x0a.slide .right {\x0a text-align: right;\x0a}\x0a\x0a.slide .section.center {\x0a text-align: center;\x0a display: table-cell;\x0a vertical-align: middle;\x0a width: 700px;\x0a height: 500px;\x0a}\x0a\x0a.slide code {\x0a font-family: \x22Droid Sans Mono\x22;\x0a color: #444;\x0a border: 1px solid #ddd;\x0a background: #eee;\x0a border-radius: 4px;\x0a padding: 2px;\x0a font-size: 16px;\x0a}\x0a\x0a.slide .code2 {\x0a font-family: \x22Droid Sans Mono\x22;\x0a line-height: 1.2em;\x0a color: #444;\x0a padding: 2px;\x0a font-size: 16px;\x0a}\x0a\x0a\x0a.slide .CodeMirror {\x0a width: 500px;\x0a height: 300px;\x0a text-align: left;\x0a}\x0a\x0a.slide .CodeMirror-scroll {\x0a text-align: left;\x0a}\x0a\x0a.slide .fancy {\x0a margin-top: 30px;\x0a -webkit-transform: rotate(-10deg);\x0a -moz-transform: rotate(-10deg);\x0a transform: rotate(-10deg);\x0a color: red;\x0a}\x0a\x0a.slide .comment {\x0a opacity: 0.6;\x0a font-weight: normal;\x0a}\x0a\x0a.slide .red {\x0a color: red;\x0a}\x0a\x0a.slide .blue {\x0a color: blue;\x0a}\x0a\x0a.slide#WhatIsJtalk {\x0a background: white url(\x22esug2011/images/balloon.jpg\x22) 650px 50px no-repeat;\x0a}\x0a\x0a.slide#ide {\x0a background: black url(\x22esug2011/images/ide_star_wars.png\x22) center center no-repeat;\x0a}\x0a\x0a.slide#JtalkAndCLI {\x0a background: white url(\x22esug2011/images/terminal.png\x22) 620px 20px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndNode {\x0a background: white url(\x22esug2011/images/nodejs.png\x22) 580px 40px no-repeat;\x0a}\x0a.slide#JtalkAndNode2 {\x0a background: white url(\x22esug2011/images/nodejs.png\x22) 580px 40px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndNode3 {\x0a background: white url(\x22esug2011/images/nodejs.png\x22) 580px 40px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndWebOS {\x0a background: white url(\x22esug2011/images/devices.jpg\x22) 380px 280px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndEnyo {\x0a background: white url(\x22esug2011/images/enyo.png\x22) 130px 150px no-repeat;\x0a}\x0a\x0a.slide#links {\x0a background: white url(\x22esug2011/images/asterix.png\x22) 30px 130px no-repeat;\x0a}\x0a\x0a.slide#links .section {\x0a margin-left: 250px;\x0a margin-top: 200px;\x0a font-family: \x22Droid Sans\x22;\x0a font-size: 26px;\x0a font-weight: bold;\x0a}\x0a\x0a\x0a#meta {\x0a position: absolute;\x0a font-size: 12px;\x0a opacity: 0.6;\x0a bottom: 0;\x0a right: 0;\x0a z-index: 2;\x0a background: #333;\x0a text-align: right;\x0a padding: 0 10px;\x0a line-height: 1.8em;\x0a color: #eee;\x0a border-top-left-radius: 5px;\x0a}\x0a\x0a#meta:hover {\x0a opacity: 0.8;\x0a}\x0a\x0a#meta p {\x0a display: inline;\x0a padding: 0 5px;\x0a}\x0a\x0a#meta a {\x0a //background: #ccc;\x0a color: #ccc;\x0a text-decoration: none;\x0a padding: 0 5px;\x0a}\x0a\x0a.slide {\x0a \x0a}\x0a'",
  588. messageSends: [],
  589. referencedClasses: []
  590. }),
  591. smalltalk.ESUG2011Presentation);
  592. smalltalk.addMethod(
  593. smalltalk.method({
  594. selector: "url",
  595. category: 'accessing',
  596. fn: function (){
  597. var self=this;
  598. return smalltalk.withContext(function($ctx1) {
  599. return "http://jtalk-project.org";
  600. }, function($ctx1) {$ctx1.fill(self,"url",{},smalltalk.ESUG2011Presentation)})},
  601. args: [],
  602. source: "url\x0a\x09^'http://jtalk-project.org'",
  603. messageSends: [],
  604. referencedClasses: []
  605. }),
  606. smalltalk.ESUG2011Presentation);
  607. smalltalk.ESUG2011Presentation.klass.iVarNames = ['current'];
  608. smalltalk.addMethod(
  609. smalltalk.method({
  610. selector: "isConcrete",
  611. category: 'testing',
  612. fn: function (){
  613. var self=this;
  614. return smalltalk.withContext(function($ctx1) {
  615. return true;
  616. }, function($ctx1) {$ctx1.fill(self,"isConcrete",{},smalltalk.ESUG2011Presentation.klass)})},
  617. args: [],
  618. source: "isConcrete\x0a\x09^true",
  619. messageSends: [],
  620. referencedClasses: []
  621. }),
  622. smalltalk.ESUG2011Presentation.klass);
  623. smalltalk.addMethod(
  624. smalltalk.method({
  625. selector: "title",
  626. category: 'accessing',
  627. fn: function (){
  628. var self=this;
  629. return smalltalk.withContext(function($ctx1) {
  630. return "Jtalk";
  631. }, function($ctx1) {$ctx1.fill(self,"title",{},smalltalk.ESUG2011Presentation.klass)})},
  632. args: [],
  633. source: "title\x0a\x09^'Jtalk'",
  634. messageSends: [],
  635. referencedClasses: []
  636. }),
  637. smalltalk.ESUG2011Presentation.klass);
  638. smalltalk.addClass('FOSDEM2012Presentation', smalltalk.Presentation, [], 'Presentation');
  639. smalltalk.addMethod(
  640. smalltalk.method({
  641. selector: "author",
  642. category: 'accessing',
  643. fn: function (){
  644. var self=this;
  645. return smalltalk.withContext(function($ctx1) {
  646. return "Laurent Laffont, Johnny Thornton";
  647. }, function($ctx1) {$ctx1.fill(self,"author",{},smalltalk.FOSDEM2012Presentation)})},
  648. args: [],
  649. source: "author\x0a\x09^'Laurent Laffont, Johnny Thornton'",
  650. messageSends: [],
  651. referencedClasses: []
  652. }),
  653. smalltalk.FOSDEM2012Presentation);
  654. smalltalk.addMethod(
  655. smalltalk.method({
  656. selector: "description",
  657. category: 'accessing',
  658. fn: function (){
  659. var self=this;
  660. return smalltalk.withContext(function($ctx1) {
  661. return "FOSDEM 2012, Brussels";
  662. }, function($ctx1) {$ctx1.fill(self,"description",{},smalltalk.FOSDEM2012Presentation)})},
  663. args: [],
  664. source: "description\x0a\x09^'FOSDEM 2012, Brussels'",
  665. messageSends: [],
  666. referencedClasses: []
  667. }),
  668. smalltalk.FOSDEM2012Presentation);
  669. smalltalk.addMethod(
  670. smalltalk.method({
  671. selector: "email",
  672. category: 'accessing',
  673. fn: function (){
  674. var self=this;
  675. return smalltalk.withContext(function($ctx1) {
  676. return "laurent.laffont@gmail.com, johnnyt@xan.do";
  677. }, function($ctx1) {$ctx1.fill(self,"email",{},smalltalk.FOSDEM2012Presentation)})},
  678. args: [],
  679. source: "email\x0a\x09^'laurent.laffont@gmail.com, johnnyt@xan.do'",
  680. messageSends: [],
  681. referencedClasses: []
  682. }),
  683. smalltalk.FOSDEM2012Presentation);
  684. smalltalk.addMethod(
  685. smalltalk.method({
  686. selector: "slideClasses",
  687. category: 'accessing',
  688. fn: function (){
  689. var self=this;
  690. function $FOSDEMIntroSlide(){return smalltalk.FOSDEMIntroSlide||(typeof FOSDEMIntroSlide=="undefined"?nil:FOSDEMIntroSlide)}
  691. function $FOSDEMAmberZeroNine(){return smalltalk.FOSDEMAmberZeroNine||(typeof FOSDEMAmberZeroNine=="undefined"?nil:FOSDEMAmberZeroNine)}
  692. function $CountersSlide(){return smalltalk.CountersSlide||(typeof CountersSlide=="undefined"?nil:CountersSlide)}
  693. function $IDESlide(){return smalltalk.IDESlide||(typeof IDESlide=="undefined"?nil:IDESlide)}
  694. function $JtalkAndJavascriptSlide(){return smalltalk.JtalkAndJavascriptSlide||(typeof JtalkAndJavascriptSlide=="undefined"?nil:JtalkAndJavascriptSlide)}
  695. function $FOSDEMJSPlayGroundSlide(){return smalltalk.FOSDEMJSPlayGroundSlide||(typeof FOSDEMJSPlayGroundSlide=="undefined"?nil:FOSDEMJSPlayGroundSlide)}
  696. function $FOSDEMJSToSmalltalk(){return smalltalk.FOSDEMJSToSmalltalk||(typeof FOSDEMJSToSmalltalk=="undefined"?nil:FOSDEMJSToSmalltalk)}
  697. function $FOSDEMBookletSlide(){return smalltalk.FOSDEMBookletSlide||(typeof FOSDEMBookletSlide=="undefined"?nil:FOSDEMBookletSlide)}
  698. function $FOSDEMTwitter(){return smalltalk.FOSDEMTwitter||(typeof FOSDEMTwitter=="undefined"?nil:FOSDEMTwitter)}
  699. function $FOSDEMCanvasSlide(){return smalltalk.FOSDEMCanvasSlide||(typeof FOSDEMCanvasSlide=="undefined"?nil:FOSDEMCanvasSlide)}
  700. function $FOSDEMAmberBackend(){return smalltalk.FOSDEMAmberBackend||(typeof FOSDEMAmberBackend=="undefined"?nil:FOSDEMAmberBackend)}
  701. function $FOSDEMREPLSlide(){return smalltalk.FOSDEMREPLSlide||(typeof FOSDEMREPLSlide=="undefined"?nil:FOSDEMREPLSlide)}
  702. function $FOSDEMCLISlide(){return smalltalk.FOSDEMCLISlide||(typeof FOSDEMCLISlide=="undefined"?nil:FOSDEMCLISlide)}
  703. function $FOSDEMContributionsSlide(){return smalltalk.FOSDEMContributionsSlide||(typeof FOSDEMContributionsSlide=="undefined"?nil:FOSDEMContributionsSlide)}
  704. return smalltalk.withContext(function($ctx1) {
  705. var $1;
  706. $1=[$FOSDEMIntroSlide(),$FOSDEMAmberZeroNine(),$CountersSlide(),$IDESlide(),$JtalkAndJavascriptSlide(),$FOSDEMJSPlayGroundSlide(),$FOSDEMJSToSmalltalk(),$FOSDEMBookletSlide(),$FOSDEMTwitter(),$FOSDEMCanvasSlide(),$FOSDEMAmberBackend(),$FOSDEMREPLSlide(),$FOSDEMCLISlide(),$FOSDEMContributionsSlide()];
  707. return $1;
  708. }, function($ctx1) {$ctx1.fill(self,"slideClasses",{},smalltalk.FOSDEM2012Presentation)})},
  709. args: [],
  710. source: "slideClasses\x0a^ {\x0a\x09FOSDEMIntroSlide.\x0a\x09FOSDEMAmberZeroNine.\x0a\x09CountersSlide.\x0a\x09IDESlide.\x0a\x09JtalkAndJavascriptSlide.\x0a\x09FOSDEMJSPlayGroundSlide.\x0a\x09FOSDEMJSToSmalltalk.\x0a\x09FOSDEMBookletSlide.\x0a\x09FOSDEMTwitter.\x0a\x09FOSDEMCanvasSlide.\x0a\x09FOSDEMAmberBackend.\x0a\x09FOSDEMREPLSlide.\x0a\x09FOSDEMCLISlide.\x0a\x09FOSDEMContributionsSlide\x0a}",
  711. messageSends: [],
  712. referencedClasses: ["FOSDEMIntroSlide", "FOSDEMAmberZeroNine", "CountersSlide", "IDESlide", "JtalkAndJavascriptSlide", "FOSDEMJSPlayGroundSlide", "FOSDEMJSToSmalltalk", "FOSDEMBookletSlide", "FOSDEMTwitter", "FOSDEMCanvasSlide", "FOSDEMAmberBackend", "FOSDEMREPLSlide", "FOSDEMCLISlide", "FOSDEMContributionsSlide"]
  713. }),
  714. smalltalk.FOSDEM2012Presentation);
  715. smalltalk.addMethod(
  716. smalltalk.method({
  717. selector: "style",
  718. category: 'accessing',
  719. fn: function (){
  720. var self=this;
  721. return smalltalk.withContext(function($ctx1) {
  722. return "\x0abody {\x0a font-family: Helvetica,Arial,sans;\x0a}\x0a\x0a#slides {\x0a width: 100%;\x0a height: 100%;\x0a overflow: hidden;\x0a position: absolute;\x0a top: 0;\x0a bottom: 0;\x0a left: 0;\x0a right: 0;\x0a background: #555;\x0a}\x0a\x0a.slide {\x0a background: #fff;\x0a color: #444;\x0a text-align: left;\x0a font-size: 20px;\x0a line-height: 1.8em;\x0a height: 500px;\x0a width: 700px;\x0a padding: 60px;\x0a position: absolute;\x0a left: 50%;\x0a top: 50%;\x0a margin-left: -420px;\x0a margin-top: -320px;\x0a box-shadow: 0 0 20px #111;\x0a -moz-box-shadow: 0 0 20px #111;\x0a -webkit-box-shadow: 0 0 20px #111;\x0a}\x0a\x0a.slide.transparent {\x0a background: transparent;\x0a box-shadow: 0 0 0 none;\x0a -moz-box-shadow: 0 0 0 transparent;\x0a -webkit-box-shadow: 0 0 0 transparent;\x0a color: #fff !important;\x0a}\x0a\x0a.slide.black {\x0a background: black;\x0a background-image: -webkit-gradient(\x0a\x09linear,\x0a\x09left bottom,\x0a\x09left top,\x0a\x09color-stop(0.38, rgb(79,79,79)),\x0a\x09color-stop(0.69, rgb(33,33,33)),\x0a\x09color-stop(0.86, rgb(4,4,4))\x0a );\x0a background-image: -moz-linear-gradient(\x0a\x09center bottom,\x0a\x09rgb(79,79,79) 38%,\x0a\x09rgb(33,33,33) 69%,\x0a\x09rgb(4,4,4) 86%\x0a );\x0a color: #fff !important;\x0a}\x0a\x0a.slide.black h1, .slide.black h2, .slide.black h3,\x0a.slide.transparent h1, .slide.transparent h2, .slide.transparent h3 {\x0a color: #fff;\x0a text-shadow: 0 1px 4px #aaa;\x0a}\x0a\x0a.slide.black a, .slide.transparent a {\x0a color: #ccc;\x0a}\x0a\x0a.slide.white {\x0a color: #333 !important;\x0a}\x0a\x0a.slide.white h1, .slide.white h2, .slide.white h3 {\x0a color: #333;\x0a}\x0a\x0a.slide.white a {\x0a color: #333;\x0a}\x0a\x0a\x0a.slide h1, .slide h2, .slide h3 {\x0a color: #333;\x0a /* text-align: center; */\x0a}\x0a\x0a.slide h1 {\x0a font-family: \x22Droid Sans\x22;\x0a font-size: 36px;\x0a text-shadow: 0 1px 4px #aaa;\x0a margin-top: 30px;\x0a margin-bottom: 50px;\x0a}\x0a\x0a.slide button {\x0a font-size: 18px;\x0a}\x0a\x0a.slide a {\x0a color: #555;\x0a text-decoration: none;\x0a cursor: pointer;\x0a}\x0a\x0a.slide a:hover {\x0a color: #fff;\x0a background: #555;\x0a}\x0a\x0a.slide .right {\x0a text-align: right;\x0a}\x0a\x0a.slide .section.center {\x0a text-align: center;\x0a display: table-cell;\x0a vertical-align: middle;\x0a width: 700px;\x0a height: 500px;\x0a}\x0a\x0a.slide code {\x0a font-family: \x22Droid Sans Mono\x22;\x0a color: #444;\x0a border: 1px solid #ddd;\x0a background: #eee;\x0a border-radius: 4px;\x0a padding: 2px;\x0a font-size: 16px;\x0a}\x0a\x0a.slide .code2 {\x0a font-family: \x22Droid Sans Mono\x22;\x0a line-height: 1.2em;\x0a color: #444;\x0a padding: 2px;\x0a font-size: 16px;\x0a}\x0a\x0a\x0a.slide .CodeMirror {\x0a width: 700px;\x0a height: 300px;\x0a text-align: left;\x0a}\x0a\x0a.slide .CodeMirror-scroll {\x0a text-align: left;\x0a}\x0a\x0a.slide .fancy {\x0a margin-top: 30px;\x0a -webkit-transform: rotate(-10deg);\x0a -moz-transform: rotate(-10deg);\x0a transform: rotate(-10deg);\x0a color: red;\x0a}\x0a\x0a.slide .comment {\x0a opacity: 0.6;\x0a font-weight: normal;\x0a}\x0a\x0a.slide .red {\x0a color: red;\x0a}\x0a\x0a.slide .blue {\x0a color: blue;\x0a}\x0a\x0a#meta {\x0a position: absolute;\x0a font-size: 12px;\x0a opacity: 0.6;\x0a bottom: 0;\x0a right: 0;\x0a z-index: 2;\x0a background: #333;\x0a text-align: right;\x0a padding: 0 10px;\x0a line-height: 1.8em;\x0a color: #eee;\x0a border-top-left-radius: 5px;\x0a}\x0a\x0a#meta:hover {\x0a opacity: 0.8;\x0a}\x0a\x0a#meta p {\x0a display: inline;\x0a padding: 0 5px;\x0a}\x0a\x0a#meta a {\x0a //background: #ccc;\x0a color: #ccc;\x0a text-decoration: none;\x0a padding: 0 5px;\x0a}\x0a\x0a.slide {\x0a \x0a}\x0a\x0a.slide.blue3d {\x0a background: #feffff;\x0a background: -moz-linear-gradient(top, #feffff 0%, #d2ebf9 100%);\x0a background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#feffff), color-stop(100%,#d2ebf9));\x0a background: -webkit-linear-gradient(top, #feffff 0%,#d2ebf9 100%);\x0a background: -o-linear-gradient(top, #feffff 0%,#d2ebf9 100%);\x0a background: -ms-linear-gradient(top, #feffff 0%,#d2ebf9 100%);\x0a filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\x22#feffff\x22, endColorstr=\x22#d2ebf9\x22,GradientType=0 );\x0a background: linear-gradient(top, #feffff 0%,#d2ebf9 100%);\x0a}\x0a\x0a\x0a.slide.red3d {\x0a background: #febbbb;\x0a background: -moz-linear-gradient(top, #febbbb 0%, #fe9090 71%, #ff5c5c 95%);\x0a background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#febbbb), color-stop(71%,#fe9090), color-stop(95%,#ff5c5c));\x0a background: -webkit-linear-gradient(top, #febbbb 0%,#fe9090 71%,#ff5c5c 95%);\x0a background: -o-linear-gradient(top, #febbbb 0%,#fe9090 71%,#ff5c5c 95%);\x0a background: -ms-linear-gradient(top, #febbbb 0%,#fe9090 71%,#ff5c5c 95%);\x0a filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\x22#febbbb\x22, endColorstr=\x22#ff5c5c\x22,GradientType=0 );\x0a background: linear-gradient(top, #febbbb 0%,#fe9090 71%,#ff5c5c 95%);\x0a}\x0a\x0a\x0a.slide.green3d {\x0a background: #cdeb8e;\x0a background: -moz-linear-gradient(top, #cdeb8e 0%, #a5c956 100%);\x0a background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cdeb8e), color-stop(100%,#a5c956));\x0a background: -webkit-linear-gradient(top, #cdeb8e 0%,#a5c956 100%);\x0a background: -o-linear-gradient(top, #cdeb8e 0%,#a5c956 100%);\x0a background: -ms-linear-gradient(top, #cdeb8e 0%,#a5c956 100%);\x0a filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\x22#cdeb8e\x22, endColorstr=\x22#a5c956\x22,GradientType=0 );\x0a background: linear-gradient(top, #cdeb8e 0%,#a5c956 100%);\x0a}\x0a\x0a@-webkit-keyframes rotate-horizontal {\x0a\x090% { -webkit-transform: perspective(1000px) rotateY(-10deg);}\x0a\x09100% { -webkit-transform: perspective(1000px) rotateY(10deg);}\x0a}\x0a\x0a.animate p{\x0a-webkit-animation: rotate-horizontal 2s infinite alternate ease-in-out;\x0a}\x0a\x0a#FOSDEMAmberBackend img {\x0a\x09margin: 5px;\x0a\x09-webkit-animation: rotate-horizontal 2s infinite alternate ease-in-out;\x0a}\x0a\x0a.slide#FOSDEMContributionsSlide {\x0a background: white url(\x22esug2011/images/asterix.png\x22) 30px 130px no-repeat;\x0a}\x0a\x0a.slide#FOSDEMContributionsSlide .section {\x0a margin-left: 250px;\x0a margin-top: 200px;\x0a font-family: \x22Droid Sans\x22;\x0a font-size: 26px;\x0a font-weight: bold;\x0a}\x0a\x0a\x0a.slide#ide {\x0a background: black url(\x22esug2011/images/ide_star_wars.png\x22) center center no-repeat;\x0a}\x0a\x0a\x0a.tweet {\x0a\x09background-color: #aaa;\x0a\x09color: black;\x0a\x09padding: 10px;\x0a\x09border-radius: 10px;\x0a\x09border: 5px solid #eee;\x0a\x09margin: 10px;\x0a}\x0a\x0a.tweet img {\x0a\x09vertical-align: top;\x0a\x09margin-right: 10px;\x0a}\x0a\x0a.tweet span:first-child {\x0a\x09float: right;\x0a}\x0a";
  723. }, function($ctx1) {$ctx1.fill(self,"style",{},smalltalk.FOSDEM2012Presentation)})},
  724. args: [],
  725. source: "style\x0a\x09^'\x0abody {\x0a font-family: Helvetica,Arial,sans;\x0a}\x0a\x0a#slides {\x0a width: 100%;\x0a height: 100%;\x0a overflow: hidden;\x0a position: absolute;\x0a top: 0;\x0a bottom: 0;\x0a left: 0;\x0a right: 0;\x0a background: #555;\x0a}\x0a\x0a.slide {\x0a background: #fff;\x0a color: #444;\x0a text-align: left;\x0a font-size: 20px;\x0a line-height: 1.8em;\x0a height: 500px;\x0a width: 700px;\x0a padding: 60px;\x0a position: absolute;\x0a left: 50%;\x0a top: 50%;\x0a margin-left: -420px;\x0a margin-top: -320px;\x0a box-shadow: 0 0 20px #111;\x0a -moz-box-shadow: 0 0 20px #111;\x0a -webkit-box-shadow: 0 0 20px #111;\x0a}\x0a\x0a.slide.transparent {\x0a background: transparent;\x0a box-shadow: 0 0 0 none;\x0a -moz-box-shadow: 0 0 0 transparent;\x0a -webkit-box-shadow: 0 0 0 transparent;\x0a color: #fff !important;\x0a}\x0a\x0a.slide.black {\x0a background: black;\x0a background-image: -webkit-gradient(\x0a\x09linear,\x0a\x09left bottom,\x0a\x09left top,\x0a\x09color-stop(0.38, rgb(79,79,79)),\x0a\x09color-stop(0.69, rgb(33,33,33)),\x0a\x09color-stop(0.86, rgb(4,4,4))\x0a );\x0a background-image: -moz-linear-gradient(\x0a\x09center bottom,\x0a\x09rgb(79,79,79) 38%,\x0a\x09rgb(33,33,33) 69%,\x0a\x09rgb(4,4,4) 86%\x0a );\x0a color: #fff !important;\x0a}\x0a\x0a.slide.black h1, .slide.black h2, .slide.black h3,\x0a.slide.transparent h1, .slide.transparent h2, .slide.transparent h3 {\x0a color: #fff;\x0a text-shadow: 0 1px 4px #aaa;\x0a}\x0a\x0a.slide.black a, .slide.transparent a {\x0a color: #ccc;\x0a}\x0a\x0a.slide.white {\x0a color: #333 !important;\x0a}\x0a\x0a.slide.white h1, .slide.white h2, .slide.white h3 {\x0a color: #333;\x0a}\x0a\x0a.slide.white a {\x0a color: #333;\x0a}\x0a\x0a\x0a.slide h1, .slide h2, .slide h3 {\x0a color: #333;\x0a /* text-align: center; */\x0a}\x0a\x0a.slide h1 {\x0a font-family: \x22Droid Sans\x22;\x0a font-size: 36px;\x0a text-shadow: 0 1px 4px #aaa;\x0a margin-top: 30px;\x0a margin-bottom: 50px;\x0a}\x0a\x0a.slide button {\x0a font-size: 18px;\x0a}\x0a\x0a.slide a {\x0a color: #555;\x0a text-decoration: none;\x0a cursor: pointer;\x0a}\x0a\x0a.slide a:hover {\x0a color: #fff;\x0a background: #555;\x0a}\x0a\x0a.slide .right {\x0a text-align: right;\x0a}\x0a\x0a.slide .section.center {\x0a text-align: center;\x0a display: table-cell;\x0a vertical-align: middle;\x0a width: 700px;\x0a height: 500px;\x0a}\x0a\x0a.slide code {\x0a font-family: \x22Droid Sans Mono\x22;\x0a color: #444;\x0a border: 1px solid #ddd;\x0a background: #eee;\x0a border-radius: 4px;\x0a padding: 2px;\x0a font-size: 16px;\x0a}\x0a\x0a.slide .code2 {\x0a font-family: \x22Droid Sans Mono\x22;\x0a line-height: 1.2em;\x0a color: #444;\x0a padding: 2px;\x0a font-size: 16px;\x0a}\x0a\x0a\x0a.slide .CodeMirror {\x0a width: 700px;\x0a height: 300px;\x0a text-align: left;\x0a}\x0a\x0a.slide .CodeMirror-scroll {\x0a text-align: left;\x0a}\x0a\x0a.slide .fancy {\x0a margin-top: 30px;\x0a -webkit-transform: rotate(-10deg);\x0a -moz-transform: rotate(-10deg);\x0a transform: rotate(-10deg);\x0a color: red;\x0a}\x0a\x0a.slide .comment {\x0a opacity: 0.6;\x0a font-weight: normal;\x0a}\x0a\x0a.slide .red {\x0a color: red;\x0a}\x0a\x0a.slide .blue {\x0a color: blue;\x0a}\x0a\x0a#meta {\x0a position: absolute;\x0a font-size: 12px;\x0a opacity: 0.6;\x0a bottom: 0;\x0a right: 0;\x0a z-index: 2;\x0a background: #333;\x0a text-align: right;\x0a padding: 0 10px;\x0a line-height: 1.8em;\x0a color: #eee;\x0a border-top-left-radius: 5px;\x0a}\x0a\x0a#meta:hover {\x0a opacity: 0.8;\x0a}\x0a\x0a#meta p {\x0a display: inline;\x0a padding: 0 5px;\x0a}\x0a\x0a#meta a {\x0a //background: #ccc;\x0a color: #ccc;\x0a text-decoration: none;\x0a padding: 0 5px;\x0a}\x0a\x0a.slide {\x0a \x0a}\x0a\x0a.slide.blue3d {\x0a background: #feffff;\x0a background: -moz-linear-gradient(top, #feffff 0%, #d2ebf9 100%);\x0a background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#feffff), color-stop(100%,#d2ebf9));\x0a background: -webkit-linear-gradient(top, #feffff 0%,#d2ebf9 100%);\x0a background: -o-linear-gradient(top, #feffff 0%,#d2ebf9 100%);\x0a background: -ms-linear-gradient(top, #feffff 0%,#d2ebf9 100%);\x0a filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\x22#feffff\x22, endColorstr=\x22#d2ebf9\x22,GradientType=0 );\x0a background: linear-gradient(top, #feffff 0%,#d2ebf9 100%);\x0a}\x0a\x0a\x0a.slide.red3d {\x0a background: #febbbb;\x0a background: -moz-linear-gradient(top, #febbbb 0%, #fe9090 71%, #ff5c5c 95%);\x0a background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#febbbb), color-stop(71%,#fe9090), color-stop(95%,#ff5c5c));\x0a background: -webkit-linear-gradient(top, #febbbb 0%,#fe9090 71%,#ff5c5c 95%);\x0a background: -o-linear-gradient(top, #febbbb 0%,#fe9090 71%,#ff5c5c 95%);\x0a background: -ms-linear-gradient(top, #febbbb 0%,#fe9090 71%,#ff5c5c 95%);\x0a filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\x22#febbbb\x22, endColorstr=\x22#ff5c5c\x22,GradientType=0 );\x0a background: linear-gradient(top, #febbbb 0%,#fe9090 71%,#ff5c5c 95%);\x0a}\x0a\x0a\x0a.slide.green3d {\x0a background: #cdeb8e;\x0a background: -moz-linear-gradient(top, #cdeb8e 0%, #a5c956 100%);\x0a background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cdeb8e), color-stop(100%,#a5c956));\x0a background: -webkit-linear-gradient(top, #cdeb8e 0%,#a5c956 100%);\x0a background: -o-linear-gradient(top, #cdeb8e 0%,#a5c956 100%);\x0a background: -ms-linear-gradient(top, #cdeb8e 0%,#a5c956 100%);\x0a filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\x22#cdeb8e\x22, endColorstr=\x22#a5c956\x22,GradientType=0 );\x0a background: linear-gradient(top, #cdeb8e 0%,#a5c956 100%);\x0a}\x0a\x0a@-webkit-keyframes rotate-horizontal {\x0a\x090% { -webkit-transform: perspective(1000px) rotateY(-10deg);}\x0a\x09100% { -webkit-transform: perspective(1000px) rotateY(10deg);}\x0a}\x0a\x0a.animate p{\x0a-webkit-animation: rotate-horizontal 2s infinite alternate ease-in-out;\x0a}\x0a\x0a#FOSDEMAmberBackend img {\x0a\x09margin: 5px;\x0a\x09-webkit-animation: rotate-horizontal 2s infinite alternate ease-in-out;\x0a}\x0a\x0a.slide#FOSDEMContributionsSlide {\x0a background: white url(\x22esug2011/images/asterix.png\x22) 30px 130px no-repeat;\x0a}\x0a\x0a.slide#FOSDEMContributionsSlide .section {\x0a margin-left: 250px;\x0a margin-top: 200px;\x0a font-family: \x22Droid Sans\x22;\x0a font-size: 26px;\x0a font-weight: bold;\x0a}\x0a\x0a\x0a.slide#ide {\x0a background: black url(\x22esug2011/images/ide_star_wars.png\x22) center center no-repeat;\x0a}\x0a\x0a\x0a.tweet {\x0a\x09background-color: #aaa;\x0a\x09color: black;\x0a\x09padding: 10px;\x0a\x09border-radius: 10px;\x0a\x09border: 5px solid #eee;\x0a\x09margin: 10px;\x0a}\x0a\x0a.tweet img {\x0a\x09vertical-align: top;\x0a\x09margin-right: 10px;\x0a}\x0a\x0a.tweet span:first-child {\x0a\x09float: right;\x0a}\x0a'",
  726. messageSends: [],
  727. referencedClasses: []
  728. }),
  729. smalltalk.FOSDEM2012Presentation);
  730. smalltalk.addMethod(
  731. smalltalk.method({
  732. selector: "url",
  733. category: 'accessing',
  734. fn: function (){
  735. var self=this;
  736. return smalltalk.withContext(function($ctx1) {
  737. return "http://amber-lang.net";
  738. }, function($ctx1) {$ctx1.fill(self,"url",{},smalltalk.FOSDEM2012Presentation)})},
  739. args: [],
  740. source: "url\x0a\x09^'http://amber-lang.net'",
  741. messageSends: [],
  742. referencedClasses: []
  743. }),
  744. smalltalk.FOSDEM2012Presentation);
  745. smalltalk.addMethod(
  746. smalltalk.method({
  747. selector: "isConcrete",
  748. category: 'testing',
  749. fn: function (){
  750. var self=this;
  751. return smalltalk.withContext(function($ctx1) {
  752. return true;
  753. }, function($ctx1) {$ctx1.fill(self,"isConcrete",{},smalltalk.FOSDEM2012Presentation.klass)})},
  754. args: [],
  755. source: "isConcrete\x0a\x09^true",
  756. messageSends: [],
  757. referencedClasses: []
  758. }),
  759. smalltalk.FOSDEM2012Presentation.klass);
  760. smalltalk.addMethod(
  761. smalltalk.method({
  762. selector: "title",
  763. category: 'testing',
  764. fn: function (){
  765. var self=this;
  766. return smalltalk.withContext(function($ctx1) {
  767. return "Amber";
  768. }, function($ctx1) {$ctx1.fill(self,"title",{},smalltalk.FOSDEM2012Presentation.klass)})},
  769. args: [],
  770. source: "title\x0a\x09^'Amber'",
  771. messageSends: [],
  772. referencedClasses: []
  773. }),
  774. smalltalk.FOSDEM2012Presentation.klass);
  775. smalltalk.addClass('SweSUG2012Presentation', smalltalk.Presentation, [], 'Presentation');
  776. smalltalk.addMethod(
  777. smalltalk.method({
  778. selector: "author",
  779. category: 'accessing',
  780. fn: function (){
  781. var self=this;
  782. return smalltalk.withContext(function($ctx1) {
  783. return "Göran Krampe";
  784. }, function($ctx1) {$ctx1.fill(self,"author",{},smalltalk.SweSUG2012Presentation)})},
  785. args: [],
  786. source: "author\x0a\x09^'Göran Krampe'",
  787. messageSends: [],
  788. referencedClasses: []
  789. }),
  790. smalltalk.SweSUG2012Presentation);
  791. smalltalk.addMethod(
  792. smalltalk.method({
  793. selector: "description",
  794. category: 'accessing',
  795. fn: function (){
  796. var self=this;
  797. return smalltalk.withContext(function($ctx1) {
  798. return "SweSUG 2012, Stockholm";
  799. }, function($ctx1) {$ctx1.fill(self,"description",{},smalltalk.SweSUG2012Presentation)})},
  800. args: [],
  801. source: "description\x0a\x09^'SweSUG 2012, Stockholm'",
  802. messageSends: [],
  803. referencedClasses: []
  804. }),
  805. smalltalk.SweSUG2012Presentation);
  806. smalltalk.addMethod(
  807. smalltalk.method({
  808. selector: "email",
  809. category: 'accessing',
  810. fn: function (){
  811. var self=this;
  812. return smalltalk.withContext(function($ctx1) {
  813. return "goran@krampe.se";
  814. }, function($ctx1) {$ctx1.fill(self,"email",{},smalltalk.SweSUG2012Presentation)})},
  815. args: [],
  816. source: "email\x0a\x09^'goran@krampe.se'",
  817. messageSends: [],
  818. referencedClasses: []
  819. }),
  820. smalltalk.SweSUG2012Presentation);
  821. smalltalk.addMethod(
  822. smalltalk.method({
  823. selector: "slideClasses",
  824. category: 'accessing',
  825. fn: function (){
  826. var self=this;
  827. function $SweSUGIntroSlide(){return smalltalk.SweSUGIntroSlide||(typeof SweSUGIntroSlide=="undefined"?nil:SweSUGIntroSlide)}
  828. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  829. function $SweSUGAboutSlide(){return smalltalk.SweSUGAboutSlide||(typeof SweSUGAboutSlide=="undefined"?nil:SweSUGAboutSlide)}
  830. function $SweSUGWhatIsAmberSlide(){return smalltalk.SweSUGWhatIsAmberSlide||(typeof SweSUGWhatIsAmberSlide=="undefined"?nil:SweSUGWhatIsAmberSlide)}
  831. function $SweSUGAmberFeaturesSlide(){return smalltalk.SweSUGAmberFeaturesSlide||(typeof SweSUGAmberFeaturesSlide=="undefined"?nil:SweSUGAmberFeaturesSlide)}
  832. function $SweSUGWorkspaceSlide(){return smalltalk.SweSUGWorkspaceSlide||(typeof SweSUGWorkspaceSlide=="undefined"?nil:SweSUGWorkspaceSlide)}
  833. function $IDESlide(){return smalltalk.IDESlide||(typeof IDESlide=="undefined"?nil:IDESlide)}
  834. function $CountersSlide(){return smalltalk.CountersSlide||(typeof CountersSlide=="undefined"?nil:CountersSlide)}
  835. function $JtalkAndJavascriptSlide(){return smalltalk.JtalkAndJavascriptSlide||(typeof JtalkAndJavascriptSlide=="undefined"?nil:JtalkAndJavascriptSlide)}
  836. function $JtalkAndJavascriptSlide2(){return smalltalk.JtalkAndJavascriptSlide2||(typeof JtalkAndJavascriptSlide2=="undefined"?nil:JtalkAndJavascriptSlide2)}
  837. function $JtalkAndJavascriptSlide3(){return smalltalk.JtalkAndJavascriptSlide3||(typeof JtalkAndJavascriptSlide3=="undefined"?nil:JtalkAndJavascriptSlide3)}
  838. function $JtalkAndJavascriptSlide4(){return smalltalk.JtalkAndJavascriptSlide4||(typeof JtalkAndJavascriptSlide4=="undefined"?nil:JtalkAndJavascriptSlide4)}
  839. function $JtalkAndCLI(){return smalltalk.JtalkAndCLI||(typeof JtalkAndCLI=="undefined"?nil:JtalkAndCLI)}
  840. function $JtalkAndNode(){return smalltalk.JtalkAndNode||(typeof JtalkAndNode=="undefined"?nil:JtalkAndNode)}
  841. function $JtalkAndNode2(){return smalltalk.JtalkAndNode2||(typeof JtalkAndNode2=="undefined"?nil:JtalkAndNode2)}
  842. function $JtalkAndNode3(){return smalltalk.JtalkAndNode3||(typeof JtalkAndNode3=="undefined"?nil:JtalkAndNode3)}
  843. function $JtalkAndWebOS(){return smalltalk.JtalkAndWebOS||(typeof JtalkAndWebOS=="undefined"?nil:JtalkAndWebOS)}
  844. function $JtalkAndEnyo(){return smalltalk.JtalkAndEnyo||(typeof JtalkAndEnyo=="undefined"?nil:JtalkAndEnyo)}
  845. function $ContributionsSlide(){return smalltalk.ContributionsSlide||(typeof ContributionsSlide=="undefined"?nil:ContributionsSlide)}
  846. return smalltalk.withContext(function($ctx1) {
  847. var $2,$3,$1;
  848. $2=_st($Array())._new();
  849. _st($2)._add_($SweSUGIntroSlide());
  850. _st($2)._add_($SweSUGAboutSlide());
  851. _st($2)._add_($SweSUGWhatIsAmberSlide());
  852. _st($2)._add_($SweSUGAmberFeaturesSlide());
  853. _st($2)._add_($SweSUGWorkspaceSlide());
  854. _st($2)._add_($IDESlide());
  855. _st($2)._add_($CountersSlide());
  856. _st($2)._add_($JtalkAndJavascriptSlide());
  857. _st($2)._add_($JtalkAndJavascriptSlide2());
  858. _st($2)._add_($JtalkAndJavascriptSlide3());
  859. _st($2)._add_($JtalkAndJavascriptSlide4());
  860. _st($2)._add_($JtalkAndCLI());
  861. _st($2)._add_($JtalkAndNode());
  862. _st($2)._add_($JtalkAndNode2());
  863. _st($2)._add_($JtalkAndNode3());
  864. _st($2)._add_($JtalkAndWebOS());
  865. _st($2)._add_($JtalkAndEnyo());
  866. _st($2)._add_($ContributionsSlide());
  867. $3=_st($2)._yourself();
  868. $1=$3;
  869. return $1;
  870. }, function($ctx1) {$ctx1.fill(self,"slideClasses",{},smalltalk.SweSUG2012Presentation)})},
  871. args: [],
  872. source: "slideClasses\x0a\x09^Array new\x0a\x09\x09add: SweSUGIntroSlide;\x0a\x09\x09add: SweSUGAboutSlide;\x0a\x09\x09add: SweSUGWhatIsAmberSlide;\x0a\x09\x09add: SweSUGAmberFeaturesSlide;\x0a\x09\x09add: SweSUGWorkspaceSlide;\x0a\x09\x09add: IDESlide;\x0a\x09\x09add: CountersSlide;\x0a\x09\x09add: JtalkAndJavascriptSlide;\x0a\x09\x09add: JtalkAndJavascriptSlide2;\x0a\x09\x09add: JtalkAndJavascriptSlide3;\x0a\x09\x09add: JtalkAndJavascriptSlide4;\x0a\x09\x09add: JtalkAndCLI;\x0a\x09\x09add: JtalkAndNode;\x0a\x09\x09add: JtalkAndNode2;\x0a\x09\x09add: JtalkAndNode3;\x0a\x09\x09add: JtalkAndWebOS;\x0a\x09\x09add: JtalkAndEnyo;\x0a\x09\x09add: ContributionsSlide;\x0a\x09\x09yourself",
  873. messageSends: ["add:", "new", "yourself"],
  874. referencedClasses: ["SweSUGIntroSlide", "Array", "SweSUGAboutSlide", "SweSUGWhatIsAmberSlide", "SweSUGAmberFeaturesSlide", "SweSUGWorkspaceSlide", "IDESlide", "CountersSlide", "JtalkAndJavascriptSlide", "JtalkAndJavascriptSlide2", "JtalkAndJavascriptSlide3", "JtalkAndJavascriptSlide4", "JtalkAndCLI", "JtalkAndNode", "JtalkAndNode2", "JtalkAndNode3", "JtalkAndWebOS", "JtalkAndEnyo", "ContributionsSlide"]
  875. }),
  876. smalltalk.SweSUG2012Presentation);
  877. smalltalk.addMethod(
  878. smalltalk.method({
  879. selector: "style",
  880. category: 'accessing',
  881. fn: function (){
  882. var self=this;
  883. return smalltalk.withContext(function($ctx1) {
  884. return "\x0abody {\x0a font-family: Helvetica,Arial,sans;\x0a}\x0a\x0a#slides {\x0a width: 100%;\x0a height: 100%;\x0a overflow: hidden;\x0a position: absolute;\x0a top: 0;\x0a bottom: 0;\x0a left: 0;\x0a right: 0;\x0a background: #555;\x0a}\x0a\x0a.slide {\x0a background: #fff;\x0a color: #444;\x0a text-align: left;\x0a font-size: 20px;\x0a line-height: 1.8em;\x0a height: 500px;\x0a width: 700px;\x0a padding: 60px;\x0a position: absolute;\x0a left: 50%;\x0a top: 50%;\x0a margin-left: -420px;\x0a margin-top: -320px;\x0a box-shadow: 0 0 20px #111;\x0a -moz-box-shadow: 0 0 20px #111;\x0a -webkit-box-shadow: 0 0 20px #111;\x0a}\x0a\x0a.slide.transparent {\x0a background: transparent;\x0a box-shadow: 0 0 0 none;\x0a -moz-box-shadow: 0 0 0 transparent;\x0a -webkit-box-shadow: 0 0 0 transparent;\x0a color: #fff !important;\x0a}\x0a\x0a.slide.black {\x0a background: black;\x0a background-image: -webkit-gradient(\x0a\x09linear,\x0a\x09left bottom,\x0a\x09left top,\x0a\x09color-stop(0.38, rgb(79,79,79)),\x0a\x09color-stop(0.69, rgb(33,33,33)),\x0a\x09color-stop(0.86, rgb(4,4,4))\x0a );\x0a background-image: -moz-linear-gradient(\x0a\x09center bottom,\x0a\x09rgb(79,79,79) 38%,\x0a\x09rgb(33,33,33) 69%,\x0a\x09rgb(4,4,4) 86%\x0a );\x0a color: #fff !important;\x0a}\x0a\x0a.slide.black h1, .slide.black h2, .slide.black h3,\x0a.slide.transparent h1, .slide.transparent h2, .slide.transparent h3 {\x0a color: #fff;\x0a text-shadow: 0 1px 4px #aaa;\x0a}\x0a\x0a.slide.black a, .slide.transparent a {\x0a color: #ccc;\x0a}\x0a\x0a.slide.white {\x0a color: #333 !important;\x0a}\x0a\x0a.slide.white h1, .slide.white h2, .slide.white h3 {\x0a color: #333;\x0a}\x0a\x0a.slide.white a {\x0a color: #333;\x0a}\x0a\x0a\x0a.slide h1, .slide h2, .slide h3 {\x0a color: #333;\x0a /* text-align: center; */\x0a}\x0a\x0a.slide h1 {\x0a font-family: \x22Droid Sans\x22;\x0a font-size: 36px;\x0a text-shadow: 0 1px 4px #aaa;\x0a margin-top: 30px;\x0a margin-bottom: 50px;\x0a}\x0a\x0a/* .slide ul, .slide li { */\x0a/* padding: 0; */\x0a/* margin: 0; */\x0a/* } */\x0a\x0a.slide button {\x0a font-size: 18px;\x0a}\x0a\x0a.slide a {\x0a color: #555;\x0a text-decoration: none;\x0a cursor: pointer;\x0a}\x0a\x0a.slide a:hover {\x0a color: #fff;\x0a background: #555;\x0a}\x0a\x0a.slide .right {\x0a text-align: right;\x0a}\x0a\x0a.slide .section.center {\x0a text-align: center;\x0a display: table-cell;\x0a vertical-align: middle;\x0a width: 700px;\x0a height: 500px;\x0a}\x0a\x0a.slide code {\x0a font-family: \x22Droid Sans Mono\x22;\x0a color: #444;\x0a border: 1px solid #ddd;\x0a background: #eee;\x0a border-radius: 4px;\x0a padding: 2px;\x0a font-size: 16px;\x0a}\x0a\x0a.slide .code2 {\x0a font-family: \x22Droid Sans Mono\x22;\x0a line-height: 1.2em;\x0a color: #444;\x0a padding: 2px;\x0a font-size: 16px;\x0a}\x0a\x0a\x0a.slide .CodeMirror {\x0a width: 500px;\x0a height: 300px;\x0a text-align: left;\x0a}\x0a\x0a.slide .CodeMirror-scroll {\x0a text-align: left;\x0a}\x0a\x0a.slide .fancy {\x0a margin-top: 30px;\x0a -webkit-transform: rotate(-10deg);\x0a -moz-transform: rotate(-10deg);\x0a transform: rotate(-10deg);\x0a color: red;\x0a}\x0a\x0a.slide .comment {\x0a opacity: 0.6;\x0a font-weight: normal;\x0a}\x0a\x0a.slide .red {\x0a color: red;\x0a}\x0a\x0a.slide .blue {\x0a color: blue;\x0a}\x0a\x0a.slide#WhatIsJtalk {\x0a background: white url(\x22esug2011/images/balloon.jpg\x22) 650px 50px no-repeat;\x0a}\x0a\x0a.slide#ide {\x0a background: black url(\x22esug2011/images/ide_star_wars.png\x22) center center no-repeat;\x0a}\x0a\x0a.slide#JtalkAndCLI {\x0a background: white url(\x22esug2011/images/terminal.png\x22) 620px 20px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndNode {\x0a background: white url(\x22esug2011/images/nodejs.png\x22) 580px 40px no-repeat;\x0a}\x0a.slide#JtalkAndNode2 {\x0a background: white url(\x22esug2011/images/nodejs.png\x22) 580px 40px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndNode3 {\x0a background: white url(\x22esug2011/images/nodejs.png\x22) 580px 40px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndWebOS {\x0a background: white url(\x22esug2011/images/devices.jpg\x22) 380px 280px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndEnyo {\x0a background: white url(\x22esug2011/images/enyo.png\x22) 130px 150px no-repeat;\x0a}\x0a\x0a.slide#links {\x0a background: white url(\x22esug2011/images/asterix.png\x22) 30px 130px no-repeat;\x0a}\x0a\x0a.slide#links .section {\x0a margin-left: 250px;\x0a margin-top: 200px;\x0a font-family: \x22Droid Sans\x22;\x0a font-size: 26px;\x0a font-weight: bold;\x0a}\x0a\x0a\x0a#meta {\x0a position: absolute;\x0a font-size: 12px;\x0a opacity: 0.6;\x0a bottom: 0;\x0a right: 0;\x0a z-index: 2;\x0a background: #333;\x0a text-align: right;\x0a padding: 0 10px;\x0a line-height: 1.8em;\x0a color: #eee;\x0a border-top-left-radius: 5px;\x0a}\x0a\x0a#meta:hover {\x0a opacity: 0.8;\x0a}\x0a\x0a#meta p {\x0a display: inline;\x0a padding: 0 5px;\x0a}\x0a\x0a#meta a {\x0a //background: #ccc;\x0a color: #ccc;\x0a text-decoration: none;\x0a padding: 0 5px;\x0a}\x0a\x0a.slide {\x0a \x0a}\x0a";
  885. }, function($ctx1) {$ctx1.fill(self,"style",{},smalltalk.SweSUG2012Presentation)})},
  886. args: [],
  887. source: "style\x0a\x09^'\x0abody {\x0a font-family: Helvetica,Arial,sans;\x0a}\x0a\x0a#slides {\x0a width: 100%;\x0a height: 100%;\x0a overflow: hidden;\x0a position: absolute;\x0a top: 0;\x0a bottom: 0;\x0a left: 0;\x0a right: 0;\x0a background: #555;\x0a}\x0a\x0a.slide {\x0a background: #fff;\x0a color: #444;\x0a text-align: left;\x0a font-size: 20px;\x0a line-height: 1.8em;\x0a height: 500px;\x0a width: 700px;\x0a padding: 60px;\x0a position: absolute;\x0a left: 50%;\x0a top: 50%;\x0a margin-left: -420px;\x0a margin-top: -320px;\x0a box-shadow: 0 0 20px #111;\x0a -moz-box-shadow: 0 0 20px #111;\x0a -webkit-box-shadow: 0 0 20px #111;\x0a}\x0a\x0a.slide.transparent {\x0a background: transparent;\x0a box-shadow: 0 0 0 none;\x0a -moz-box-shadow: 0 0 0 transparent;\x0a -webkit-box-shadow: 0 0 0 transparent;\x0a color: #fff !important;\x0a}\x0a\x0a.slide.black {\x0a background: black;\x0a background-image: -webkit-gradient(\x0a\x09linear,\x0a\x09left bottom,\x0a\x09left top,\x0a\x09color-stop(0.38, rgb(79,79,79)),\x0a\x09color-stop(0.69, rgb(33,33,33)),\x0a\x09color-stop(0.86, rgb(4,4,4))\x0a );\x0a background-image: -moz-linear-gradient(\x0a\x09center bottom,\x0a\x09rgb(79,79,79) 38%,\x0a\x09rgb(33,33,33) 69%,\x0a\x09rgb(4,4,4) 86%\x0a );\x0a color: #fff !important;\x0a}\x0a\x0a.slide.black h1, .slide.black h2, .slide.black h3,\x0a.slide.transparent h1, .slide.transparent h2, .slide.transparent h3 {\x0a color: #fff;\x0a text-shadow: 0 1px 4px #aaa;\x0a}\x0a\x0a.slide.black a, .slide.transparent a {\x0a color: #ccc;\x0a}\x0a\x0a.slide.white {\x0a color: #333 !important;\x0a}\x0a\x0a.slide.white h1, .slide.white h2, .slide.white h3 {\x0a color: #333;\x0a}\x0a\x0a.slide.white a {\x0a color: #333;\x0a}\x0a\x0a\x0a.slide h1, .slide h2, .slide h3 {\x0a color: #333;\x0a /* text-align: center; */\x0a}\x0a\x0a.slide h1 {\x0a font-family: \x22Droid Sans\x22;\x0a font-size: 36px;\x0a text-shadow: 0 1px 4px #aaa;\x0a margin-top: 30px;\x0a margin-bottom: 50px;\x0a}\x0a\x0a/* .slide ul, .slide li { */\x0a/* padding: 0; */\x0a/* margin: 0; */\x0a/* } */\x0a\x0a.slide button {\x0a font-size: 18px;\x0a}\x0a\x0a.slide a {\x0a color: #555;\x0a text-decoration: none;\x0a cursor: pointer;\x0a}\x0a\x0a.slide a:hover {\x0a color: #fff;\x0a background: #555;\x0a}\x0a\x0a.slide .right {\x0a text-align: right;\x0a}\x0a\x0a.slide .section.center {\x0a text-align: center;\x0a display: table-cell;\x0a vertical-align: middle;\x0a width: 700px;\x0a height: 500px;\x0a}\x0a\x0a.slide code {\x0a font-family: \x22Droid Sans Mono\x22;\x0a color: #444;\x0a border: 1px solid #ddd;\x0a background: #eee;\x0a border-radius: 4px;\x0a padding: 2px;\x0a font-size: 16px;\x0a}\x0a\x0a.slide .code2 {\x0a font-family: \x22Droid Sans Mono\x22;\x0a line-height: 1.2em;\x0a color: #444;\x0a padding: 2px;\x0a font-size: 16px;\x0a}\x0a\x0a\x0a.slide .CodeMirror {\x0a width: 500px;\x0a height: 300px;\x0a text-align: left;\x0a}\x0a\x0a.slide .CodeMirror-scroll {\x0a text-align: left;\x0a}\x0a\x0a.slide .fancy {\x0a margin-top: 30px;\x0a -webkit-transform: rotate(-10deg);\x0a -moz-transform: rotate(-10deg);\x0a transform: rotate(-10deg);\x0a color: red;\x0a}\x0a\x0a.slide .comment {\x0a opacity: 0.6;\x0a font-weight: normal;\x0a}\x0a\x0a.slide .red {\x0a color: red;\x0a}\x0a\x0a.slide .blue {\x0a color: blue;\x0a}\x0a\x0a.slide#WhatIsJtalk {\x0a background: white url(\x22esug2011/images/balloon.jpg\x22) 650px 50px no-repeat;\x0a}\x0a\x0a.slide#ide {\x0a background: black url(\x22esug2011/images/ide_star_wars.png\x22) center center no-repeat;\x0a}\x0a\x0a.slide#JtalkAndCLI {\x0a background: white url(\x22esug2011/images/terminal.png\x22) 620px 20px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndNode {\x0a background: white url(\x22esug2011/images/nodejs.png\x22) 580px 40px no-repeat;\x0a}\x0a.slide#JtalkAndNode2 {\x0a background: white url(\x22esug2011/images/nodejs.png\x22) 580px 40px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndNode3 {\x0a background: white url(\x22esug2011/images/nodejs.png\x22) 580px 40px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndWebOS {\x0a background: white url(\x22esug2011/images/devices.jpg\x22) 380px 280px no-repeat;\x0a}\x0a\x0a.slide#JtalkAndEnyo {\x0a background: white url(\x22esug2011/images/enyo.png\x22) 130px 150px no-repeat;\x0a}\x0a\x0a.slide#links {\x0a background: white url(\x22esug2011/images/asterix.png\x22) 30px 130px no-repeat;\x0a}\x0a\x0a.slide#links .section {\x0a margin-left: 250px;\x0a margin-top: 200px;\x0a font-family: \x22Droid Sans\x22;\x0a font-size: 26px;\x0a font-weight: bold;\x0a}\x0a\x0a\x0a#meta {\x0a position: absolute;\x0a font-size: 12px;\x0a opacity: 0.6;\x0a bottom: 0;\x0a right: 0;\x0a z-index: 2;\x0a background: #333;\x0a text-align: right;\x0a padding: 0 10px;\x0a line-height: 1.8em;\x0a color: #eee;\x0a border-top-left-radius: 5px;\x0a}\x0a\x0a#meta:hover {\x0a opacity: 0.8;\x0a}\x0a\x0a#meta p {\x0a display: inline;\x0a padding: 0 5px;\x0a}\x0a\x0a#meta a {\x0a //background: #ccc;\x0a color: #ccc;\x0a text-decoration: none;\x0a padding: 0 5px;\x0a}\x0a\x0a.slide {\x0a \x0a}\x0a'",
  888. messageSends: [],
  889. referencedClasses: []
  890. }),
  891. smalltalk.SweSUG2012Presentation);
  892. smalltalk.addMethod(
  893. smalltalk.method({
  894. selector: "url",
  895. category: 'accessing',
  896. fn: function (){
  897. var self=this;
  898. return smalltalk.withContext(function($ctx1) {
  899. return "http://www.amber-lang.net";
  900. }, function($ctx1) {$ctx1.fill(self,"url",{},smalltalk.SweSUG2012Presentation)})},
  901. args: [],
  902. source: "url\x0a\x09^'http://www.amber-lang.net'",
  903. messageSends: [],
  904. referencedClasses: []
  905. }),
  906. smalltalk.SweSUG2012Presentation);
  907. smalltalk.addMethod(
  908. smalltalk.method({
  909. selector: "isConcrete",
  910. category: 'testing',
  911. fn: function (){
  912. var self=this;
  913. return smalltalk.withContext(function($ctx1) {
  914. return true;
  915. }, function($ctx1) {$ctx1.fill(self,"isConcrete",{},smalltalk.SweSUG2012Presentation.klass)})},
  916. args: [],
  917. source: "isConcrete\x0a\x09^true",
  918. messageSends: [],
  919. referencedClasses: []
  920. }),
  921. smalltalk.SweSUG2012Presentation.klass);
  922. smalltalk.addMethod(
  923. smalltalk.method({
  924. selector: "title",
  925. category: 'accessing',
  926. fn: function (){
  927. var self=this;
  928. return smalltalk.withContext(function($ctx1) {
  929. return "Amber rocks!";
  930. }, function($ctx1) {$ctx1.fill(self,"title",{},smalltalk.SweSUG2012Presentation.klass)})},
  931. args: [],
  932. source: "title\x0a\x09^'Amber rocks!'",
  933. messageSends: [],
  934. referencedClasses: []
  935. }),
  936. smalltalk.SweSUG2012Presentation.klass);
  937. smalltalk.addClass('PresentationNavigator', smalltalk.Widget, ['presentationBrush', 'currentPresentation', 'slideSelect'], 'Presentation');
  938. smalltalk.addMethod(
  939. smalltalk.method({
  940. selector: "checkHash",
  941. category: 'hash',
  942. fn: function (){
  943. var self=this;
  944. var hash,presentation;
  945. function $Presentation(){return smalltalk.Presentation||(typeof Presentation=="undefined"?nil:Presentation)}
  946. return smalltalk.withContext(function($ctx1) {
  947. var $1,$2;
  948. var $early={};
  949. try {
  950. hash=_st(_st(_st(_st(document)._location())._hash())._replace_with_("^#",""))._tokenize_("-");
  951. presentation=_st(_st($Presentation())._concretePresentations())._detect_ifNone_((function(aPresentationClass){
  952. return smalltalk.withContext(function($ctx2) {
  953. return _st(_st(aPresentationClass)._name()).__eq_eq(_st(hash)._first());
  954. }, function($ctx2) {$ctx2.fillBlock({aPresentationClass:aPresentationClass},$ctx1)})}),(function(){
  955. return smalltalk.withContext(function($ctx2) {
  956. $1=self;
  957. throw $early=[$1];
  958. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  959. $2=_st(presentation).__eq_eq(_st(self._currentPresentation())._class());
  960. if(! smalltalk.assert($2)){
  961. self._selectPresentationNamed_(presentation);
  962. self._selectSlideAt_(_st(hash)._last());
  963. };
  964. return self}
  965. catch(e) {if(e===$early)return e[0]; throw e}
  966. }, function($ctx1) {$ctx1.fill(self,"checkHash",{hash:hash,presentation:presentation},smalltalk.PresentationNavigator)})},
  967. args: [],
  968. source: "checkHash\x0a\x09| hash presentation |\x0a\x09hash := (document location hash replace: '^#' with: '') tokenize: '-'. \x0a\x09presentation := Presentation concretePresentations \x0a\x09\x09\x09\x09detect: [:aPresentationClass | aPresentationClass name == hash first]\x0a\x09\x09\x09\x09ifNone: [^ self].\x0a\x09presentation == self currentPresentation class ifFalse: [\x0a \x09self selectPresentationNamed: presentation.\x0a \x09self selectSlideAt: hash last\x0a ].",
  969. messageSends: ["tokenize:", "replace:with:", "hash", "location", "detect:ifNone:", "==", "first", "name", "concretePresentations", "ifFalse:", "selectPresentationNamed:", "selectSlideAt:", "last", "class", "currentPresentation"],
  970. referencedClasses: ["Presentation"]
  971. }),
  972. smalltalk.PresentationNavigator);
  973. smalltalk.addMethod(
  974. smalltalk.method({
  975. selector: "checkHashChange",
  976. category: 'hash',
  977. fn: function (){
  978. var self=this;
  979. return smalltalk.withContext(function($ctx1) {
  980. _st(_st(window)._jQuery_(window))._bind_do_("hashchange",(function(){
  981. return smalltalk.withContext(function($ctx2) {
  982. return self._checkHash();
  983. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  984. return self}, function($ctx1) {$ctx1.fill(self,"checkHashChange",{},smalltalk.PresentationNavigator)})},
  985. args: [],
  986. source: "checkHashChange\x0a\x09(window jQuery: window) bind: 'hashchange' do: [self checkHash]",
  987. messageSends: ["bind:do:", "checkHash", "jQuery:"],
  988. referencedClasses: []
  989. }),
  990. smalltalk.PresentationNavigator);
  991. smalltalk.addMethod(
  992. smalltalk.method({
  993. selector: "currentPresentation",
  994. category: 'accessing',
  995. fn: function (){
  996. var self=this;
  997. function $Presentation(){return smalltalk.Presentation||(typeof Presentation=="undefined"?nil:Presentation)}
  998. return smalltalk.withContext(function($ctx1) {
  999. var $2,$1;
  1000. $2=self["@currentPresentation"];
  1001. if(($receiver = $2) == nil || $receiver == undefined){
  1002. self["@currentPresentation"]=_st(_st(_st($Presentation())._concretePresentations())._first())._new();
  1003. $1=self["@currentPresentation"];
  1004. } else {
  1005. $1=$2;
  1006. };
  1007. return $1;
  1008. }, function($ctx1) {$ctx1.fill(self,"currentPresentation",{},smalltalk.PresentationNavigator)})},
  1009. args: [],
  1010. source: "currentPresentation\x0a\x09^ currentPresentation ifNil: [currentPresentation := Presentation concretePresentations first new].",
  1011. messageSends: ["ifNil:", "new", "first", "concretePresentations"],
  1012. referencedClasses: ["Presentation"]
  1013. }),
  1014. smalltalk.PresentationNavigator);
  1015. smalltalk.addMethod(
  1016. smalltalk.method({
  1017. selector: "currentPresentation:",
  1018. category: 'accessing',
  1019. fn: function (aPresentation){
  1020. var self=this;
  1021. return smalltalk.withContext(function($ctx1) {
  1022. self["@currentPresentation"]=aPresentation;
  1023. return self}, function($ctx1) {$ctx1.fill(self,"currentPresentation:",{aPresentation:aPresentation},smalltalk.PresentationNavigator)})},
  1024. args: ["aPresentation"],
  1025. source: "currentPresentation: aPresentation\x0a\x09currentPresentation := aPresentation.",
  1026. messageSends: [],
  1027. referencedClasses: []
  1028. }),
  1029. smalltalk.PresentationNavigator);
  1030. smalltalk.addMethod(
  1031. smalltalk.method({
  1032. selector: "nextSlide",
  1033. category: 'callbacks',
  1034. fn: function (){
  1035. var self=this;
  1036. return smalltalk.withContext(function($ctx1) {
  1037. _st(self._currentPresentation())._nextSlide();
  1038. self._updateHash();
  1039. return self}, function($ctx1) {$ctx1.fill(self,"nextSlide",{},smalltalk.PresentationNavigator)})},
  1040. args: [],
  1041. source: "nextSlide\x0a\x09self currentPresentation nextSlide.\x0a\x09self updateHash.",
  1042. messageSends: ["nextSlide", "currentPresentation", "updateHash"],
  1043. referencedClasses: []
  1044. }),
  1045. smalltalk.PresentationNavigator);
  1046. smalltalk.addMethod(
  1047. smalltalk.method({
  1048. selector: "open",
  1049. category: 'rendering',
  1050. fn: function (){
  1051. var self=this;
  1052. return smalltalk.withContext(function($ctx1) {
  1053. var $1,$2;
  1054. _st(_st(window)._jQuery_(document))._ready_((function(){
  1055. return smalltalk.withContext(function($ctx2) {
  1056. $1=self;
  1057. _st($1)._appendToJQuery_("body"._asJQuery());
  1058. _st($1)._setKeybindings();
  1059. $2=_st($1)._checkHashChange();
  1060. return $2;
  1061. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1062. return self}, function($ctx1) {$ctx1.fill(self,"open",{},smalltalk.PresentationNavigator)})},
  1063. args: [],
  1064. source: "open\x0a\x09(window jQuery: document) ready: [\x0a \x09self \x0a \x09\x09appendToJQuery: 'body' asJQuery;\x0a \x09\x09setKeybindings;\x0a \x09\x09checkHashChange.\x0a ].",
  1065. messageSends: ["ready:", "appendToJQuery:", "asJQuery", "setKeybindings", "checkHashChange", "jQuery:"],
  1066. referencedClasses: []
  1067. }),
  1068. smalltalk.PresentationNavigator);
  1069. smalltalk.addMethod(
  1070. smalltalk.method({
  1071. selector: "previousSlide",
  1072. category: 'callbacks',
  1073. fn: function (){
  1074. var self=this;
  1075. return smalltalk.withContext(function($ctx1) {
  1076. _st(self._currentPresentation())._previousSlide();
  1077. self._updateHash();
  1078. return self}, function($ctx1) {$ctx1.fill(self,"previousSlide",{},smalltalk.PresentationNavigator)})},
  1079. args: [],
  1080. source: "previousSlide\x0a\x09self currentPresentation previousSlide.\x0a\x09self updateHash.",
  1081. messageSends: ["previousSlide", "currentPresentation", "updateHash"],
  1082. referencedClasses: []
  1083. }),
  1084. smalltalk.PresentationNavigator);
  1085. smalltalk.addMethod(
  1086. smalltalk.method({
  1087. selector: "reload",
  1088. category: 'callbacks',
  1089. fn: function (){
  1090. var self=this;
  1091. var slideIndex;
  1092. return smalltalk.withContext(function($ctx1) {
  1093. slideIndex=_st(self._currentPresentation())._currentSlideIndex();
  1094. self._currentPresentation_(_st(_st(self._currentPresentation())._class())._new());
  1095. self._renderCurrentPresentation();
  1096. self._selectSlideAt_(slideIndex);
  1097. return self}, function($ctx1) {$ctx1.fill(self,"reload",{slideIndex:slideIndex},smalltalk.PresentationNavigator)})},
  1098. args: [],
  1099. source: "reload\x0a\x09|slideIndex|\x0a\x09slideIndex := self currentPresentation currentSlideIndex.\x0a\x09self currentPresentation: self currentPresentation class new.\x0a\x09self renderCurrentPresentation.\x0a\x09self selectSlideAt: slideIndex.",
  1100. messageSends: ["currentSlideIndex", "currentPresentation", "currentPresentation:", "new", "class", "renderCurrentPresentation", "selectSlideAt:"],
  1101. referencedClasses: []
  1102. }),
  1103. smalltalk.PresentationNavigator);
  1104. smalltalk.addMethod(
  1105. smalltalk.method({
  1106. selector: "renderCurrentPresentation",
  1107. category: 'rendering',
  1108. fn: function (){
  1109. var self=this;
  1110. return smalltalk.withContext(function($ctx1) {
  1111. _st(self["@presentationBrush"])._contents_((function(html){
  1112. return smalltalk.withContext(function($ctx2) {
  1113. return _st(self._currentPresentation())._renderOn_(html);
  1114. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}));
  1115. self._updateSlideSelect();
  1116. return self}, function($ctx1) {$ctx1.fill(self,"renderCurrentPresentation",{},smalltalk.PresentationNavigator)})},
  1117. args: [],
  1118. source: "renderCurrentPresentation\x0a\x09presentationBrush contents: [:html |\x0a \x09self currentPresentation renderOn: html.\x0a ].\x0a\x09self updateSlideSelect.",
  1119. messageSends: ["contents:", "renderOn:", "currentPresentation", "updateSlideSelect"],
  1120. referencedClasses: []
  1121. }),
  1122. smalltalk.PresentationNavigator);
  1123. smalltalk.addMethod(
  1124. smalltalk.method({
  1125. selector: "renderOn:",
  1126. category: 'rendering',
  1127. fn: function (html){
  1128. var self=this;
  1129. return smalltalk.withContext(function($ctx1) {
  1130. var $1,$2,$3,$5,$6,$4,$7,$8;
  1131. $1=_st(html)._style();
  1132. _st($1)._type_("text/css");
  1133. $2=_st($1)._with_(self._style());
  1134. $3=_st(html)._div();
  1135. _st($3)._id_("navigator");
  1136. $4=_st($3)._with_((function(){
  1137. return smalltalk.withContext(function($ctx2) {
  1138. $5=self;
  1139. _st($5)._renderToolsOn_(html);
  1140. _st($5)._renderPresentationSelectOn_(html);
  1141. $6=_st($5)._renderSlideSelectOn_(html);
  1142. return $6;
  1143. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1144. $7=_st(html)._div();
  1145. _st($7)._id_("presentation");
  1146. $8=_st($7)._yourself();
  1147. self["@presentationBrush"]=$8;
  1148. self._checkHash();
  1149. self._renderCurrentPresentation();
  1150. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.PresentationNavigator)})},
  1151. args: ["html"],
  1152. source: "renderOn: html\x0a\x09html style\x0a\x09\x09type: 'text/css';\x0a\x09\x09with: self style.\x0a\x09html div\x0a\x09\x09id: 'navigator';\x0a\x09\x09with: [\x09self\x0a\x09\x09\x09\x09\x09renderToolsOn: html;\x0a\x09\x09\x09\x09\x09renderPresentationSelectOn: html;\x0a \x09\x09\x09renderSlideSelectOn: html].\x0a\x0a\x09presentationBrush := html div \x0a\x09\x09\x09\x09\x09\x09\x09id: 'presentation';\x0a\x09\x09\x09\x09\x09\x09\x09yourself.\x0a\x0a\x09self checkHash.\x0a\x09self renderCurrentPresentation.",
  1153. messageSends: ["type:", "style", "with:", "id:", "div", "renderToolsOn:", "renderPresentationSelectOn:", "renderSlideSelectOn:", "yourself", "checkHash", "renderCurrentPresentation"],
  1154. referencedClasses: []
  1155. }),
  1156. smalltalk.PresentationNavigator);
  1157. smalltalk.addMethod(
  1158. smalltalk.method({
  1159. selector: "renderPresentationSelectOn:",
  1160. category: 'rendering',
  1161. fn: function (html){
  1162. var self=this;
  1163. var presentationSelect;
  1164. function $Presentation(){return smalltalk.Presentation||(typeof Presentation=="undefined"?nil:Presentation)}
  1165. return smalltalk.withContext(function($ctx1) {
  1166. var $1,$3,$4,$2;
  1167. presentationSelect=_st(html)._select();
  1168. $1=presentationSelect;
  1169. _st($1)._onChange_((function(){
  1170. return smalltalk.withContext(function($ctx2) {
  1171. return self._selectPresentationNamed_(_st(_st(presentationSelect)._asJQuery())._val());
  1172. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1173. $2=_st($1)._with_((function(){
  1174. return smalltalk.withContext(function($ctx2) {
  1175. return _st($Presentation())._concretePresentationsDo_((function(aPresentationClass){
  1176. return smalltalk.withContext(function($ctx3) {
  1177. $3=_st(html)._option();
  1178. _st($3)._value_(_st(aPresentationClass)._name());
  1179. $4=_st($3)._with_(_st(aPresentationClass)._title());
  1180. return $4;
  1181. }, function($ctx3) {$ctx3.fillBlock({aPresentationClass:aPresentationClass},$ctx2)})}));
  1182. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1183. return self}, function($ctx1) {$ctx1.fill(self,"renderPresentationSelectOn:",{html:html,presentationSelect:presentationSelect},smalltalk.PresentationNavigator)})},
  1184. args: ["html"],
  1185. source: "renderPresentationSelectOn: html\x0a\x09|presentationSelect|\x0a\x09presentationSelect := html select.\x0a\x09presentationSelect\x0a\x09\x09onChange: [self selectPresentationNamed: presentationSelect asJQuery val];\x0a\x09\x09with: [\x09Presentation concretePresentationsDo: [:aPresentationClass | \x0a \x09\x09\x09\x09\x09\x09\x09html option\x0a \x09\x09\x09\x09\x09\x09\x09\x09value: aPresentationClass name;\x0a \x09\x09\x09\x09\x09\x09\x09\x09with: aPresentationClass title ] ].",
  1186. messageSends: ["select", "onChange:", "selectPresentationNamed:", "val", "asJQuery", "with:", "concretePresentationsDo:", "value:", "name", "option", "title"],
  1187. referencedClasses: ["Presentation"]
  1188. }),
  1189. smalltalk.PresentationNavigator);
  1190. smalltalk.addMethod(
  1191. smalltalk.method({
  1192. selector: "renderSlideSelectOn:",
  1193. category: 'rendering',
  1194. fn: function (html){
  1195. var self=this;
  1196. return smalltalk.withContext(function($ctx1) {
  1197. self["@slideSelect"]=_st(html)._select();
  1198. _st(self["@slideSelect"])._onChange_((function(){
  1199. return smalltalk.withContext(function($ctx2) {
  1200. return self._selectSlideAt_(_st(_st(self["@slideSelect"])._asJQuery())._val());
  1201. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1202. self._updateSlideSelect();
  1203. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideSelectOn:",{html:html},smalltalk.PresentationNavigator)})},
  1204. args: ["html"],
  1205. source: "renderSlideSelectOn: html\x0a\x09slideSelect := html select.\x0a\x09slideSelect onChange: [ self selectSlideAt: slideSelect asJQuery val ].\x0a\x09self updateSlideSelect.",
  1206. messageSends: ["select", "onChange:", "selectSlideAt:", "val", "asJQuery", "updateSlideSelect"],
  1207. referencedClasses: []
  1208. }),
  1209. smalltalk.PresentationNavigator);
  1210. smalltalk.addMethod(
  1211. smalltalk.method({
  1212. selector: "renderToolsOn:",
  1213. category: 'rendering',
  1214. fn: function (html){
  1215. var self=this;
  1216. function $TabManager(){return smalltalk.TabManager||(typeof TabManager=="undefined"?nil:TabManager)}
  1217. return smalltalk.withContext(function($ctx1) {
  1218. var $1,$2,$3,$4,$5,$6,$7,$8;
  1219. $1=_st(html)._a();
  1220. _st($1)._with_("IDE");
  1221. $2=_st($1)._onClick_((function(){
  1222. return smalltalk.withContext(function($ctx2) {
  1223. return _st(_st($TabManager())._current())._open();
  1224. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1225. $3=_st(html)._a();
  1226. _st($3)._with_("Reload");
  1227. $4=_st($3)._onClick_((function(){
  1228. return smalltalk.withContext(function($ctx2) {
  1229. return self._reload();
  1230. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1231. $5=_st(html)._a();
  1232. _st($5)._with_("←");
  1233. $6=_st($5)._onClick_((function(){
  1234. return smalltalk.withContext(function($ctx2) {
  1235. return self._previousSlide();
  1236. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1237. $7=_st(html)._a();
  1238. _st($7)._with_("→");
  1239. $8=_st($7)._onClick_((function(){
  1240. return smalltalk.withContext(function($ctx2) {
  1241. return self._nextSlide();
  1242. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1243. return self}, function($ctx1) {$ctx1.fill(self,"renderToolsOn:",{html:html},smalltalk.PresentationNavigator)})},
  1244. args: ["html"],
  1245. source: "renderToolsOn: html\x0a\x09html a \x0a\x09\x09with: 'IDE';\x0a\x09\x09onClick: [TabManager current open].\x0a\x09html a\x0a\x09\x09with: 'Reload';\x0a\x09\x09onClick: [self reload].\x0a\x09html a\x0a\x09\x09with: '←';\x0a\x09\x09onClick: [self previousSlide].\x0a\x09html a\x0a\x09\x09with: '→';\x0a\x09\x09onClick: [self nextSlide].",
  1246. messageSends: ["with:", "a", "onClick:", "open", "current", "reload", "previousSlide", "nextSlide"],
  1247. referencedClasses: ["TabManager"]
  1248. }),
  1249. smalltalk.PresentationNavigator);
  1250. smalltalk.addMethod(
  1251. smalltalk.method({
  1252. selector: "selectPresentation:",
  1253. category: 'callbacks',
  1254. fn: function (aPresentationClass){
  1255. var self=this;
  1256. return smalltalk.withContext(function($ctx1) {
  1257. self._currentPresentation_(_st(aPresentationClass)._new());
  1258. self._renderCurrentPresentation();
  1259. return self}, function($ctx1) {$ctx1.fill(self,"selectPresentation:",{aPresentationClass:aPresentationClass},smalltalk.PresentationNavigator)})},
  1260. args: ["aPresentationClass"],
  1261. source: "selectPresentation: aPresentationClass\x0a\x09self currentPresentation: aPresentationClass new.\x0a\x09self renderCurrentPresentation.",
  1262. messageSends: ["currentPresentation:", "new", "renderCurrentPresentation"],
  1263. referencedClasses: []
  1264. }),
  1265. smalltalk.PresentationNavigator);
  1266. smalltalk.addMethod(
  1267. smalltalk.method({
  1268. selector: "selectPresentationNamed:",
  1269. category: 'callbacks',
  1270. fn: function (aString){
  1271. var self=this;
  1272. var presentationClass;
  1273. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  1274. return smalltalk.withContext(function($ctx1) {
  1275. var $1;
  1276. presentationClass=_st(_st($Smalltalk())._current())._at_(aString);
  1277. $1=presentationClass;
  1278. if(($receiver = $1) == nil || $receiver == undefined){
  1279. $1;
  1280. } else {
  1281. self._selectPresentation_(presentationClass);
  1282. };
  1283. return self}, function($ctx1) {$ctx1.fill(self,"selectPresentationNamed:",{aString:aString,presentationClass:presentationClass},smalltalk.PresentationNavigator)})},
  1284. args: ["aString"],
  1285. source: "selectPresentationNamed: aString\x0a\x09|presentationClass|\x0a\x09presentationClass := (Smalltalk current at: aString).\x0a\x09presentationClass ifNotNil: [ self selectPresentation: presentationClass ].",
  1286. messageSends: ["at:", "current", "ifNotNil:", "selectPresentation:"],
  1287. referencedClasses: ["Smalltalk"]
  1288. }),
  1289. smalltalk.PresentationNavigator);
  1290. smalltalk.addMethod(
  1291. smalltalk.method({
  1292. selector: "selectSlideAt:",
  1293. category: 'callbacks',
  1294. fn: function (anInteger){
  1295. var self=this;
  1296. return smalltalk.withContext(function($ctx1) {
  1297. _st(self._currentPresentation())._moveAt_(anInteger);
  1298. self._updateHash();
  1299. return self}, function($ctx1) {$ctx1.fill(self,"selectSlideAt:",{anInteger:anInteger},smalltalk.PresentationNavigator)})},
  1300. args: ["anInteger"],
  1301. source: "selectSlideAt: anInteger\x0a\x09self currentPresentation moveAt: anInteger.\x0a\x09self updateHash.",
  1302. messageSends: ["moveAt:", "currentPresentation", "updateHash"],
  1303. referencedClasses: []
  1304. }),
  1305. smalltalk.PresentationNavigator);
  1306. smalltalk.addMethod(
  1307. smalltalk.method({
  1308. selector: "setKeybindings",
  1309. category: 'keybindings',
  1310. fn: function (){
  1311. var self=this;
  1312. return smalltalk.withContext(function($ctx1) {
  1313. var $1,$2,$3;
  1314. _st(_st(window)._jQuery_(document))._keyup_((function(e){
  1315. var node;
  1316. return smalltalk.withContext(function($ctx2) {
  1317. node=_st(_st(_st(e)._target())._nodeName())._asLowercase();
  1318. node;
  1319. $1=_st(_st(node).__eq("textarea"))._or_((function(){
  1320. return smalltalk.withContext(function($ctx3) {
  1321. return _st(node).__eq("input");
  1322. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1323. if(! smalltalk.assert($1)){
  1324. $2=_st(_st(e)._keyCode()).__eq((39));
  1325. if(smalltalk.assert($2)){
  1326. self._nextSlide();
  1327. };
  1328. $3=_st(_st(e)._keyCode()).__eq((37));
  1329. if(smalltalk.assert($3)){
  1330. return self._previousSlide();
  1331. };
  1332. };
  1333. }, function($ctx2) {$ctx2.fillBlock({e:e,node:node},$ctx1)})}));
  1334. return self}, function($ctx1) {$ctx1.fill(self,"setKeybindings",{},smalltalk.PresentationNavigator)})},
  1335. args: [],
  1336. source: "setKeybindings\x0a\x09(window jQuery: document) keyup: [:e || node |\x0a\x09\x09node := e target nodeName asLowercase.\x0a\x09\x09(node = 'textarea' or: [node = 'input']) ifFalse: [\x0a\x09\x09\x09e keyCode = 39 ifTrue: [self nextSlide].\x0a\x09\x09\x09e keyCode = 37 ifTrue: [self previousSlide]]]",
  1337. messageSends: ["keyup:", "asLowercase", "nodeName", "target", "ifFalse:", "ifTrue:", "nextSlide", "=", "keyCode", "previousSlide", "or:", "jQuery:"],
  1338. referencedClasses: []
  1339. }),
  1340. smalltalk.PresentationNavigator);
  1341. smalltalk.addMethod(
  1342. smalltalk.method({
  1343. selector: "style",
  1344. category: 'accessing',
  1345. fn: function (){
  1346. var self=this;
  1347. return smalltalk.withContext(function($ctx1) {
  1348. return "\x0a#navigator {\x0a z-index: 1;\x0a position: fixed;\x0a top: 0;\x0a left: 50%;\x0a margin-left: -150px;\x0a padding: 5px;\x0a border-radius: 5px;\x0a -moz-border-radius: 5px;\x0a -webkit-border-radius: 5px;\x0a background: #333;\x0a opacity: 0.3;\x0a color: #eee;\x0a}\x0a\x0a#navigator a {\x0a font-weight: bold;\x0a color: #eee;\x0a text-decoration: none;\x0a cursor: pointer;\x0a padding: 0 2px;\x0a font-size: 14px;\x0a}\x0a\x0a#navigator:hover {\x0a opacity: 0.8;\x0a}\x0a";
  1349. }, function($ctx1) {$ctx1.fill(self,"style",{},smalltalk.PresentationNavigator)})},
  1350. args: [],
  1351. source: "style\x0a\x09^ '\x0a#navigator {\x0a z-index: 1;\x0a position: fixed;\x0a top: 0;\x0a left: 50%;\x0a margin-left: -150px;\x0a padding: 5px;\x0a border-radius: 5px;\x0a -moz-border-radius: 5px;\x0a -webkit-border-radius: 5px;\x0a background: #333;\x0a opacity: 0.3;\x0a color: #eee;\x0a}\x0a\x0a#navigator a {\x0a font-weight: bold;\x0a color: #eee;\x0a text-decoration: none;\x0a cursor: pointer;\x0a padding: 0 2px;\x0a font-size: 14px;\x0a}\x0a\x0a#navigator:hover {\x0a opacity: 0.8;\x0a}\x0a'",
  1352. messageSends: [],
  1353. referencedClasses: []
  1354. }),
  1355. smalltalk.PresentationNavigator);
  1356. smalltalk.addMethod(
  1357. smalltalk.method({
  1358. selector: "updateHash",
  1359. category: 'callbacks',
  1360. fn: function (){
  1361. var self=this;
  1362. return smalltalk.withContext(function($ctx1) {
  1363. _st(_st(document)._location())._hash_(_st(_st(_st(_st(self._currentPresentation())._class())._name()).__comma("-")).__comma(_st(self._currentPresentation())._currentSlideIndex()));
  1364. return self}, function($ctx1) {$ctx1.fill(self,"updateHash",{},smalltalk.PresentationNavigator)})},
  1365. args: [],
  1366. source: "updateHash\x0a\x09document location hash: self currentPresentation class name, '-', self currentPresentation currentSlideIndex.",
  1367. messageSends: ["hash:", ",", "currentSlideIndex", "currentPresentation", "name", "class", "location"],
  1368. referencedClasses: []
  1369. }),
  1370. smalltalk.PresentationNavigator);
  1371. smalltalk.addMethod(
  1372. smalltalk.method({
  1373. selector: "updateSlideSelect",
  1374. category: 'rendering',
  1375. fn: function (){
  1376. var self=this;
  1377. return smalltalk.withContext(function($ctx1) {
  1378. var $1,$2;
  1379. _st(self["@slideSelect"])._contents_((function(html){
  1380. var index;
  1381. return smalltalk.withContext(function($ctx2) {
  1382. index=(0);
  1383. index;
  1384. return _st(self._currentPresentation())._slidesDo_((function(aSlide){
  1385. return smalltalk.withContext(function($ctx3) {
  1386. index=_st(index).__plus((1));
  1387. index;
  1388. $1=_st(html)._option();
  1389. _st($1)._value_(index);
  1390. $2=_st($1)._with_(_st(aSlide)._title());
  1391. return $2;
  1392. }, function($ctx3) {$ctx3.fillBlock({aSlide:aSlide},$ctx2)})}));
  1393. }, function($ctx2) {$ctx2.fillBlock({html:html,index:index},$ctx1)})}));
  1394. return self}, function($ctx1) {$ctx1.fill(self,"updateSlideSelect",{},smalltalk.PresentationNavigator)})},
  1395. args: [],
  1396. source: "updateSlideSelect\x0a\x09slideSelect contents: [:html| |index|\x0a\x09\x09 \x09\x09index := 0.\x0a \x09\x09 \x09\x09self currentPresentation slidesDo: [ :aSlide| \x0a \x09\x09 \x09\x09\x09\x09index := index + 1.\x0a \x09\x09 \x09\x09\x09\x09html option\x0a \x09\x09 \x09\x09\x09\x09\x09value: index;\x0a \x09\x09\x09\x09\x09\x09\x09\x09with: aSlide title ] ].",
  1397. messageSends: ["contents:", "slidesDo:", "+", "value:", "option", "with:", "title", "currentPresentation"],
  1398. referencedClasses: []
  1399. }),
  1400. smalltalk.PresentationNavigator);
  1401. smalltalk.addMethod(
  1402. smalltalk.method({
  1403. selector: "initialize",
  1404. category: 'initialize',
  1405. fn: function (){
  1406. var self=this;
  1407. return smalltalk.withContext(function($ctx1) {
  1408. var $1;
  1409. $1=self._open();
  1410. return $1;
  1411. }, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.PresentationNavigator.klass)})},
  1412. args: [],
  1413. source: "initialize\x0a\x09^ self open",
  1414. messageSends: ["open"],
  1415. referencedClasses: []
  1416. }),
  1417. smalltalk.PresentationNavigator.klass);
  1418. smalltalk.addMethod(
  1419. smalltalk.method({
  1420. selector: "open",
  1421. category: 'initialize',
  1422. fn: function (){
  1423. var self=this;
  1424. return smalltalk.withContext(function($ctx1) {
  1425. var $1;
  1426. $1=_st(self._new())._open();
  1427. return $1;
  1428. }, function($ctx1) {$ctx1.fill(self,"open",{},smalltalk.PresentationNavigator.klass)})},
  1429. args: [],
  1430. source: "open\x0a\x09^ self new open",
  1431. messageSends: ["open", "new"],
  1432. referencedClasses: []
  1433. }),
  1434. smalltalk.PresentationNavigator.klass);
  1435. smalltalk.addClass('Slide', smalltalk.Widget, ['presentation'], 'Presentation');
  1436. smalltalk.addMethod(
  1437. smalltalk.method({
  1438. selector: "backgroundColor",
  1439. category: 'accessing',
  1440. fn: function (){
  1441. var self=this;
  1442. return smalltalk.withContext(function($ctx1) {
  1443. return "#555";
  1444. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.Slide)})},
  1445. args: [],
  1446. source: "backgroundColor\x0a\x09^'#555'",
  1447. messageSends: [],
  1448. referencedClasses: []
  1449. }),
  1450. smalltalk.Slide);
  1451. smalltalk.addMethod(
  1452. smalltalk.method({
  1453. selector: "cssClass",
  1454. category: 'accessing',
  1455. fn: function (){
  1456. var self=this;
  1457. return smalltalk.withContext(function($ctx1) {
  1458. return "slide";
  1459. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.Slide)})},
  1460. args: [],
  1461. source: "cssClass\x0a\x09^'slide'",
  1462. messageSends: [],
  1463. referencedClasses: []
  1464. }),
  1465. smalltalk.Slide);
  1466. smalltalk.addMethod(
  1467. smalltalk.method({
  1468. selector: "id",
  1469. category: 'accessing',
  1470. fn: function (){
  1471. var self=this;
  1472. return smalltalk.withContext(function($ctx1) {
  1473. var $1;
  1474. $1=_st(self._class())._name();
  1475. return $1;
  1476. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.Slide)})},
  1477. args: [],
  1478. source: "id\x0a\x09^ self class name",
  1479. messageSends: ["name", "class"],
  1480. referencedClasses: []
  1481. }),
  1482. smalltalk.Slide);
  1483. smalltalk.addMethod(
  1484. smalltalk.method({
  1485. selector: "presentation",
  1486. category: 'accessing',
  1487. fn: function (){
  1488. var self=this;
  1489. return smalltalk.withContext(function($ctx1) {
  1490. var $1;
  1491. $1=self["@presentation"];
  1492. return $1;
  1493. }, function($ctx1) {$ctx1.fill(self,"presentation",{},smalltalk.Slide)})},
  1494. args: [],
  1495. source: "presentation\x0a\x09^presentation",
  1496. messageSends: [],
  1497. referencedClasses: []
  1498. }),
  1499. smalltalk.Slide);
  1500. smalltalk.addMethod(
  1501. smalltalk.method({
  1502. selector: "presentation:",
  1503. category: 'accessing',
  1504. fn: function (aPresentation){
  1505. var self=this;
  1506. return smalltalk.withContext(function($ctx1) {
  1507. self["@presentation"]=aPresentation;
  1508. return self}, function($ctx1) {$ctx1.fill(self,"presentation:",{aPresentation:aPresentation},smalltalk.Slide)})},
  1509. args: ["aPresentation"],
  1510. source: "presentation: aPresentation\x0a\x09presentation := aPresentation",
  1511. messageSends: [],
  1512. referencedClasses: []
  1513. }),
  1514. smalltalk.Slide);
  1515. smalltalk.addMethod(
  1516. smalltalk.method({
  1517. selector: "renderMetaOn:",
  1518. category: 'rendering',
  1519. fn: function (html){
  1520. var self=this;
  1521. return smalltalk.withContext(function($ctx1) {
  1522. var $1,$3,$4,$5,$6,$7,$8,$9,$10,$2;
  1523. $1=_st(html)._div();
  1524. _st($1)._id_("meta");
  1525. $2=_st($1)._with_((function(){
  1526. return smalltalk.withContext(function($ctx2) {
  1527. $3=_st(html)._p();
  1528. _st($3)._class_("title");
  1529. $4=_st($3)._with_(_st(self._presentation())._title());
  1530. $4;
  1531. $5=_st(html)._p();
  1532. _st($5)._class_("description");
  1533. $6=_st($5)._with_(_st(self._presentation())._description());
  1534. $6;
  1535. $7=_st(html)._a();
  1536. _st($7)._class_("author");
  1537. _st($7)._with_(_st(self._presentation())._author());
  1538. $8=_st($7)._href_("mailto:".__comma(_st(self._presentation())._email()));
  1539. $8;
  1540. $9=_st(html)._a();
  1541. _st($9)._class_("url");
  1542. _st($9)._with_(_st(self._presentation())._url());
  1543. $10=_st($9)._href_(_st(self._presentation())._url());
  1544. return $10;
  1545. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1546. return self}, function($ctx1) {$ctx1.fill(self,"renderMetaOn:",{html:html},smalltalk.Slide)})},
  1547. args: ["html"],
  1548. source: "renderMetaOn: html\x0a\x09html div \x0a\x09\x09id: 'meta';\x0a\x09\x09with: [\x0a\x09\x09\x09html p class: 'title'; with: self presentation title.\x0a\x09\x09\x09html p class: 'description'; with: self presentation description.\x0a\x09\x09\x09html a class: 'author'; with: self presentation author; href: 'mailto:', self presentation email.\x0a\x09\x09\x09html a class: 'url'; with: self presentation url; href: self presentation url]",
  1549. messageSends: ["id:", "div", "with:", "class:", "p", "title", "presentation", "description", "a", "author", "href:", ",", "email", "url"],
  1550. referencedClasses: []
  1551. }),
  1552. smalltalk.Slide);
  1553. smalltalk.addMethod(
  1554. smalltalk.method({
  1555. selector: "renderOn:",
  1556. category: 'rendering',
  1557. fn: function (html){
  1558. var self=this;
  1559. return smalltalk.withContext(function($ctx1) {
  1560. var $1,$2;
  1561. $1=_st(html)._div();
  1562. _st($1)._class_(self._cssClass());
  1563. _st($1)._id_(self._id());
  1564. $2=_st($1)._with_((function(){
  1565. return smalltalk.withContext(function($ctx2) {
  1566. self._renderSlideOn_(html);
  1567. return self._renderMetaOn_(html);
  1568. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1569. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.Slide)})},
  1570. args: ["html"],
  1571. source: "renderOn: html\x0a\x09html div class: self cssClass; id: self id; with: [\x0a\x09\x09self renderSlideOn: html.\x0a\x09\x09self renderMetaOn: html]",
  1572. messageSends: ["class:", "cssClass", "div", "id:", "id", "with:", "renderSlideOn:", "renderMetaOn:"],
  1573. referencedClasses: []
  1574. }),
  1575. smalltalk.Slide);
  1576. smalltalk.addMethod(
  1577. smalltalk.method({
  1578. selector: "renderSlideOn:",
  1579. category: 'rendering',
  1580. fn: function (html){
  1581. var self=this;
  1582. return smalltalk.withContext(function($ctx1) {
  1583. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.Slide)})},
  1584. args: ["html"],
  1585. source: "renderSlideOn: html",
  1586. messageSends: [],
  1587. referencedClasses: []
  1588. }),
  1589. smalltalk.Slide);
  1590. smalltalk.addMethod(
  1591. smalltalk.method({
  1592. selector: "show",
  1593. category: 'actions',
  1594. fn: function (){
  1595. var self=this;
  1596. return smalltalk.withContext(function($ctx1) {
  1597. var $1;
  1598. $1=self._backgroundColor();
  1599. if(($receiver = $1) == nil || $receiver == undefined){
  1600. $1;
  1601. } else {
  1602. _st(_st(window)._jQuery_("#slides"))._css_color_("background",self._backgroundColor());
  1603. };
  1604. _st(_st(window)._jQuery_(".slide"))._hide_options_duration_(_st(self._presentation())._slideTransition(),[],(300));
  1605. _st(_st(window)._jQuery_("#".__comma(self._id())))._show_options_duration_(_st(self._presentation())._slideTransition(),[],(300));
  1606. return self}, function($ctx1) {$ctx1.fill(self,"show",{},smalltalk.Slide)})},
  1607. args: [],
  1608. source: "show\x0a\x09self backgroundColor ifNotNil: [\x0a\x09\x09(window jQuery: '#slides') css: 'background' color: self backgroundColor].\x0a\x09(window jQuery: '.slide') hide: self presentation slideTransition options: #() duration: 300.\x0a\x09(window jQuery: '#', self id) show: self presentation slideTransition options: #() duration: 300.",
  1609. messageSends: ["ifNotNil:", "css:color:", "backgroundColor", "jQuery:", "hide:options:duration:", "slideTransition", "presentation", "show:options:duration:", ",", "id"],
  1610. referencedClasses: []
  1611. }),
  1612. smalltalk.Slide);
  1613. smalltalk.addMethod(
  1614. smalltalk.method({
  1615. selector: "title",
  1616. category: 'accessing',
  1617. fn: function (){
  1618. var self=this;
  1619. return smalltalk.withContext(function($ctx1) {
  1620. var $1;
  1621. $1=self._id();
  1622. return $1;
  1623. }, function($ctx1) {$ctx1.fill(self,"title",{},smalltalk.Slide)})},
  1624. args: [],
  1625. source: "title\x0a\x09^ self id",
  1626. messageSends: ["id"],
  1627. referencedClasses: []
  1628. }),
  1629. smalltalk.Slide);
  1630. smalltalk.addMethod(
  1631. smalltalk.method({
  1632. selector: "on:",
  1633. category: 'instance creation',
  1634. fn: function (aPresentation){
  1635. var self=this;
  1636. return smalltalk.withContext(function($ctx1) {
  1637. var $2,$3,$1;
  1638. $2=self._new();
  1639. _st($2)._presentation_(aPresentation);
  1640. $3=_st($2)._yourself();
  1641. $1=$3;
  1642. return $1;
  1643. }, function($ctx1) {$ctx1.fill(self,"on:",{aPresentation:aPresentation},smalltalk.Slide.klass)})},
  1644. args: ["aPresentation"],
  1645. source: "on: aPresentation\x0a\x09^self new\x0a\x09\x09presentation: aPresentation;\x0a\x09\x09yourself",
  1646. messageSends: ["presentation:", "new", "yourself"],
  1647. referencedClasses: []
  1648. }),
  1649. smalltalk.Slide.klass);
  1650. smalltalk.addClass('AboutSlide', smalltalk.Slide, [], 'Presentation');
  1651. smalltalk.addMethod(
  1652. smalltalk.method({
  1653. selector: "backgroundColor",
  1654. category: 'accessing',
  1655. fn: function (){
  1656. var self=this;
  1657. return smalltalk.withContext(function($ctx1) {
  1658. return "white";
  1659. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.AboutSlide)})},
  1660. args: [],
  1661. source: "backgroundColor\x0a\x09^'white'",
  1662. messageSends: [],
  1663. referencedClasses: []
  1664. }),
  1665. smalltalk.AboutSlide);
  1666. smalltalk.addMethod(
  1667. smalltalk.method({
  1668. selector: "cssClass",
  1669. category: 'accessing',
  1670. fn: function (){
  1671. var self=this;
  1672. return smalltalk.withContext(function($ctx1) {
  1673. return "slide transparent white";
  1674. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.AboutSlide)})},
  1675. args: [],
  1676. source: "cssClass\x0a\x09^'slide transparent white'",
  1677. messageSends: [],
  1678. referencedClasses: []
  1679. }),
  1680. smalltalk.AboutSlide);
  1681. smalltalk.addMethod(
  1682. smalltalk.method({
  1683. selector: "id",
  1684. category: 'accessing',
  1685. fn: function (){
  1686. var self=this;
  1687. return smalltalk.withContext(function($ctx1) {
  1688. return "about";
  1689. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.AboutSlide)})},
  1690. args: [],
  1691. source: "id\x0a\x09^'about'",
  1692. messageSends: [],
  1693. referencedClasses: []
  1694. }),
  1695. smalltalk.AboutSlide);
  1696. smalltalk.addMethod(
  1697. smalltalk.method({
  1698. selector: "renderSlideOn:",
  1699. category: 'rendering',
  1700. fn: function (html){
  1701. var self=this;
  1702. function $Presentation(){return smalltalk.Presentation||(typeof Presentation=="undefined"?nil:Presentation)}
  1703. function $Browser(){return smalltalk.Browser||(typeof Browser=="undefined"?nil:Browser)}
  1704. return smalltalk.withContext(function($ctx1) {
  1705. var $1,$3,$4,$2;
  1706. $1=_st(html)._div();
  1707. _st($1)._class_("section center");
  1708. $2=_st($1)._with_((function(){
  1709. return smalltalk.withContext(function($ctx2) {
  1710. _st(_st(html)._h1())._with_("About this presentation");
  1711. _st(_st(html)._p())._with_("This presentation is entirely written in Jtalk and is licensed under CC BY-SA.");
  1712. _st(_st(html)._p())._with_((function(){
  1713. return smalltalk.withContext(function($ctx3) {
  1714. _st(html)._with_("Press ");
  1715. _st(_st(html)._code())._with_("←");
  1716. _st(html)._with_(" to move backward and ");
  1717. _st(_st(html)._code())._with_(" →");
  1718. return _st(html)._with_(" to move forward.");
  1719. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1720. return _st(_st(html)._p())._with_((function(){
  1721. return smalltalk.withContext(function($ctx3) {
  1722. _st(html)._with_("Open a ");
  1723. $3=_st(html)._button();
  1724. _st($3)._with_("browser");
  1725. $4=_st($3)._onClick_((function(){
  1726. return smalltalk.withContext(function($ctx4) {
  1727. return _st($Browser())._openOn_($Presentation());
  1728. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  1729. $4;
  1730. return _st(html)._with_(" to edit the source code.");
  1731. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1732. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1733. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.AboutSlide)})},
  1734. args: ["html"],
  1735. source: "renderSlideOn: html\x0a\x09html div class: 'section center'; with: [\x0a\x09\x09html h1 with: 'About this presentation'.\x0a\x09\x09html p with: 'This presentation is entirely written in Jtalk and is licensed under CC BY-SA.'.\x0a\x09\x09html p with: [\x0a\x09\x09\x09html with: 'Press '.\x0a\x09\x09\x09html code with: '←'.\x0a\x09\x09\x09html with: ' to move backward and '.\x0a\x09\x09\x09html code with: ' →'.\x0a\x09\x09\x09html with: ' to move forward.'].\x0a\x09\x09html p with: [\x0a\x09\x09\x09html with: 'Open a '.\x0a\x09\x09\x09html button \x0a\x09\x09\x09\x09with: 'browser';\x0a\x09\x09\x09\x09onClick: [Browser openOn: Presentation].\x0a\x09\x09\x09html with: ' to edit the source code.']]",
  1736. messageSends: ["class:", "div", "with:", "h1", "p", "code", "button", "onClick:", "openOn:"],
  1737. referencedClasses: ["Presentation", "Browser"]
  1738. }),
  1739. smalltalk.AboutSlide);
  1740. smalltalk.addClass('ContributionsSlide', smalltalk.Slide, [], 'Presentation');
  1741. smalltalk.addMethod(
  1742. smalltalk.method({
  1743. selector: "id",
  1744. category: 'accessing',
  1745. fn: function (){
  1746. var self=this;
  1747. return smalltalk.withContext(function($ctx1) {
  1748. return "links";
  1749. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.ContributionsSlide)})},
  1750. args: [],
  1751. source: "id\x0a\x09^'links'",
  1752. messageSends: [],
  1753. referencedClasses: []
  1754. }),
  1755. smalltalk.ContributionsSlide);
  1756. smalltalk.addMethod(
  1757. smalltalk.method({
  1758. selector: "renderSlideOn:",
  1759. category: 'rendering',
  1760. fn: function (html){
  1761. var self=this;
  1762. return smalltalk.withContext(function($ctx1) {
  1763. var $1,$3,$4,$5,$6,$7,$8,$2;
  1764. $1=_st(html)._div();
  1765. _st($1)._class_("section");
  1766. $2=_st($1)._with_((function(){
  1767. return smalltalk.withContext(function($ctx2) {
  1768. _st(_st(html)._p())._with_((function(){
  1769. return smalltalk.withContext(function($ctx3) {
  1770. $3=_st(html)._a();
  1771. _st($3)._href_("http://jtalk-project.org");
  1772. $4=_st($3)._with_("jtalk-project.org");
  1773. return $4;
  1774. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1775. _st(_st(html)._p())._with_((function(){
  1776. return smalltalk.withContext(function($ctx3) {
  1777. $5=_st(html)._a();
  1778. _st($5)._href_("https://github.com/NicolasPetton/jtalk");
  1779. $6=_st($5)._with_("github.com/NicolasPetton/jtalk");
  1780. return $6;
  1781. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1782. return _st(_st(html)._p())._with_((function(){
  1783. return smalltalk.withContext(function($ctx3) {
  1784. $7=_st(html)._a();
  1785. _st($7)._href_("http://http://groups.google.com/group/jtalk-project");
  1786. $8=_st($7)._with_("groups.google.com/group/jtalk-project");
  1787. return $8;
  1788. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1789. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1790. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.ContributionsSlide)})},
  1791. args: ["html"],
  1792. source: "renderSlideOn: html\x0a\x09html div class: 'section'; with: [\x0a\x09\x09html p with: [\x0a\x09\x09\x09html a href: 'http://jtalk-project.org'; with: 'jtalk-project.org'].\x0a\x09\x09html p with: [\x0a\x09\x09\x09html a href: 'https://github.com/NicolasPetton/jtalk'; with: 'github.com/NicolasPetton/jtalk'].\x0a\x09\x09html p with: [\x0a\x09\x09\x09html a href: 'http://http://groups.google.com/group/jtalk-project'; with: 'groups.google.com/group/jtalk-project']]",
  1793. messageSends: ["class:", "div", "with:", "href:", "a", "p"],
  1794. referencedClasses: []
  1795. }),
  1796. smalltalk.ContributionsSlide);
  1797. smalltalk.addClass('CountersSlide', smalltalk.Slide, [], 'Presentation');
  1798. smalltalk.addMethod(
  1799. smalltalk.method({
  1800. selector: "backgroundColor",
  1801. category: 'accessing',
  1802. fn: function (){
  1803. var self=this;
  1804. return smalltalk.withContext(function($ctx1) {
  1805. return "#18bd7d";
  1806. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.CountersSlide)})},
  1807. args: [],
  1808. source: "backgroundColor\x0a\x09^'#18bd7d'",
  1809. messageSends: [],
  1810. referencedClasses: []
  1811. }),
  1812. smalltalk.CountersSlide);
  1813. smalltalk.addMethod(
  1814. smalltalk.method({
  1815. selector: "id",
  1816. category: 'accessing',
  1817. fn: function (){
  1818. var self=this;
  1819. return smalltalk.withContext(function($ctx1) {
  1820. return "counters";
  1821. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.CountersSlide)})},
  1822. args: [],
  1823. source: "id\x0a\x09^'counters'",
  1824. messageSends: [],
  1825. referencedClasses: []
  1826. }),
  1827. smalltalk.CountersSlide);
  1828. smalltalk.addMethod(
  1829. smalltalk.method({
  1830. selector: "renderSlideOn:",
  1831. category: 'rendering',
  1832. fn: function (html){
  1833. var self=this;
  1834. function $Counter(){return smalltalk.Counter||(typeof Counter=="undefined"?nil:Counter)}
  1835. return smalltalk.withContext(function($ctx1) {
  1836. var $1,$2;
  1837. $1=_st(html)._div();
  1838. _st($1)._class_("section center");
  1839. $2=_st($1)._with_((function(){
  1840. return smalltalk.withContext(function($ctx2) {
  1841. _st(_st(html)._h1())._with_("The counter example");
  1842. return _st(_st(html)._div())._with_((function(){
  1843. return smalltalk.withContext(function($ctx3) {
  1844. return (2)._timesRepeat_((function(){
  1845. return smalltalk.withContext(function($ctx4) {
  1846. return _st(_st($Counter())._new())._renderOn_(html);
  1847. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  1848. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1849. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1850. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.CountersSlide)})},
  1851. args: ["html"],
  1852. source: "renderSlideOn: html\x0a\x09html div class: 'section center'; with: [\x0a\x09\x09html h1 with: 'The counter example'.\x0a\x09\x09html div with: [\x0a\x09\x09\x092 timesRepeat: [Counter new renderOn: html]]]",
  1853. messageSends: ["class:", "div", "with:", "h1", "timesRepeat:", "renderOn:", "new"],
  1854. referencedClasses: ["Counter"]
  1855. }),
  1856. smalltalk.CountersSlide);
  1857. smalltalk.addClass('FOSDEMSlide', smalltalk.Slide, [], 'Presentation');
  1858. smalltalk.addMethod(
  1859. smalltalk.method({
  1860. selector: "codeSnippet",
  1861. category: 'accessing',
  1862. fn: function (){
  1863. var self=this;
  1864. return smalltalk.withContext(function($ctx1) {
  1865. self._subclassResponsibility();
  1866. return self}, function($ctx1) {$ctx1.fill(self,"codeSnippet",{},smalltalk.FOSDEMSlide)})},
  1867. args: [],
  1868. source: "codeSnippet\x0a\x09self subclassResponsibility",
  1869. messageSends: ["subclassResponsibility"],
  1870. referencedClasses: []
  1871. }),
  1872. smalltalk.FOSDEMSlide);
  1873. smalltalk.addMethod(
  1874. smalltalk.method({
  1875. selector: "renderCodeSnippetOn:",
  1876. category: 'rendering',
  1877. fn: function (html){
  1878. var self=this;
  1879. function $SourceArea(){return smalltalk.SourceArea||(typeof SourceArea=="undefined"?nil:SourceArea)}
  1880. return smalltalk.withContext(function($ctx1) {
  1881. var $1,$2;
  1882. $1=_st($SourceArea())._new();
  1883. _st($1)._renderOn_(html);
  1884. $2=_st($1)._editor();
  1885. _st($2)._setValue_(self._codeSnippet());
  1886. return self}, function($ctx1) {$ctx1.fill(self,"renderCodeSnippetOn:",{html:html},smalltalk.FOSDEMSlide)})},
  1887. args: ["html"],
  1888. source: "renderCodeSnippetOn: html\x0a\x09(SourceArea new \x0a\x09\x09\x09renderOn: html;\x0a\x09\x09\x09editor) setValue: self codeSnippet.",
  1889. messageSends: ["setValue:", "codeSnippet", "renderOn:", "new", "editor"],
  1890. referencedClasses: ["SourceArea"]
  1891. }),
  1892. smalltalk.FOSDEMSlide);
  1893. smalltalk.addMethod(
  1894. smalltalk.method({
  1895. selector: "renderSnippet:on:",
  1896. category: 'rendering',
  1897. fn: function (aString,html){
  1898. var self=this;
  1899. function $SourceArea(){return smalltalk.SourceArea||(typeof SourceArea=="undefined"?nil:SourceArea)}
  1900. return smalltalk.withContext(function($ctx1) {
  1901. var $1,$2;
  1902. $1=_st($SourceArea())._new();
  1903. _st($1)._renderOn_(html);
  1904. $2=_st($1)._editor();
  1905. _st($2)._setValue_(aString);
  1906. return self}, function($ctx1) {$ctx1.fill(self,"renderSnippet:on:",{aString:aString,html:html},smalltalk.FOSDEMSlide)})},
  1907. args: ["aString", "html"],
  1908. source: "renderSnippet: aString on: html\x0a\x09(SourceArea new \x0a\x09\x09\x09renderOn: html;\x0a\x09\x09\x09editor) setValue: aString.",
  1909. messageSends: ["setValue:", "renderOn:", "new", "editor"],
  1910. referencedClasses: ["SourceArea"]
  1911. }),
  1912. smalltalk.FOSDEMSlide);
  1913. smalltalk.addClass('FOSDEMAmberBackend', smalltalk.FOSDEMSlide, [], 'Presentation');
  1914. smalltalk.addMethod(
  1915. smalltalk.method({
  1916. selector: "cssClass",
  1917. category: 'accessing',
  1918. fn: function (){
  1919. var self=this;
  1920. return smalltalk.withContext(function($ctx1) {
  1921. return "slide green3d";
  1922. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.FOSDEMAmberBackend)})},
  1923. args: [],
  1924. source: "cssClass\x0a\x09^ 'slide green3d'",
  1925. messageSends: [],
  1926. referencedClasses: []
  1927. }),
  1928. smalltalk.FOSDEMAmberBackend);
  1929. smalltalk.addMethod(
  1930. smalltalk.method({
  1931. selector: "renderSlideOn:",
  1932. category: 'rendering',
  1933. fn: function (html){
  1934. var self=this;
  1935. return smalltalk.withContext(function($ctx1) {
  1936. var $1,$2;
  1937. $1=_st(html)._div();
  1938. _st($1)._class_("section center");
  1939. $2=_st($1)._with_((function(){
  1940. return smalltalk.withContext(function($ctx2) {
  1941. _st(html)._h1_("Need a backend ?");
  1942. return _st(["nodejs.png","php.gif","rails.png","pharo.png","ambrhino.jpg"])._do_((function(aString){
  1943. return smalltalk.withContext(function($ctx3) {
  1944. return _st(html)._img_("fosdem2012/images/".__comma(aString));
  1945. }, function($ctx3) {$ctx3.fillBlock({aString:aString},$ctx2)})}));
  1946. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1947. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMAmberBackend)})},
  1948. args: ["html"],
  1949. source: "renderSlideOn: html\x0a\x09html div\x0a\x09\x09class: 'section center';\x0a\x09\x09with: [\x09html h1: 'Need a backend ?'.\x0a\x09\x09\x09\x09{'nodejs.png'. 'php.gif'. 'rails.png'. 'pharo.png'. 'ambrhino.jpg'} do: [:aString |\x0a\x09\x09\x09\x09\x09\x09html img: 'fosdem2012/images/', aString.\x0a\x09\x09\x09\x09]\x0a\x09\x09]",
  1950. messageSends: ["class:", "div", "with:", "h1:", "do:", "img:", ","],
  1951. referencedClasses: []
  1952. }),
  1953. smalltalk.FOSDEMAmberBackend);
  1954. smalltalk.addClass('FOSDEMAmberZeroNine', smalltalk.FOSDEMSlide, [], 'Presentation');
  1955. smalltalk.addMethod(
  1956. smalltalk.method({
  1957. selector: "renderSlideOn:",
  1958. category: 'not yet classified',
  1959. fn: function (html){
  1960. var self=this;
  1961. return smalltalk.withContext(function($ctx1) {
  1962. var $1,$3,$4,$2;
  1963. $1=_st(html)._div();
  1964. _st($1)._class_("section center");
  1965. $2=_st($1)._with_((function(){
  1966. return smalltalk.withContext(function($ctx2) {
  1967. $3=html;
  1968. _st($3)._h1_("Amber 0.9.1 is out !");
  1969. _st($3)._div_((function(){
  1970. return smalltalk.withContext(function($ctx3) {
  1971. return _st(_st(html)._cite())._with_("Now with over 43 forks on github and more than 230 followers the project: http://www.amber-lang.net ...is live and kicking!");
  1972. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1973. $4=_st($3)._div_((function(){
  1974. return smalltalk.withContext(function($ctx3) {
  1975. return _st(_st(html)._cite())._with_("-- Nicolas & Göran");
  1976. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1977. return $4;
  1978. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1979. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMAmberZeroNine)})},
  1980. args: ["html"],
  1981. source: "renderSlideOn: html\x0a\x09html div \x0a\x09\x09class: 'section center';\x0a\x09\x09with: [ \x09html \x0a\x09\x09\x09\x09\x09h1: 'Amber 0.9.1 is out !';\x0a\x09\x09\x09\x09\x09div: [html cite with: 'Now with over 43 forks on github and more than 230 followers the project: http://www.amber-lang.net ...is live and kicking!'];\x0a\x09\x09\x09\x09\x09div: [html cite with: '-- Nicolas & Göran'] ]",
  1982. messageSends: ["class:", "div", "with:", "h1:", "div:", "cite"],
  1983. referencedClasses: []
  1984. }),
  1985. smalltalk.FOSDEMAmberZeroNine);
  1986. smalltalk.addClass('FOSDEMBookletSlide', smalltalk.FOSDEMSlide, [], 'Presentation');
  1987. smalltalk.addMethod(
  1988. smalltalk.method({
  1989. selector: "bookletOptions",
  1990. category: 'rendering',
  1991. fn: function (){
  1992. var self=this;
  1993. return smalltalk.withContext(function($ctx1) {
  1994. var $1;
  1995. $1=smalltalk.HashedCollection._from_(["arrows".__minus_gt(true),"keyboard".__minus_gt(false),"pageNumbers".__minus_gt(false),"closed".__minus_gt(true)]);
  1996. return $1;
  1997. }, function($ctx1) {$ctx1.fill(self,"bookletOptions",{},smalltalk.FOSDEMBookletSlide)})},
  1998. args: [],
  1999. source: "bookletOptions\x0a\x09^ #{ \x0a\x09\x09'arrows' -> true.\x0a\x09\x09'keyboard' -> false.\x0a\x09\x09'pageNumbers' -> false.\x0a\x09\x09'closed' -> true\x0a\x09}",
  2000. messageSends: ["->"],
  2001. referencedClasses: []
  2002. }),
  2003. smalltalk.FOSDEMBookletSlide);
  2004. smalltalk.addMethod(
  2005. smalltalk.method({
  2006. selector: "cssClass",
  2007. category: 'accessing',
  2008. fn: function (){
  2009. var self=this;
  2010. return smalltalk.withContext(function($ctx1) {
  2011. return "slide blue3d";
  2012. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.FOSDEMBookletSlide)})},
  2013. args: [],
  2014. source: "cssClass\x0a\x09^ 'slide blue3d'",
  2015. messageSends: [],
  2016. referencedClasses: []
  2017. }),
  2018. smalltalk.FOSDEMBookletSlide);
  2019. smalltalk.addMethod(
  2020. smalltalk.method({
  2021. selector: "renderBookOn:",
  2022. category: 'rendering',
  2023. fn: function (html){
  2024. var self=this;
  2025. function $FOSDEMBookletSlide(){return smalltalk.FOSDEMBookletSlide||(typeof FOSDEMBookletSlide=="undefined"?nil:FOSDEMBookletSlide)}
  2026. function $Browser(){return smalltalk.Browser||(typeof Browser=="undefined"?nil:Browser)}
  2027. return smalltalk.withContext(function($ctx1) {
  2028. var $1,$3,$5,$7,$8,$6,$4,$2;
  2029. $1=_st(html)._div();
  2030. _st($1)._id_("book");
  2031. $2=_st($1)._with_((function(){
  2032. return smalltalk.withContext(function($ctx2) {
  2033. $3=_st(html)._div();
  2034. _st($3)._class_("b-load");
  2035. $4=_st($3)._with_((function(){
  2036. return smalltalk.withContext(function($ctx3) {
  2037. $5=html;
  2038. _st($5)._div_("Amber makes it easy to plug existing javascript libraires");
  2039. _st($5)._div_("Here is an example with the jQuery Booklet plugin");
  2040. _st($5)._div_("Want to see how ?");
  2041. $6=_st($5)._div_((function(){
  2042. return smalltalk.withContext(function($ctx4) {
  2043. $7=_st(html)._button();
  2044. _st($7)._onClick_((function(){
  2045. return smalltalk.withContext(function($ctx5) {
  2046. return _st($Browser())._openOn_($FOSDEMBookletSlide());
  2047. }, function($ctx5) {$ctx5.fillBlock({},$ctx4)})}));
  2048. $8=_st($7)._with_("Just browse the code :)");
  2049. return $8;
  2050. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  2051. return $6;
  2052. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2053. return $4;
  2054. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2055. return self}, function($ctx1) {$ctx1.fill(self,"renderBookOn:",{html:html},smalltalk.FOSDEMBookletSlide)})},
  2056. args: ["html"],
  2057. source: "renderBookOn: html\x0a\x09html div \x0a\x09\x09id: 'book';\x0a\x09\x09with: [\x09html div\x0a\x09\x09\x09\x09\x09class: 'b-load';\x0a\x09\x09\x09\x09\x09with: [\x09html \x0a\x09\x09\x09\x09\x09\x09\x09\x09div: 'Amber makes it easy to plug existing javascript libraires';\x0a\x09\x09\x09\x09\x09\x09\x09\x09div: 'Here is an example with the jQuery Booklet plugin';\x0a\x09\x09\x09\x09\x09\x09\x09\x09div: 'Want to see how ?';\x0a\x09\x09\x09\x09\x09\x09\x09\x09div: [ html button\x0a\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09onClick: [Browser openOn: FOSDEMBookletSlide ];\x0a\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09with: 'Just browse the code :)'.\x09\x09\x09\x09\x09\x09] \x09\x0a\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09\x09\x0a\x09\x09\x09\x09\x09]\x09\x0a\x09\x09].",
  2058. messageSends: ["id:", "div", "with:", "class:", "div:", "onClick:", "openOn:", "button"],
  2059. referencedClasses: ["FOSDEMBookletSlide", "Browser"]
  2060. }),
  2061. smalltalk.FOSDEMBookletSlide);
  2062. smalltalk.addMethod(
  2063. smalltalk.method({
  2064. selector: "renderSlideOn:",
  2065. category: 'rendering',
  2066. fn: function (html){
  2067. var self=this;
  2068. return smalltalk.withContext(function($ctx1) {
  2069. var $1,$2;
  2070. self._renderBookOn_(html);
  2071. $1=_st(html)._link();
  2072. _st($1)._rel_("stylesheet");
  2073. $2=_st($1)._href_("fosdem2012/lib/booklet/jquery.booklet.1.2.0.css");
  2074. _st(html)._style_(self._style());
  2075. _st(jQuery)._getScript_do_("fosdem2012/lib/booklet/jquery.booklet.1.2.0.min.js",(function(){
  2076. return smalltalk.withContext(function($ctx2) {
  2077. return _st("#book"._asJQuery())._booklet_(self._bookletOptions());
  2078. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2079. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMBookletSlide)})},
  2080. args: ["html"],
  2081. source: "renderSlideOn: html\x0a\x09self renderBookOn: html.\x0a\x09html link \x0a\x09\x09rel:'stylesheet';\x0a\x09\x09href: 'fosdem2012/lib/booklet/jquery.booklet.1.2.0.css'.\x0a\x09\x0a\x09html style: self style.\x0a\x09\x0a\x09jQuery \x0a\x09\x09getScript: 'fosdem2012/lib/booklet/jquery.booklet.1.2.0.min.js' \x09\x0a\x09\x09do: ['#book' asJQuery booklet: self bookletOptions].",
  2082. messageSends: ["renderBookOn:", "rel:", "link", "href:", "style:", "style", "getScript:do:", "booklet:", "bookletOptions", "asJQuery"],
  2083. referencedClasses: []
  2084. }),
  2085. smalltalk.FOSDEMBookletSlide);
  2086. smalltalk.addMethod(
  2087. smalltalk.method({
  2088. selector: "style",
  2089. category: 'css',
  2090. fn: function (){
  2091. var self=this;
  2092. return smalltalk.withContext(function($ctx1) {
  2093. return "\x0a#book { font-size: 1.4em; }\x0a#book .b-load .b-wrap-right { background-color: #DEC3A9;}\x0a#book .b-load .b-wrap-left { background-color: #DDD;} \x0a";
  2094. }, function($ctx1) {$ctx1.fill(self,"style",{},smalltalk.FOSDEMBookletSlide)})},
  2095. args: [],
  2096. source: "style\x0a\x09^ '\x0a#book { font-size: 1.4em; }\x0a#book .b-load .b-wrap-right { background-color: #DEC3A9;}\x0a#book .b-load .b-wrap-left { background-color: #DDD;} \x0a'",
  2097. messageSends: [],
  2098. referencedClasses: []
  2099. }),
  2100. smalltalk.FOSDEMBookletSlide);
  2101. smalltalk.addClass('FOSDEMCLISlide', smalltalk.FOSDEMSlide, [], 'Presentation');
  2102. smalltalk.addMethod(
  2103. smalltalk.method({
  2104. selector: "codeSnippet",
  2105. category: 'rendering',
  2106. fn: function (){
  2107. var self=this;
  2108. return smalltalk.withContext(function($ctx1) {
  2109. return "cd examples/nodejs/hello\x0a../../../bin/amberc -m Hello Hello.st Program\x0anode Program.js\x0a\x0aHello world from Amber in Node.js";
  2110. }, function($ctx1) {$ctx1.fill(self,"codeSnippet",{},smalltalk.FOSDEMCLISlide)})},
  2111. args: [],
  2112. source: "codeSnippet\x0a\x09^ \x0a'cd examples/nodejs/hello\x0a../../../bin/amberc -m Hello Hello.st Program\x0anode Program.js\x0a\x0aHello world from Amber in Node.js'",
  2113. messageSends: [],
  2114. referencedClasses: []
  2115. }),
  2116. smalltalk.FOSDEMCLISlide);
  2117. smalltalk.addMethod(
  2118. smalltalk.method({
  2119. selector: "renderSlideOn:",
  2120. category: 'rendering',
  2121. fn: function (html){
  2122. var self=this;
  2123. return smalltalk.withContext(function($ctx1) {
  2124. _st(html)._h1_("CLI");
  2125. _st(html)._with_("amberc compiles .st files into node programs !");
  2126. self._renderCodeSnippetOn_(html);
  2127. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMCLISlide)})},
  2128. args: ["html"],
  2129. source: "renderSlideOn: html\x0a\x09html h1: 'CLI'.\x0a\x09html with: 'amberc compiles .st files into node programs !'.\x0a\x09self renderCodeSnippetOn: html.",
  2130. messageSends: ["h1:", "with:", "renderCodeSnippetOn:"],
  2131. referencedClasses: []
  2132. }),
  2133. smalltalk.FOSDEMCLISlide);
  2134. smalltalk.addClass('FOSDEMCanvasSlide', smalltalk.FOSDEMSlide, ['c2d', 'canvas'], 'Presentation');
  2135. smalltalk.addMethod(
  2136. smalltalk.method({
  2137. selector: "cssClass",
  2138. category: 'accessing',
  2139. fn: function (){
  2140. var self=this;
  2141. return smalltalk.withContext(function($ctx1) {
  2142. return "slide red3d";
  2143. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.FOSDEMCanvasSlide)})},
  2144. args: [],
  2145. source: "cssClass\x0a\x09^ 'slide red3d'",
  2146. messageSends: [],
  2147. referencedClasses: []
  2148. }),
  2149. smalltalk.FOSDEMCanvasSlide);
  2150. smalltalk.addMethod(
  2151. smalltalk.method({
  2152. selector: "drawOnCanvas",
  2153. category: 'drawing',
  2154. fn: function (){
  2155. var self=this;
  2156. return smalltalk.withContext(function($ctx1) {
  2157. self["@c2d"]=_st(_st(self["@canvas"])._element())._getContext_("2d");
  2158. _st(self["@c2d"])._clearRect_y_width_height_((0),(0),_st(_st(self["@canvas"])._element())._width(),_st(_st(self["@canvas"])._element())._height());
  2159. _st((40)._atRandom())._timesRepeat_((function(){
  2160. var rgba;
  2161. return smalltalk.withContext(function($ctx2) {
  2162. rgba=","._join_([(255)._atRandom(),(255)._atRandom(),(255)._atRandom(),_st((10)._atRandom()).__slash((10))]);
  2163. rgba;
  2164. _st(self["@c2d"])._at_put_("fillStyle",_st("rgba(".__comma(rgba)).__comma(")"));
  2165. return _st(self["@c2d"])._fillRect_y_width_height_((600)._atRandom(),(300)._atRandom(),(200)._atRandom(),(200)._atRandom());
  2166. }, function($ctx2) {$ctx2.fillBlock({rgba:rgba},$ctx1)})}));
  2167. return self}, function($ctx1) {$ctx1.fill(self,"drawOnCanvas",{},smalltalk.FOSDEMCanvasSlide)})},
  2168. args: [],
  2169. source: "drawOnCanvas\x0a\x09c2d := canvas element getContext: '2d'.\x0a\x09c2d \x0a\x09\x09clearRect: 0 \x0a\x09\x09y: 0 \x0a\x09\x09width: canvas element width \x0a\x09\x09height: canvas element height.\x0a\x09\x0a\x0940 atRandom timesRepeat: [ |rgba|\x0a\x09\x09\x09rgba := ',' join: {255 atRandom. 255 atRandom. 255 atRandom. 10 atRandom / 10}.\x0a\x09\x09\x09c2d\x09at: 'fillStyle' put: 'rgba(', rgba, ')'.\x0a\x09\x09\x09c2d\x0a\x09\x09\x09\x09fillRect: 600 atRandom \x0a\x09\x09\x09\x09y: 300 atRandom \x0a\x09\x09\x09\x09width: 200 atRandom \x0a\x09\x09\x09\x09height: 200 atRandom ]",
  2170. messageSends: ["getContext:", "element", "clearRect:y:width:height:", "width", "height", "timesRepeat:", "join:", "atRandom", "/", "at:put:", ",", "fillRect:y:width:height:"],
  2171. referencedClasses: []
  2172. }),
  2173. smalltalk.FOSDEMCanvasSlide);
  2174. smalltalk.addMethod(
  2175. smalltalk.method({
  2176. selector: "renderSlideOn:",
  2177. category: 'rendering',
  2178. fn: function (html){
  2179. var self=this;
  2180. return smalltalk.withContext(function($ctx1) {
  2181. var $1,$2;
  2182. _st(html)._h1_("Playing with canvas");
  2183. $1=_st(html)._canvas();
  2184. _st($1)._width_((700));
  2185. $2=_st($1)._height_((400));
  2186. self["@canvas"]=$2;
  2187. self._updateCanvas();
  2188. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMCanvasSlide)})},
  2189. args: ["html"],
  2190. source: "renderSlideOn: html\x0a\x09html h1: 'Playing with canvas'.\x0a\x09canvas := html canvas \x0a\x09\x09\x09\x09width: 700;\x0a\x09\x09\x09\x09height: 400.\x0a\x0a\x09self updateCanvas.",
  2191. messageSends: ["h1:", "width:", "canvas", "height:", "updateCanvas"],
  2192. referencedClasses: []
  2193. }),
  2194. smalltalk.FOSDEMCanvasSlide);
  2195. smalltalk.addMethod(
  2196. smalltalk.method({
  2197. selector: "updateCanvas",
  2198. category: 'updating',
  2199. fn: function (){
  2200. var self=this;
  2201. return smalltalk.withContext(function($ctx1) {
  2202. self._drawOnCanvas();
  2203. _st(window)._setTimeout_delay_((function(){
  2204. return smalltalk.withContext(function($ctx2) {
  2205. return self._updateCanvas();
  2206. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}),(500));
  2207. return self}, function($ctx1) {$ctx1.fill(self,"updateCanvas",{},smalltalk.FOSDEMCanvasSlide)})},
  2208. args: [],
  2209. source: "updateCanvas\x0a\x09self drawOnCanvas.\x0a\x09window setTimeout: [self updateCanvas] delay: 500.",
  2210. messageSends: ["drawOnCanvas", "setTimeout:delay:", "updateCanvas"],
  2211. referencedClasses: []
  2212. }),
  2213. smalltalk.FOSDEMCanvasSlide);
  2214. smalltalk.addClass('FOSDEMContributionsSlide', smalltalk.FOSDEMSlide, [], 'Presentation');
  2215. smalltalk.addMethod(
  2216. smalltalk.method({
  2217. selector: "renderSlideOn:",
  2218. category: 'rendering',
  2219. fn: function (html){
  2220. var self=this;
  2221. return smalltalk.withContext(function($ctx1) {
  2222. var $1,$3,$4,$5,$6,$7,$8,$9,$10,$2;
  2223. $1=_st(html)._div();
  2224. _st($1)._class_("section");
  2225. $2=_st($1)._with_((function(){
  2226. return smalltalk.withContext(function($ctx2) {
  2227. _st(_st(html)._p())._with_((function(){
  2228. return smalltalk.withContext(function($ctx3) {
  2229. $3=_st(html)._a();
  2230. _st($3)._href_("/documentation.html");
  2231. $4=_st($3)._with_("Documentation");
  2232. return $4;
  2233. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2234. _st(_st(html)._p())._with_((function(){
  2235. return smalltalk.withContext(function($ctx3) {
  2236. $5=_st(html)._a();
  2237. _st($5)._href_("http://amber-lang.net");
  2238. $6=_st($5)._with_("amber-lang.net");
  2239. return $6;
  2240. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2241. _st(_st(html)._p())._with_((function(){
  2242. return smalltalk.withContext(function($ctx3) {
  2243. $7=_st(html)._a();
  2244. _st($7)._href_("https://github.com/amber-smalltalk/amber");
  2245. $8=_st($7)._with_("github.com/amber-smalltalk/amber");
  2246. return $8;
  2247. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2248. return _st(_st(html)._p())._with_((function(){
  2249. return smalltalk.withContext(function($ctx3) {
  2250. $9=_st(html)._a();
  2251. _st($9)._href_("http://groups.google.com/group/amber-lang");
  2252. $10=_st($9)._with_("groups.google.com/group/amber-lang");
  2253. return $10;
  2254. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2255. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2256. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMContributionsSlide)})},
  2257. args: ["html"],
  2258. source: "renderSlideOn: html\x0a\x09html div class: 'section'; with: [\x0a\x09\x09html p with: [\x0a\x09\x09\x09html a href: '/documentation.html'; with: 'Documentation'].\x0a\x09\x09html p with: [\x0a\x09\x09\x09html a href: 'http://amber-lang.net'; with: 'amber-lang.net'].\x0a\x09\x09html p with: [\x0a\x09\x09\x09html a href: 'https://github.com/amber-smalltalk/amber'; with: 'github.com/amber-smalltalk/amber'].\x0a\x09\x09html p with: [\x0a\x09\x09\x09html a href: 'http://groups.google.com/group/amber-lang'; with: 'groups.google.com/group/amber-lang']]",
  2259. messageSends: ["class:", "div", "with:", "href:", "a", "p"],
  2260. referencedClasses: []
  2261. }),
  2262. smalltalk.FOSDEMContributionsSlide);
  2263. smalltalk.addClass('FOSDEMIntroSlide', smalltalk.FOSDEMSlide, [], 'Presentation');
  2264. smalltalk.addMethod(
  2265. smalltalk.method({
  2266. selector: "renderSlideOn:",
  2267. category: 'not yet classified',
  2268. fn: function (html){
  2269. var self=this;
  2270. return smalltalk.withContext(function($ctx1) {
  2271. var $1,$2;
  2272. $1=_st(html)._div();
  2273. _st($1)._class_("section center animate");
  2274. $2=_st($1)._with_((function(){
  2275. return smalltalk.withContext(function($ctx2) {
  2276. _st(_st(html)._img())._src_("fosdem2012/images/amber.png");
  2277. _st(html)._p_(_st(self._presentation())._author());
  2278. _st(html)._p_(_st(self._presentation())._description());
  2279. return _st(html)._p_((function(){
  2280. return smalltalk.withContext(function($ctx3) {
  2281. return _st(html)._with_(_st(self._presentation())._email());
  2282. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2283. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2284. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMIntroSlide)})},
  2285. args: ["html"],
  2286. source: "renderSlideOn: html\x0a\x09html div class: 'section center animate'; with: [\x0a\x09\x09html img src: 'fosdem2012/images/amber.png'.\x0a\x09\x09html p: self presentation author.\x0a \x09html p: self presentation description.\x0a\x09\x09html p: [\x0a\x09\x09\x09html with: self presentation email]].",
  2287. messageSends: ["class:", "div", "with:", "src:", "img", "p:", "author", "presentation", "description", "email"],
  2288. referencedClasses: []
  2289. }),
  2290. smalltalk.FOSDEMIntroSlide);
  2291. smalltalk.addClass('FOSDEMJSPlayGroundSlide', smalltalk.FOSDEMSlide, [], 'Presentation');
  2292. smalltalk.addMethod(
  2293. smalltalk.method({
  2294. selector: "codeSnippet",
  2295. category: 'accessing',
  2296. fn: function (){
  2297. var self=this;
  2298. return smalltalk.withContext(function($ctx1) {
  2299. return "|logo|\x0alogo:='img#amberlogo' asJQuery.\x0a\x0alogo\x0a css:'-webkit-transition' put:'all 10s ease-in-out'.\x0a\x0a<logo.css('-webkit-transform', 'rotateY(360deg)');>.\x0a\x0alogo click: [window alert: 'This is cool !'].\x0a\x0alogo inspect";
  2300. }, function($ctx1) {$ctx1.fill(self,"codeSnippet",{},smalltalk.FOSDEMJSPlayGroundSlide)})},
  2301. args: [],
  2302. source: "codeSnippet\x0a^'|logo|\x0alogo:=''img#amberlogo'' asJQuery.\x0a\x0alogo\x0a css:''-webkit-transition'' put:''all 10s ease-in-out''.\x0a\x0a<logo.css(''-webkit-transform'', ''rotateY(360deg)'');>.\x0a\x0alogo click: [window alert: ''This is cool !''].\x0a\x0alogo inspect'.",
  2303. messageSends: [],
  2304. referencedClasses: []
  2305. }),
  2306. smalltalk.FOSDEMJSPlayGroundSlide);
  2307. smalltalk.addMethod(
  2308. smalltalk.method({
  2309. selector: "renderSlideOn:",
  2310. category: 'rendering',
  2311. fn: function (html){
  2312. var self=this;
  2313. return smalltalk.withContext(function($ctx1) {
  2314. var $1,$3,$4,$2;
  2315. $1=_st(html)._div();
  2316. _st($1)._class_("section center");
  2317. $2=_st($1)._with_((function(){
  2318. return smalltalk.withContext(function($ctx2) {
  2319. self._renderCodeSnippetOn_(html);
  2320. $3=_st(html)._img();
  2321. _st($3)._id_("amberlogo");
  2322. $4=_st($3)._src_("fosdem2012/images/amber.png");
  2323. return $4;
  2324. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2325. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMJSPlayGroundSlide)})},
  2326. args: ["html"],
  2327. source: "renderSlideOn: html\x0a\x09html div\x0a\x09\x09class: 'section center'; \x0a\x09\x09with: [\x0a\x09\x09\x09self renderCodeSnippetOn: html.\x0a\x09\x09\x09html img\x0a\x09\x09\x09\x09id: 'amberlogo'; \x0a\x09\x09\x09\x09src: 'fosdem2012/images/amber.png'\x09]",
  2328. messageSends: ["class:", "div", "with:", "renderCodeSnippetOn:", "id:", "img", "src:"],
  2329. referencedClasses: []
  2330. }),
  2331. smalltalk.FOSDEMJSPlayGroundSlide);
  2332. smalltalk.addClass('FOSDEMJSToSmalltalk', smalltalk.FOSDEMSlide, [], 'Presentation');
  2333. smalltalk.addMethod(
  2334. smalltalk.method({
  2335. selector: "codeSnippet",
  2336. category: 'accessing',
  2337. fn: function (){
  2338. var self=this;
  2339. return smalltalk.withContext(function($ctx1) {
  2340. return "var counter = window.smalltalk.Counter._new();\x0acounter._appendToJQuery_($('#jsToSmalltalk'));";
  2341. }, function($ctx1) {$ctx1.fill(self,"codeSnippet",{},smalltalk.FOSDEMJSToSmalltalk)})},
  2342. args: [],
  2343. source: "codeSnippet\x0a\x09^\x0a'var counter = window.smalltalk.Counter._new();\x0acounter._appendToJQuery_($(''#jsToSmalltalk''));'.",
  2344. messageSends: [],
  2345. referencedClasses: []
  2346. }),
  2347. smalltalk.FOSDEMJSToSmalltalk);
  2348. smalltalk.addMethod(
  2349. smalltalk.method({
  2350. selector: "cssClass",
  2351. category: 'accessing',
  2352. fn: function (){
  2353. var self=this;
  2354. return smalltalk.withContext(function($ctx1) {
  2355. return "slide blue3d";
  2356. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.FOSDEMJSToSmalltalk)})},
  2357. args: [],
  2358. source: "cssClass\x0a\x09^ 'slide blue3d'",
  2359. messageSends: [],
  2360. referencedClasses: []
  2361. }),
  2362. smalltalk.FOSDEMJSToSmalltalk);
  2363. smalltalk.addMethod(
  2364. smalltalk.method({
  2365. selector: "renderSlideOn:",
  2366. category: 'rendering',
  2367. fn: function (html){
  2368. var self=this;
  2369. return smalltalk.withContext(function($ctx1) {
  2370. var $1,$2;
  2371. _st(html)._h1_("Call Smalltalk from Javascript");
  2372. $1=_st(html)._div();
  2373. _st($1)._id_("jsToSmalltalk");
  2374. $2=_st($1)._style_("float: left");
  2375. self._renderCodeSnippetOn_(html);
  2376. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMJSToSmalltalk)})},
  2377. args: ["html"],
  2378. source: "renderSlideOn: html\x0a\x09html h1: 'Call Smalltalk from Javascript'.\x0a\x09html div\x0a\x09\x09id: 'jsToSmalltalk';\x0a\x09\x09style: 'float: left'.\x0a\x09self renderCodeSnippetOn: html.",
  2379. messageSends: ["h1:", "id:", "div", "style:", "renderCodeSnippetOn:"],
  2380. referencedClasses: []
  2381. }),
  2382. smalltalk.FOSDEMJSToSmalltalk);
  2383. smalltalk.addClass('FOSDEMREPLSlide', smalltalk.FOSDEMSlide, [], 'Presentation');
  2384. smalltalk.addMethod(
  2385. smalltalk.method({
  2386. selector: "codeSnippet",
  2387. category: 'rendering',
  2388. fn: function (){
  2389. var self=this;
  2390. return smalltalk.withContext(function($ctx1) {
  2391. return "./bin/amber\x0afs := require value: 'fs'.\x0afs readdir: '/tmp' do: [:err :file| console log: file]";
  2392. }, function($ctx1) {$ctx1.fill(self,"codeSnippet",{},smalltalk.FOSDEMREPLSlide)})},
  2393. args: [],
  2394. source: "codeSnippet\x0a\x09^ \x0a'./bin/amber\x0afs := require value: ''fs''.\x0afs readdir: ''/tmp'' do: [:err :file| console log: file]'.",
  2395. messageSends: [],
  2396. referencedClasses: []
  2397. }),
  2398. smalltalk.FOSDEMREPLSlide);
  2399. smalltalk.addMethod(
  2400. smalltalk.method({
  2401. selector: "renderSlideOn:",
  2402. category: 'rendering',
  2403. fn: function (html){
  2404. var self=this;
  2405. return smalltalk.withContext(function($ctx1) {
  2406. _st(html)._h1_("REPL");
  2407. self._renderCodeSnippetOn_(html);
  2408. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMREPLSlide)})},
  2409. args: ["html"],
  2410. source: "renderSlideOn: html\x0a\x09html h1: 'REPL'.\x0a\x09self renderCodeSnippetOn: html.",
  2411. messageSends: ["h1:", "renderCodeSnippetOn:"],
  2412. referencedClasses: []
  2413. }),
  2414. smalltalk.FOSDEMREPLSlide);
  2415. smalltalk.addClass('FOSDEMTwitter', smalltalk.FOSDEMSlide, ['twitterDiv'], 'Presentation');
  2416. smalltalk.addMethod(
  2417. smalltalk.method({
  2418. selector: "cssClass",
  2419. category: 'accessing',
  2420. fn: function (){
  2421. var self=this;
  2422. return smalltalk.withContext(function($ctx1) {
  2423. return "slide black";
  2424. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.FOSDEMTwitter)})},
  2425. args: [],
  2426. source: "cssClass\x0a\x09^ 'slide black'",
  2427. messageSends: [],
  2428. referencedClasses: []
  2429. }),
  2430. smalltalk.FOSDEMTwitter);
  2431. smalltalk.addMethod(
  2432. smalltalk.method({
  2433. selector: "loadTweets",
  2434. category: 'callback',
  2435. fn: function (){
  2436. var self=this;
  2437. return smalltalk.withContext(function($ctx1) {
  2438. _st(jQuery)._ajax_options_("http://search.twitter.com/search.json?rpp=3&q=%40AmberSmalltalk",smalltalk.HashedCollection._from_(["type".__minus_gt("GET"),"success".__minus_gt((function(json){
  2439. return smalltalk.withContext(function($ctx2) {
  2440. return self._renderTweets_(_st(json)._results());
  2441. }, function($ctx2) {$ctx2.fillBlock({json:json},$ctx1)})})),"dataType".__minus_gt("jsonp")]));
  2442. return self}, function($ctx1) {$ctx1.fill(self,"loadTweets",{},smalltalk.FOSDEMTwitter)})},
  2443. args: [],
  2444. source: "loadTweets\x0a\x09jQuery \x0a\x09\x09ajax: 'http://search.twitter.com/search.json?rpp=3&q=%40AmberSmalltalk'\x0a\x09\x09options: #{\x0a\x09\x09\x09\x09'type' -> 'GET'.\x0a\x09\x09\x09\x09'success' -> [ :json | self renderTweets: (json results)].\x0a\x09\x09\x09\x09'dataType' -> 'jsonp'\x0a\x09\x09\x09}.",
  2445. messageSends: ["ajax:options:", "->", "renderTweets:", "results"],
  2446. referencedClasses: []
  2447. }),
  2448. smalltalk.FOSDEMTwitter);
  2449. smalltalk.addMethod(
  2450. smalltalk.method({
  2451. selector: "renderSlideOn:",
  2452. category: 'rendering',
  2453. fn: function (html){
  2454. var self=this;
  2455. return smalltalk.withContext(function($ctx1) {
  2456. var $1,$2;
  2457. $1=_st(html)._button();
  2458. _st($1)._onClick_((function(){
  2459. return smalltalk.withContext(function($ctx2) {
  2460. return self._loadTweets();
  2461. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2462. $2=_st($1)._with_("What about @AmberSmalltalk on Twitter ?");
  2463. self["@twitterDiv"]=_st(html)._div();
  2464. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMTwitter)})},
  2465. args: ["html"],
  2466. source: "renderSlideOn: html\x0a\x09html button\x0a\x09\x09onClick: [self loadTweets];\x0a\x09\x09with: 'What about @AmberSmalltalk on Twitter ?'.\x0a\x09twitterDiv := html div.",
  2467. messageSends: ["onClick:", "loadTweets", "button", "with:", "div"],
  2468. referencedClasses: []
  2469. }),
  2470. smalltalk.FOSDEMTwitter);
  2471. smalltalk.addMethod(
  2472. smalltalk.method({
  2473. selector: "renderTweet:on:",
  2474. category: 'rendering',
  2475. fn: function (tweet,html){
  2476. var self=this;
  2477. return smalltalk.withContext(function($ctx1) {
  2478. var $1,$3,$4,$2;
  2479. $1=_st(html)._div();
  2480. _st($1)._class_("tweet");
  2481. $2=_st($1)._with_((function(){
  2482. return smalltalk.withContext(function($ctx2) {
  2483. $3=html;
  2484. _st($3)._span_(_st(tweet)._at_("created_at"));
  2485. _st($3)._img_(_st(tweet)._at_("profile_image_url"));
  2486. _st($3)._span_(_st(tweet)._at_("from_user"));
  2487. $4=_st($3)._div_(_st(tweet)._at_("text"));
  2488. return $4;
  2489. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2490. return self}, function($ctx1) {$ctx1.fill(self,"renderTweet:on:",{tweet:tweet,html:html},smalltalk.FOSDEMTwitter)})},
  2491. args: ["tweet", "html"],
  2492. source: "renderTweet: tweet on: html\x0a\x09html div \x0a\x09\x09class: 'tweet';\x0a\x09\x09with: [\x0a\x09\x09\x09html \x0a\x09\x09\x09\x09span: (tweet at: 'created_at');\x0a\x09\x09\x09\x09img: (tweet at: 'profile_image_url');\x0a\x09\x09\x09\x09span: (tweet at: 'from_user');\x0a\x09\x09\x09\x09div: (tweet at: 'text'). \x0a\x09\x09]",
  2493. messageSends: ["class:", "div", "with:", "span:", "at:", "img:", "div:"],
  2494. referencedClasses: []
  2495. }),
  2496. smalltalk.FOSDEMTwitter);
  2497. smalltalk.addMethod(
  2498. smalltalk.method({
  2499. selector: "renderTweets:",
  2500. category: 'rendering',
  2501. fn: function (tweets){
  2502. var self=this;
  2503. return smalltalk.withContext(function($ctx1) {
  2504. _st(self["@twitterDiv"])._contents_((function(html){
  2505. return smalltalk.withContext(function($ctx2) {
  2506. return _st(tweets)._do_((function(tweet){
  2507. return smalltalk.withContext(function($ctx3) {
  2508. return self._renderTweet_on_(tweet,html);
  2509. }, function($ctx3) {$ctx3.fillBlock({tweet:tweet},$ctx2)})}));
  2510. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}));
  2511. return self}, function($ctx1) {$ctx1.fill(self,"renderTweets:",{tweets:tweets},smalltalk.FOSDEMTwitter)})},
  2512. args: ["tweets"],
  2513. source: "renderTweets: tweets\x0a\x09twitterDiv contents: [\x09:html|\x0a\x09\x09\x09\x09\x09\x09tweets do: [\x09:tweet| \x0a\x09\x09\x09\x09\x09\x09\x09\x09\x09self renderTweet: tweet on: html] ]",
  2514. messageSends: ["contents:", "do:", "renderTweet:on:"],
  2515. referencedClasses: []
  2516. }),
  2517. smalltalk.FOSDEMTwitter);
  2518. smalltalk.addClass('IDESlide', smalltalk.Slide, [], 'Presentation');
  2519. smalltalk.addMethod(
  2520. smalltalk.method({
  2521. selector: "backgroundColor",
  2522. category: 'accessing',
  2523. fn: function (){
  2524. var self=this;
  2525. return smalltalk.withContext(function($ctx1) {
  2526. return "black";
  2527. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.IDESlide)})},
  2528. args: [],
  2529. source: "backgroundColor\x0a\x09^'black'",
  2530. messageSends: [],
  2531. referencedClasses: []
  2532. }),
  2533. smalltalk.IDESlide);
  2534. smalltalk.addMethod(
  2535. smalltalk.method({
  2536. selector: "cssClass",
  2537. category: 'accessing',
  2538. fn: function (){
  2539. var self=this;
  2540. return smalltalk.withContext(function($ctx1) {
  2541. return "slide transparent";
  2542. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.IDESlide)})},
  2543. args: [],
  2544. source: "cssClass\x0a\x09^'slide transparent'",
  2545. messageSends: [],
  2546. referencedClasses: []
  2547. }),
  2548. smalltalk.IDESlide);
  2549. smalltalk.addMethod(
  2550. smalltalk.method({
  2551. selector: "id",
  2552. category: 'accessing',
  2553. fn: function (){
  2554. var self=this;
  2555. return smalltalk.withContext(function($ctx1) {
  2556. return "ide";
  2557. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.IDESlide)})},
  2558. args: [],
  2559. source: "id\x0a\x09^'ide'",
  2560. messageSends: [],
  2561. referencedClasses: []
  2562. }),
  2563. smalltalk.IDESlide);
  2564. smalltalk.addMethod(
  2565. smalltalk.method({
  2566. selector: "renderSlideOn:",
  2567. category: 'rendering',
  2568. fn: function (html){
  2569. var self=this;
  2570. return smalltalk.withContext(function($ctx1) {
  2571. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.IDESlide)})},
  2572. args: ["html"],
  2573. source: "renderSlideOn: html\x0a\x22\x09html div class: 'section center'; with: [\x0a\x09\x09html h1 \x0a\x09\x09\x09with: 'The wonderful Jtalk ';\x0a\x09\x09\x09with: [\x0a\x09\x09\x09\x09html a \x0a\x09\x09\x09\x09\x09with: 'development tools';\x0a\x09\x09\x09\x09\x09onClick: [TabManager current open]];\x0a\x09\x09\x09with: '.']\x0a\x22",
  2574. messageSends: [],
  2575. referencedClasses: []
  2576. }),
  2577. smalltalk.IDESlide);
  2578. smalltalk.addClass('IntroSlide', smalltalk.Slide, [], 'Presentation');
  2579. smalltalk.addMethod(
  2580. smalltalk.method({
  2581. selector: "cssClass",
  2582. category: 'accessing',
  2583. fn: function (){
  2584. var self=this;
  2585. return smalltalk.withContext(function($ctx1) {
  2586. return "slide black";
  2587. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.IntroSlide)})},
  2588. args: [],
  2589. source: "cssClass\x0a\x09^'slide black'",
  2590. messageSends: [],
  2591. referencedClasses: []
  2592. }),
  2593. smalltalk.IntroSlide);
  2594. smalltalk.addMethod(
  2595. smalltalk.method({
  2596. selector: "id",
  2597. category: 'accessing',
  2598. fn: function (){
  2599. var self=this;
  2600. return smalltalk.withContext(function($ctx1) {
  2601. return "intro";
  2602. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.IntroSlide)})},
  2603. args: [],
  2604. source: "id\x0a\x09^'intro'",
  2605. messageSends: [],
  2606. referencedClasses: []
  2607. }),
  2608. smalltalk.IntroSlide);
  2609. smalltalk.addMethod(
  2610. smalltalk.method({
  2611. selector: "renderSlideOn:",
  2612. category: 'rendering',
  2613. fn: function (html){
  2614. var self=this;
  2615. return smalltalk.withContext(function($ctx1) {
  2616. var $1,$3,$4,$5,$6,$7,$8,$2;
  2617. $1=_st(html)._div();
  2618. _st($1)._class_("section center");
  2619. $2=_st($1)._with_((function(){
  2620. return smalltalk.withContext(function($ctx2) {
  2621. _st(_st(html)._h1())._with_("Jtalk, the Smalltalk for Web developers");
  2622. _st(_st(html)._p())._with_(_st(_st(_st(self._presentation())._author()).__comma(" & Göran Krampe - ")).__comma(_st(self._presentation())._description()));
  2623. _st(_st(html)._p())._with_((function(){
  2624. return smalltalk.withContext(function($ctx3) {
  2625. $3=_st(html)._a();
  2626. _st($3)._with_(_st(self._presentation())._email());
  2627. $4=_st($3)._href_("mailto:".__comma(_st(self._presentation())._email()));
  2628. return $4;
  2629. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2630. _st(_st(html)._p())._with_((function(){
  2631. return smalltalk.withContext(function($ctx3) {
  2632. $5=_st(html)._a();
  2633. _st($5)._with_("goran@krampe.se");
  2634. $6=_st($5)._href_("mailto:goran@krampe.se");
  2635. return $6;
  2636. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2637. return _st(_st(html)._p())._with_((function(){
  2638. return smalltalk.withContext(function($ctx3) {
  2639. $7=_st(html)._a();
  2640. _st($7)._with_("objectfusion.fr");
  2641. $8=_st($7)._href_("http://www.objectfusion.fr");
  2642. return $8;
  2643. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2644. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2645. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.IntroSlide)})},
  2646. args: ["html"],
  2647. source: "renderSlideOn: html\x0a\x09html div class: 'section center'; with: [\x0a\x09\x09html h1 with: 'Jtalk, the Smalltalk for Web developers'.\x0a\x09\x09html p with: self presentation author, ' & Göran Krampe - ', self presentation description.\x0a\x09\x09html p with: [\x0a\x09\x09\x09html a\x0a\x09\x09\x09\x09with: self presentation email;\x0a\x09\x09\x09\x09href: 'mailto:', self presentation email].\x0a\x09\x09html p with: [\x0a\x09\x09\x09html a\x0a\x09\x09\x09\x09with: 'goran@krampe.se';\x0a\x09\x09\x09\x09href: 'mailto:goran@krampe.se'].\x0a\x09\x09\x0a \x09html p with: [\x0a\x09\x09\x09html a\x0a\x09\x09\x09\x09with: 'objectfusion.fr';\x0a\x09\x09\x09\x09href: 'http://www.objectfusion.fr']]",
  2648. messageSends: ["class:", "div", "with:", "h1", ",", "description", "presentation", "author", "p", "email", "a", "href:"],
  2649. referencedClasses: []
  2650. }),
  2651. smalltalk.IntroSlide);
  2652. smalltalk.addClass('JtalkAndCLI', smalltalk.Slide, [], 'Presentation');
  2653. smalltalk.addMethod(
  2654. smalltalk.method({
  2655. selector: "backgroundColor",
  2656. category: 'not yet classified',
  2657. fn: function (){
  2658. var self=this;
  2659. return smalltalk.withContext(function($ctx1) {
  2660. return "#0A1";
  2661. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndCLI)})},
  2662. args: [],
  2663. source: "backgroundColor\x0a\x09^'#0A1'",
  2664. messageSends: [],
  2665. referencedClasses: []
  2666. }),
  2667. smalltalk.JtalkAndCLI);
  2668. smalltalk.addMethod(
  2669. smalltalk.method({
  2670. selector: "id",
  2671. category: 'not yet classified',
  2672. fn: function (){
  2673. var self=this;
  2674. return smalltalk.withContext(function($ctx1) {
  2675. return "JtalkAndCLI";
  2676. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndCLI)})},
  2677. args: [],
  2678. source: "id\x0a\x09^'JtalkAndCLI'",
  2679. messageSends: [],
  2680. referencedClasses: []
  2681. }),
  2682. smalltalk.JtalkAndCLI);
  2683. smalltalk.addMethod(
  2684. smalltalk.method({
  2685. selector: "renderSlideOn:",
  2686. category: 'not yet classified',
  2687. fn: function (html){
  2688. var self=this;
  2689. return smalltalk.withContext(function($ctx1) {
  2690. var $1,$2;
  2691. _st(_st(html)._h1())._with_((function(){
  2692. return smalltalk.withContext(function($ctx2) {
  2693. _st(html)._with_("Jtalk and ");
  2694. $1=_st(html)._span();
  2695. _st($1)._class_("blue");
  2696. $2=_st($1)._with_("the command line");
  2697. return $2;
  2698. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2699. _st(_st(html)._h2())._with_("jtalkc - a fairly elaborate bash script that:");
  2700. _st(_st(html)._ul())._with_((function(){
  2701. return smalltalk.withContext(function($ctx2) {
  2702. _st(_st(html)._li())._with_("Uses Node.js to run the Jtalk Compiler");
  2703. _st(_st(html)._li())._with_("Compiles .st files to .js");
  2704. _st(_st(html)._li())._with_("Links .js files into a single one");
  2705. _st(_st(html)._li())._with_("Adds class initilization and/or call to main");
  2706. return _st(_st(html)._li())._with_("Optionally runs Google Closure compiler");
  2707. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2708. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndCLI)})},
  2709. args: ["html"],
  2710. source: "renderSlideOn: html\x0a\x09html h1 with: [\x0a\x09\x09html with: 'Jtalk and '.\x0a\x09\x09html span class: 'blue'; with: 'the command line'].\x0a\x0a\x09html h2 with: 'jtalkc - a fairly elaborate bash script that:'.\x0a\x0a\x09html ul with: [\x0a\x09\x09html li with: 'Uses Node.js to run the Jtalk Compiler'.\x0a\x09\x09html li with: 'Compiles .st files to .js'.\x0a\x09\x09html li with: 'Links .js files into a single one'.\x0a\x09\x09html li with: 'Adds class initilization and/or call to main'.\x0a\x09\x09html li with: 'Optionally runs Google Closure compiler']",
  2711. messageSends: ["with:", "class:", "span", "h1", "h2", "li", "ul"],
  2712. referencedClasses: []
  2713. }),
  2714. smalltalk.JtalkAndCLI);
  2715. smalltalk.addClass('JtalkAndEnyo', smalltalk.Slide, [], 'Presentation');
  2716. smalltalk.addMethod(
  2717. smalltalk.method({
  2718. selector: "backgroundColor",
  2719. category: 'not yet classified',
  2720. fn: function (){
  2721. var self=this;
  2722. return smalltalk.withContext(function($ctx1) {
  2723. return "#0A1";
  2724. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndEnyo)})},
  2725. args: [],
  2726. source: "backgroundColor\x0a\x09^'#0A1'",
  2727. messageSends: [],
  2728. referencedClasses: []
  2729. }),
  2730. smalltalk.JtalkAndEnyo);
  2731. smalltalk.addMethod(
  2732. smalltalk.method({
  2733. selector: "id",
  2734. category: 'not yet classified',
  2735. fn: function (){
  2736. var self=this;
  2737. return smalltalk.withContext(function($ctx1) {
  2738. return "JtalkAndEnyo";
  2739. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndEnyo)})},
  2740. args: [],
  2741. source: "id\x0a\x09^'JtalkAndEnyo'",
  2742. messageSends: [],
  2743. referencedClasses: []
  2744. }),
  2745. smalltalk.JtalkAndEnyo);
  2746. smalltalk.addMethod(
  2747. smalltalk.method({
  2748. selector: "renderSlideOn:",
  2749. category: 'not yet classified',
  2750. fn: function (html){
  2751. var self=this;
  2752. return smalltalk.withContext(function($ctx1) {
  2753. var $1,$2;
  2754. _st(_st(html)._h1())._with_((function(){
  2755. return smalltalk.withContext(function($ctx2) {
  2756. _st(html)._with_("Jtalk and ");
  2757. $1=_st(html)._span();
  2758. _st($1)._class_("blue");
  2759. $2=_st($1)._with_("Enyo");
  2760. return $2;
  2761. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2762. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndEnyo)})},
  2763. args: ["html"],
  2764. source: "renderSlideOn: html\x0a\x09html h1 with: [\x0a\x09\x09html with: 'Jtalk and '.\x0a\x09\x09html span class: 'blue'; with: 'Enyo'].",
  2765. messageSends: ["with:", "class:", "span", "h1"],
  2766. referencedClasses: []
  2767. }),
  2768. smalltalk.JtalkAndEnyo);
  2769. smalltalk.addClass('JtalkAndJavascriptSlide', smalltalk.Slide, [], 'Presentation');
  2770. smalltalk.addMethod(
  2771. smalltalk.method({
  2772. selector: "backgroundColor",
  2773. category: 'accessing',
  2774. fn: function (){
  2775. var self=this;
  2776. return smalltalk.withContext(function($ctx1) {
  2777. return "#08C";
  2778. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndJavascriptSlide)})},
  2779. args: [],
  2780. source: "backgroundColor\x0a\x09^'#08C'",
  2781. messageSends: [],
  2782. referencedClasses: []
  2783. }),
  2784. smalltalk.JtalkAndJavascriptSlide);
  2785. smalltalk.addMethod(
  2786. smalltalk.method({
  2787. selector: "cssClass",
  2788. category: 'accessing',
  2789. fn: function (){
  2790. var self=this;
  2791. return smalltalk.withContext(function($ctx1) {
  2792. return "slide transparent";
  2793. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.JtalkAndJavascriptSlide)})},
  2794. args: [],
  2795. source: "cssClass\x0a\x09^'slide transparent'",
  2796. messageSends: [],
  2797. referencedClasses: []
  2798. }),
  2799. smalltalk.JtalkAndJavascriptSlide);
  2800. smalltalk.addMethod(
  2801. smalltalk.method({
  2802. selector: "id",
  2803. category: 'accessing',
  2804. fn: function (){
  2805. var self=this;
  2806. return smalltalk.withContext(function($ctx1) {
  2807. return "jtalkAndJs";
  2808. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndJavascriptSlide)})},
  2809. args: [],
  2810. source: "id\x0a\x09^'jtalkAndJs'",
  2811. messageSends: [],
  2812. referencedClasses: []
  2813. }),
  2814. smalltalk.JtalkAndJavascriptSlide);
  2815. smalltalk.addMethod(
  2816. smalltalk.method({
  2817. selector: "renderSlideOn:",
  2818. category: 'rendering',
  2819. fn: function (html){
  2820. var self=this;
  2821. return smalltalk.withContext(function($ctx1) {
  2822. var $1,$3,$4,$2;
  2823. $1=_st(html)._div();
  2824. _st($1)._class_("section center");
  2825. $2=_st($1)._with_((function(){
  2826. return smalltalk.withContext(function($ctx2) {
  2827. return _st(_st(html)._h1())._with_((function(){
  2828. return smalltalk.withContext(function($ctx3) {
  2829. _st(html)._with_("Smalltalk ");
  2830. $3=_st(html)._span();
  2831. _st($3)._class_("red");
  2832. $4=_st($3)._with_("♥");
  2833. $4;
  2834. return _st(html)._with_(" JavaScript");
  2835. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2836. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2837. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndJavascriptSlide)})},
  2838. args: ["html"],
  2839. source: "renderSlideOn: html\x0a\x09html div class: 'section center'; with: [\x0a\x09\x09html h1 with: [\x0a\x09\x09\x09html with: 'Smalltalk '.\x0a\x09\x09\x09html span class: 'red'; with: '♥'.\x0a\x09\x09\x09html with: ' JavaScript']]",
  2840. messageSends: ["class:", "div", "with:", "span", "h1"],
  2841. referencedClasses: []
  2842. }),
  2843. smalltalk.JtalkAndJavascriptSlide);
  2844. smalltalk.addClass('JtalkAndJavascriptSlide2', smalltalk.Slide, [], 'Presentation');
  2845. smalltalk.addMethod(
  2846. smalltalk.method({
  2847. selector: "backgroundColor",
  2848. category: 'accessing',
  2849. fn: function (){
  2850. var self=this;
  2851. return smalltalk.withContext(function($ctx1) {
  2852. return "#08C";
  2853. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndJavascriptSlide2)})},
  2854. args: [],
  2855. source: "backgroundColor\x0a\x09^'#08C'",
  2856. messageSends: [],
  2857. referencedClasses: []
  2858. }),
  2859. smalltalk.JtalkAndJavascriptSlide2);
  2860. smalltalk.addMethod(
  2861. smalltalk.method({
  2862. selector: "id",
  2863. category: 'accessing',
  2864. fn: function (){
  2865. var self=this;
  2866. return smalltalk.withContext(function($ctx1) {
  2867. return "jtalkAndJs2";
  2868. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndJavascriptSlide2)})},
  2869. args: [],
  2870. source: "id\x0a\x09^'jtalkAndJs2'",
  2871. messageSends: [],
  2872. referencedClasses: []
  2873. }),
  2874. smalltalk.JtalkAndJavascriptSlide2);
  2875. smalltalk.addMethod(
  2876. smalltalk.method({
  2877. selector: "renderSlideOn:",
  2878. category: 'rendering',
  2879. fn: function (html){
  2880. var self=this;
  2881. return smalltalk.withContext(function($ctx1) {
  2882. var $1,$2;
  2883. _st(_st(html)._h1())._with_((function(){
  2884. return smalltalk.withContext(function($ctx2) {
  2885. _st(html)._with_("Smalltalk ");
  2886. $1=_st(html)._span();
  2887. _st($1)._class_("red");
  2888. $2=_st($1)._with_("♥");
  2889. $2;
  2890. return _st(html)._with_(" JavaScript");
  2891. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2892. _st(_st(html)._h2())._with_("Jtalk maps one to one with the JavaScript equivalent:");
  2893. _st(_st(html)._ul())._with_((function(){
  2894. return smalltalk.withContext(function($ctx2) {
  2895. _st(_st(html)._li())._with_("String ⇔ String");
  2896. _st(_st(html)._li())._with_("Number ⇔ Number");
  2897. _st(_st(html)._li())._with_("BlockClosure ⇔ function");
  2898. _st(_st(html)._li())._with_("Dictionary ⇔ Object");
  2899. _st(_st(html)._li())._with_("Error ⇔ Error");
  2900. return _st(_st(html)._li())._with_("etc.");
  2901. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2902. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndJavascriptSlide2)})},
  2903. args: ["html"],
  2904. source: "renderSlideOn: html\x0a\x09html h1 with: [\x0a\x09\x09html with: 'Smalltalk '.\x0a\x09\x09html span class: 'red'; with: '♥'.\x0a\x09\x09html with: ' JavaScript'].\x0a\x09html h2 with: 'Jtalk maps one to one with the JavaScript equivalent:'.\x0a\x09html ul with: [\x0a\x09\x09html li with: 'String ⇔ String'.\x0a\x09\x09html li with: 'Number ⇔ Number'.\x0a\x09\x09html li with: 'BlockClosure ⇔ function'.\x0a\x09\x09html li with: 'Dictionary ⇔ Object'.\x0a\x09\x09html li with: 'Error ⇔ Error'.\x0a\x09\x09html li with: 'etc.']",
  2905. messageSends: ["with:", "class:", "span", "h1", "h2", "li", "ul"],
  2906. referencedClasses: []
  2907. }),
  2908. smalltalk.JtalkAndJavascriptSlide2);
  2909. smalltalk.addClass('JtalkAndJavascriptSlide3', smalltalk.Slide, [], 'Presentation');
  2910. smalltalk.addMethod(
  2911. smalltalk.method({
  2912. selector: "backgroundColor",
  2913. category: 'accessing',
  2914. fn: function (){
  2915. var self=this;
  2916. return smalltalk.withContext(function($ctx1) {
  2917. return "#08C";
  2918. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndJavascriptSlide3)})},
  2919. args: [],
  2920. source: "backgroundColor\x0a\x09^'#08C'",
  2921. messageSends: [],
  2922. referencedClasses: []
  2923. }),
  2924. smalltalk.JtalkAndJavascriptSlide3);
  2925. smalltalk.addMethod(
  2926. smalltalk.method({
  2927. selector: "id",
  2928. category: 'accessing',
  2929. fn: function (){
  2930. var self=this;
  2931. return smalltalk.withContext(function($ctx1) {
  2932. return "jtalkAndJs3";
  2933. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndJavascriptSlide3)})},
  2934. args: [],
  2935. source: "id\x0a\x09^'jtalkAndJs3'",
  2936. messageSends: [],
  2937. referencedClasses: []
  2938. }),
  2939. smalltalk.JtalkAndJavascriptSlide3);
  2940. smalltalk.addMethod(
  2941. smalltalk.method({
  2942. selector: "renderSlideOn:",
  2943. category: 'rendering',
  2944. fn: function (html){
  2945. var self=this;
  2946. return smalltalk.withContext(function($ctx1) {
  2947. var $1,$2,$3,$4,$5,$6,$7,$8;
  2948. _st(_st(html)._h1())._with_((function(){
  2949. return smalltalk.withContext(function($ctx2) {
  2950. _st(html)._with_("Smalltalk ");
  2951. $1=_st(html)._span();
  2952. _st($1)._class_("red");
  2953. $2=_st($1)._with_("♥");
  2954. $2;
  2955. return _st(html)._with_(" JavaScript");
  2956. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2957. _st(_st(html)._h2())._with_("Smalltalk ⇒ JavaScript");
  2958. _st(_st(html)._ol())._with_((function(){
  2959. return smalltalk.withContext(function($ctx2) {
  2960. $3=_st(html)._li();
  2961. _st($3)._with_("Unary messages begin with an underscore: ");
  2962. _st($3)._with_((function(){
  2963. return smalltalk.withContext(function($ctx3) {
  2964. return _st(_st(html)._code())._with_("yourself");
  2965. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2966. _st($3)._with_(" becomes ");
  2967. $4=_st($3)._with_((function(){
  2968. return smalltalk.withContext(function($ctx3) {
  2969. return _st(_st(html)._code())._with_("_yourself()");
  2970. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2971. $4;
  2972. $5=_st(html)._li();
  2973. _st($5)._with_("Binary messages are prefixed with 2 underscores: ");
  2974. _st($5)._with_((function(){
  2975. return smalltalk.withContext(function($ctx3) {
  2976. return _st(_st(html)._code())._with_("3@4");
  2977. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2978. _st($5)._with_(" becomes ");
  2979. $6=_st($5)._with_((function(){
  2980. return smalltalk.withContext(function($ctx3) {
  2981. return _st(_st(html)._code())._with_("(3).__at(4)");
  2982. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2983. $6;
  2984. $7=_st(html)._li();
  2985. _st($7)._with_("Keyword message follow the same rules as unary messages, with a final underscore: ");
  2986. _st($7)._with_((function(){
  2987. return smalltalk.withContext(function($ctx3) {
  2988. return _st(_st(html)._code())._with_("aDictionary at: 3 put: 4");
  2989. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2990. _st($7)._with_(" becomes ");
  2991. $8=_st($7)._with_((function(){
  2992. return smalltalk.withContext(function($ctx3) {
  2993. return _st(_st(html)._code())._with_("aDictionary._at_put_(3, 4)");
  2994. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2995. return $8;
  2996. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2997. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndJavascriptSlide3)})},
  2998. args: ["html"],
  2999. source: "renderSlideOn: html\x0a\x09html h1 with: [\x0a\x09\x09html with: 'Smalltalk '.\x0a\x09\x09html span class: 'red'; with: '♥'.\x0a\x09\x09html with: ' JavaScript'].\x0a\x09html h2 with: 'Smalltalk ⇒ JavaScript'.\x0a\x09html ol with: [\x0a\x09\x09html li \x0a\x09\x09\x09with: 'Unary messages begin with an underscore: ';\x0a\x09\x09\x09with: [html code with: 'yourself'];\x0a\x09\x09\x09with: ' becomes ';\x0a\x09\x09\x09with: [html code with: '_yourself()'].\x0a\x09\x09html li \x0a\x09\x09\x09with: 'Binary messages are prefixed with 2 underscores: ';\x0a\x09\x09\x09with: [html code with: '3@4'];\x0a\x09\x09\x09with: ' becomes ';\x0a\x09\x09\x09with: [html code with: '(3).__at(4)'].\x0a\x09\x09html li \x0a\x09\x09\x09with: 'Keyword message follow the same rules as unary messages, with a final underscore: ';\x0a\x09\x09\x09with: [html code with: 'aDictionary at: 3 put: 4'];\x0a\x09\x09\x09with: ' becomes ';\x0a\x09\x09\x09with: [html code with: 'aDictionary._at_put_(3, 4)']]",
  3000. messageSends: ["with:", "class:", "span", "h1", "h2", "li", "code", "ol"],
  3001. referencedClasses: []
  3002. }),
  3003. smalltalk.JtalkAndJavascriptSlide3);
  3004. smalltalk.addClass('JtalkAndJavascriptSlide4', smalltalk.Slide, [], 'Presentation');
  3005. smalltalk.addMethod(
  3006. smalltalk.method({
  3007. selector: "backgroundColor",
  3008. category: 'accessing',
  3009. fn: function (){
  3010. var self=this;
  3011. return smalltalk.withContext(function($ctx1) {
  3012. return "#08C";
  3013. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndJavascriptSlide4)})},
  3014. args: [],
  3015. source: "backgroundColor\x0a\x09^'#08C'",
  3016. messageSends: [],
  3017. referencedClasses: []
  3018. }),
  3019. smalltalk.JtalkAndJavascriptSlide4);
  3020. smalltalk.addMethod(
  3021. smalltalk.method({
  3022. selector: "id",
  3023. category: 'accessing',
  3024. fn: function (){
  3025. var self=this;
  3026. return smalltalk.withContext(function($ctx1) {
  3027. return "jtalkAndJs4";
  3028. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndJavascriptSlide4)})},
  3029. args: [],
  3030. source: "id\x0a\x09^'jtalkAndJs4'",
  3031. messageSends: [],
  3032. referencedClasses: []
  3033. }),
  3034. smalltalk.JtalkAndJavascriptSlide4);
  3035. smalltalk.addMethod(
  3036. smalltalk.method({
  3037. selector: "renderSlideOn:",
  3038. category: 'rendering',
  3039. fn: function (html){
  3040. var self=this;
  3041. return smalltalk.withContext(function($ctx1) {
  3042. var $1,$2,$3,$5,$6,$4,$7,$8,$9,$10,$11,$12,$13,$14;
  3043. _st(_st(html)._h1())._with_((function(){
  3044. return smalltalk.withContext(function($ctx2) {
  3045. _st(html)._with_("JavaScript ");
  3046. $1=_st(html)._span();
  3047. _st($1)._class_("red");
  3048. $2=_st($1)._with_("♥");
  3049. $2;
  3050. $3=html;
  3051. _st($3)._with_(" Smalltalk too! ");
  3052. $4=_st($3)._with_((function(){
  3053. return smalltalk.withContext(function($ctx3) {
  3054. $5=_st(html)._span();
  3055. _st($5)._class_("comment");
  3056. $6=_st($5)._with_("(how cute)");
  3057. return $6;
  3058. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3059. return $4;
  3060. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3061. _st(_st(html)._h2())._with_("JavaScript ⇒ Smalltalk");
  3062. _st(_st(html)._ol())._with_((function(){
  3063. return smalltalk.withContext(function($ctx2) {
  3064. $7=_st(html)._li();
  3065. _st($7)._with_((function(){
  3066. return smalltalk.withContext(function($ctx3) {
  3067. return _st(_st(html)._code())._with_("someUser.name");
  3068. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3069. _st($7)._with_(" becomes ");
  3070. $8=_st($7)._with_((function(){
  3071. return smalltalk.withContext(function($ctx3) {
  3072. return _st(_st(html)._code())._with_("someUser name");
  3073. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3074. $8;
  3075. $9=_st(html)._li();
  3076. _st($9)._with_((function(){
  3077. return smalltalk.withContext(function($ctx3) {
  3078. return _st(_st(html)._code())._with_("someUser name = \x22John\x22");
  3079. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3080. _st($9)._with_(" becomes ");
  3081. $10=_st($9)._with_((function(){
  3082. return smalltalk.withContext(function($ctx3) {
  3083. return _st(_st(html)._code())._with_("someUser name: 'John'");
  3084. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3085. $10;
  3086. $11=_st(html)._li();
  3087. _st($11)._with_((function(){
  3088. return smalltalk.withContext(function($ctx3) {
  3089. return _st(_st(html)._code())._with_("console.log('hello world')");
  3090. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3091. _st($11)._with_(" becomes ");
  3092. $12=_st($11)._with_((function(){
  3093. return smalltalk.withContext(function($ctx3) {
  3094. return _st(_st(html)._code())._with_("console log: 'hello world'");
  3095. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3096. $12;
  3097. $13=_st(html)._li();
  3098. _st($13)._with_((function(){
  3099. return smalltalk.withContext(function($ctx3) {
  3100. return _st(_st(html)._code())._with_("window.jQuery('foo').css('background', 'red')");
  3101. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3102. _st($13)._with_(" becomes ");
  3103. _st($13)._with_((function(){
  3104. return smalltalk.withContext(function($ctx3) {
  3105. return _st(html)._br();
  3106. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3107. $14=_st($13)._with_((function(){
  3108. return smalltalk.withContext(function($ctx3) {
  3109. return _st(_st(html)._code())._with_("(window jQuery: 'foo') css: 'background' color: 'red'");
  3110. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3111. return $14;
  3112. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3113. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndJavascriptSlide4)})},
  3114. args: ["html"],
  3115. source: "renderSlideOn: html\x0a\x09html h1 with: [\x0a\x09\x09html with: 'JavaScript '.\x0a\x09\x09html span class: 'red'; with: '♥'.\x0a\x09\x09html with: ' Smalltalk too! ';\x0a\x09\x09with: [html span class: 'comment'; with: '(how cute)']].\x0a\x09html h2 with: 'JavaScript ⇒ Smalltalk'.\x0a\x09html ol with: [\x0a\x09\x09html li \x0a\x09\x09\x09with: [html code with: 'someUser.name'];\x0a\x09\x09\x09with: ' becomes ';\x0a\x09\x09\x09with: [html code with: 'someUser name'].\x0a\x09\x09html li \x0a\x09\x09\x09with: [html code with: 'someUser name = \x22John\x22'];\x0a\x09\x09\x09with: ' becomes ';\x0a\x09\x09\x09with: [html code with: 'someUser name: ''John'''].\x0a\x09\x09html li \x0a\x09\x09\x09with: [html code with: 'console.log(''hello world'')'];\x0a\x09\x09\x09with: ' becomes ';\x0a\x09\x09\x09with: [html code with: 'console log: ''hello world'''].\x0a\x09\x09html li \x0a\x09\x09\x09with: [html code with: 'window.jQuery(''foo'').css(''background'', ''red'')'];\x0a\x09\x09\x09with: ' becomes ';\x0a\x09\x09\x09with: [html br];\x0a\x09\x09\x09with: [html code with: '(window jQuery: ''foo'') css: ''background'' color: ''red''']]",
  3116. messageSends: ["with:", "class:", "span", "h1", "h2", "code", "li", "br", "ol"],
  3117. referencedClasses: []
  3118. }),
  3119. smalltalk.JtalkAndJavascriptSlide4);
  3120. smalltalk.addClass('JtalkAndNode', smalltalk.Slide, [], 'Presentation');
  3121. smalltalk.addMethod(
  3122. smalltalk.method({
  3123. selector: "backgroundColor",
  3124. category: 'not yet classified',
  3125. fn: function (){
  3126. var self=this;
  3127. return smalltalk.withContext(function($ctx1) {
  3128. return "#0A1";
  3129. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndNode)})},
  3130. args: [],
  3131. source: "backgroundColor\x0a\x09^'#0A1'",
  3132. messageSends: [],
  3133. referencedClasses: []
  3134. }),
  3135. smalltalk.JtalkAndNode);
  3136. smalltalk.addMethod(
  3137. smalltalk.method({
  3138. selector: "id",
  3139. category: 'not yet classified',
  3140. fn: function (){
  3141. var self=this;
  3142. return smalltalk.withContext(function($ctx1) {
  3143. return "JtalkAndNode";
  3144. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndNode)})},
  3145. args: [],
  3146. source: "id\x0a\x09^'JtalkAndNode'",
  3147. messageSends: [],
  3148. referencedClasses: []
  3149. }),
  3150. smalltalk.JtalkAndNode);
  3151. smalltalk.addMethod(
  3152. smalltalk.method({
  3153. selector: "renderSlideOn:",
  3154. category: 'not yet classified',
  3155. fn: function (html){
  3156. var self=this;
  3157. return smalltalk.withContext(function($ctx1) {
  3158. var $1,$2,$3,$4;
  3159. _st(_st(html)._h1())._with_((function(){
  3160. return smalltalk.withContext(function($ctx2) {
  3161. _st(html)._with_("Jtalk and ");
  3162. $1=_st(html)._span();
  3163. _st($1)._class_("blue");
  3164. $2=_st($1)._with_("Node.js");
  3165. return $2;
  3166. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3167. _st(_st(html)._h2())._with_("Hello.st:");
  3168. _st(_st(html)._pre())._with_((function(){
  3169. return smalltalk.withContext(function($ctx2) {
  3170. $3=_st(html)._div();
  3171. _st($3)._class_("code2");
  3172. $4=_st($3)._with_("Object subclass: #Hello\x0a instanceVariableNames: ''\x0a category: 'Hello'!\x0a\x0a!Hello class methodsFor: 'main'!\x0amain\x0a\x09console log: 'Hello world from JTalk in Node.js'\x0a! !");
  3173. return $4;
  3174. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3175. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndNode)})},
  3176. args: ["html"],
  3177. source: "renderSlideOn: html\x0a\x09html h1 with: [\x0a\x09\x09html with: 'Jtalk and '.\x0a\x09\x09html span class: 'blue'; with: 'Node.js'].\x0a\x0a\x09html h2 with: 'Hello.st:'.\x0a\x09html pre with: [\x0a\x09\x09html div class: 'code2'; with: 'Object subclass: #Hello\x0a instanceVariableNames: ''''\x0a category: ''Hello''!\x0a\x0a!Hello class methodsFor: ''main''!\x0amain\x0a\x09console log: ''Hello world from JTalk in Node.js''\x0a! !']",
  3178. messageSends: ["with:", "class:", "span", "h1", "h2", "div", "pre"],
  3179. referencedClasses: []
  3180. }),
  3181. smalltalk.JtalkAndNode);
  3182. smalltalk.addClass('JtalkAndNode2', smalltalk.Slide, [], 'Presentation');
  3183. smalltalk.addMethod(
  3184. smalltalk.method({
  3185. selector: "backgroundColor",
  3186. category: 'not yet classified',
  3187. fn: function (){
  3188. var self=this;
  3189. return smalltalk.withContext(function($ctx1) {
  3190. return "#0A1";
  3191. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndNode2)})},
  3192. args: [],
  3193. source: "backgroundColor\x0a\x09^'#0A1'",
  3194. messageSends: [],
  3195. referencedClasses: []
  3196. }),
  3197. smalltalk.JtalkAndNode2);
  3198. smalltalk.addMethod(
  3199. smalltalk.method({
  3200. selector: "id",
  3201. category: 'not yet classified',
  3202. fn: function (){
  3203. var self=this;
  3204. return smalltalk.withContext(function($ctx1) {
  3205. return "JtalkAndNode2";
  3206. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndNode2)})},
  3207. args: [],
  3208. source: "id\x0a\x09^'JtalkAndNode2'",
  3209. messageSends: [],
  3210. referencedClasses: []
  3211. }),
  3212. smalltalk.JtalkAndNode2);
  3213. smalltalk.addMethod(
  3214. smalltalk.method({
  3215. selector: "renderSlideOn:",
  3216. category: 'not yet classified',
  3217. fn: function (html){
  3218. var self=this;
  3219. return smalltalk.withContext(function($ctx1) {
  3220. var $1,$2,$3,$4,$5,$6;
  3221. _st(_st(html)._h1())._with_((function(){
  3222. return smalltalk.withContext(function($ctx2) {
  3223. _st(html)._with_("Jtalk and ");
  3224. $1=_st(html)._span();
  3225. _st($1)._class_("blue");
  3226. $2=_st($1)._with_("Node.js");
  3227. return $2;
  3228. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3229. _st(_st(html)._h2())._with_("Makefile:");
  3230. _st(_st(html)._pre())._with_((function(){
  3231. return smalltalk.withContext(function($ctx2) {
  3232. $3=_st(html)._div();
  3233. _st($3)._class_("code2");
  3234. $4=_st($3)._with_("Program.js: Hello.st\x0a\x09../../bin/jtalkc -N -m Hello Hello.st Program\x0a\x0arun: Program.js\x0a\x09./hello\x0a\x0aclean:\x0a\x09rm -f Program.js Hello.js\x0a");
  3235. return $4;
  3236. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3237. _st(_st(html)._h2())._with_("hello:");
  3238. _st(_st(html)._pre())._with_((function(){
  3239. return smalltalk.withContext(function($ctx2) {
  3240. $5=_st(html)._div();
  3241. _st($5)._class_("code2");
  3242. $6=_st($5)._with_("node Program.js $@");
  3243. return $6;
  3244. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3245. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndNode2)})},
  3246. args: ["html"],
  3247. source: "renderSlideOn: html\x0a\x09html h1 with: [\x0a\x09\x09html with: 'Jtalk and '.\x0a\x09\x09html span class: 'blue'; with: 'Node.js'].\x0a\x0a\x09html h2 with: 'Makefile:'.\x0a\x09html pre with: [\x0a\x09\x09html div class: 'code2'; with: 'Program.js: Hello.st\x0a\x09../../bin/jtalkc -N -m Hello Hello.st Program\x0a\x0arun: Program.js\x0a\x09./hello\x0a\x0aclean:\x0a\x09rm -f Program.js Hello.js\x0a'].\x0ahtml h2 with: 'hello:'.\x0a\x09html pre with: [\x0a\x09\x09html div class: 'code2'; with: 'node Program.js $@']",
  3248. messageSends: ["with:", "class:", "span", "h1", "h2", "div", "pre"],
  3249. referencedClasses: []
  3250. }),
  3251. smalltalk.JtalkAndNode2);
  3252. smalltalk.addClass('JtalkAndNode3', smalltalk.Slide, [], 'Presentation');
  3253. smalltalk.addMethod(
  3254. smalltalk.method({
  3255. selector: "backgroundColor",
  3256. category: 'not yet classified',
  3257. fn: function (){
  3258. var self=this;
  3259. return smalltalk.withContext(function($ctx1) {
  3260. return "#0A1";
  3261. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndNode3)})},
  3262. args: [],
  3263. source: "backgroundColor\x0a\x09^'#0A1'",
  3264. messageSends: [],
  3265. referencedClasses: []
  3266. }),
  3267. smalltalk.JtalkAndNode3);
  3268. smalltalk.addMethod(
  3269. smalltalk.method({
  3270. selector: "id",
  3271. category: 'not yet classified',
  3272. fn: function (){
  3273. var self=this;
  3274. return smalltalk.withContext(function($ctx1) {
  3275. return "JtalkAndNode3";
  3276. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndNode3)})},
  3277. args: [],
  3278. source: "id\x0a\x09^'JtalkAndNode3'",
  3279. messageSends: [],
  3280. referencedClasses: []
  3281. }),
  3282. smalltalk.JtalkAndNode3);
  3283. smalltalk.addMethod(
  3284. smalltalk.method({
  3285. selector: "renderSlideOn:",
  3286. category: 'not yet classified',
  3287. fn: function (html){
  3288. var self=this;
  3289. return smalltalk.withContext(function($ctx1) {
  3290. var $1,$2,$3,$4,$5,$6;
  3291. _st(_st(html)._h1())._with_((function(){
  3292. return smalltalk.withContext(function($ctx2) {
  3293. _st(html)._with_("Jtalk and ");
  3294. $1=_st(html)._span();
  3295. _st($1)._class_("blue");
  3296. $2=_st($1)._with_("Node.js");
  3297. return $2;
  3298. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3299. _st(_st(html)._h2())._with_("make clean && make run:");
  3300. _st(_st(html)._pre())._with_((function(){
  3301. return smalltalk.withContext(function($ctx2) {
  3302. $3=_st(html)._div();
  3303. _st($3)._class_("code2");
  3304. $4=_st($3)._with_("rm -f Program.js Hello.js\x0a../../bin/jtalkc -N -m Hello Hello.st Program\x0aLoading libraries /home/gokr/jtalk/js/boot.js /home/gokr/jtalk/js/Kernel.js\x0a/home/gokr/jtalk/js/Parser.js /home/gokr/jtalk/js/Compiler.js\x0a/home/gokr/jtalk/js/init.js /home/gokr/jtalk/nodejs/nodecompile.js\x0aand compiling ...\x0aCompiling in debugMode: false\x0aReading file Hello.st\x0aExporting category Hello as Hello.js\x0aAdding libraries /home/gokr/jtalk/js/boot.js /home/gokr/jtalk/js/Kernel.js ...\x0aAdding Jtalk code Hello.js ...\x0aAdding initializer /home/gokr/jtalk/js/init.js ...\x0aAdding call to Hello class >> main ...\x0aWriting Program.js ...\x0aDone.\x0a./hello");
  3305. $4;
  3306. $5=_st(html)._span();
  3307. _st($5)._class_("blue");
  3308. $6=_st($5)._with_("Hello world from JTalk in Node.js");
  3309. return $6;
  3310. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3311. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndNode3)})},
  3312. args: ["html"],
  3313. source: "renderSlideOn: html\x0a\x09html h1 with: [\x0a\x09\x09html with: 'Jtalk and '.\x0a\x09\x09html span class: 'blue'; with: 'Node.js'].\x0a\x0a\x09html h2 with: 'make clean && make run:'.\x0a\x0a\x09html pre with: [\x0a\x09\x09html div class: 'code2'; with: 'rm -f Program.js Hello.js\x0a../../bin/jtalkc -N -m Hello Hello.st Program\x0aLoading libraries /home/gokr/jtalk/js/boot.js /home/gokr/jtalk/js/Kernel.js\x0a/home/gokr/jtalk/js/Parser.js /home/gokr/jtalk/js/Compiler.js\x0a/home/gokr/jtalk/js/init.js /home/gokr/jtalk/nodejs/nodecompile.js\x0aand compiling ...\x0aCompiling in debugMode: false\x0aReading file Hello.st\x0aExporting category Hello as Hello.js\x0aAdding libraries /home/gokr/jtalk/js/boot.js /home/gokr/jtalk/js/Kernel.js ...\x0aAdding Jtalk code Hello.js ...\x0aAdding initializer /home/gokr/jtalk/js/init.js ...\x0aAdding call to Hello class >> main ...\x0aWriting Program.js ...\x0aDone.\x0a./hello'.\x0ahtml span class: 'blue'; with:'Hello world from JTalk in Node.js']",
  3314. messageSends: ["with:", "class:", "span", "h1", "h2", "div", "pre"],
  3315. referencedClasses: []
  3316. }),
  3317. smalltalk.JtalkAndNode3);
  3318. smalltalk.addClass('JtalkAndWebOS', smalltalk.Slide, [], 'Presentation');
  3319. smalltalk.addMethod(
  3320. smalltalk.method({
  3321. selector: "backgroundColor",
  3322. category: 'not yet classified',
  3323. fn: function (){
  3324. var self=this;
  3325. return smalltalk.withContext(function($ctx1) {
  3326. return "#0A1";
  3327. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndWebOS)})},
  3328. args: [],
  3329. source: "backgroundColor\x0a\x09^'#0A1'",
  3330. messageSends: [],
  3331. referencedClasses: []
  3332. }),
  3333. smalltalk.JtalkAndWebOS);
  3334. smalltalk.addMethod(
  3335. smalltalk.method({
  3336. selector: "id",
  3337. category: 'not yet classified',
  3338. fn: function (){
  3339. var self=this;
  3340. return smalltalk.withContext(function($ctx1) {
  3341. return "JtalkAndWebOS";
  3342. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndWebOS)})},
  3343. args: [],
  3344. source: "id\x0a\x09^'JtalkAndWebOS'",
  3345. messageSends: [],
  3346. referencedClasses: []
  3347. }),
  3348. smalltalk.JtalkAndWebOS);
  3349. smalltalk.addMethod(
  3350. smalltalk.method({
  3351. selector: "renderSlideOn:",
  3352. category: 'not yet classified',
  3353. fn: function (html){
  3354. var self=this;
  3355. return smalltalk.withContext(function($ctx1) {
  3356. var $1,$2;
  3357. _st(_st(html)._h1())._with_((function(){
  3358. return smalltalk.withContext(function($ctx2) {
  3359. _st(html)._with_("Jtalk and ");
  3360. $1=_st(html)._span();
  3361. _st($1)._class_("blue");
  3362. $2=_st($1)._with_("webOS");
  3363. return $2;
  3364. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3365. _st(_st(html)._h2())._with_("A really cool mobile OS based on Linux:");
  3366. _st(_st(html)._ul())._with_((function(){
  3367. return smalltalk.withContext(function($ctx2) {
  3368. _st(_st(html)._li())._with_("The primary language in webOS is Javascript");
  3369. _st(_st(html)._li())._with_("The new UI framework for webOS 3.0 is called Enyo");
  3370. _st(_st(html)._li())._with_("Regular apps run in V8 + Webkit");
  3371. return _st(_st(html)._li())._with_("Background services run in Node.js");
  3372. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3373. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndWebOS)})},
  3374. args: ["html"],
  3375. source: "renderSlideOn: html\x0a\x09html h1 with: [\x0a\x09\x09html with: 'Jtalk and '.\x0a\x09\x09html span class: 'blue'; with: 'webOS'].\x0a\x0a\x09html h2 with: 'A really cool mobile OS based on Linux:'.\x0a\x0a\x09html ul with: [\x0a\x09\x09html li with: 'The primary language in webOS is Javascript'.\x0a\x09\x09html li with: 'The new UI framework for webOS 3.0 is called Enyo'.\x0a\x09\x09html li with: 'Regular apps run in V8 + Webkit'.\x0a\x09\x09html li with: 'Background services run in Node.js']",
  3376. messageSends: ["with:", "class:", "span", "h1", "h2", "li", "ul"],
  3377. referencedClasses: []
  3378. }),
  3379. smalltalk.JtalkAndWebOS);
  3380. smalltalk.addClass('JtalkFeaturesSlide', smalltalk.Slide, [], 'Presentation');
  3381. smalltalk.addMethod(
  3382. smalltalk.method({
  3383. selector: "id",
  3384. category: 'accessing',
  3385. fn: function (){
  3386. var self=this;
  3387. return smalltalk.withContext(function($ctx1) {
  3388. return "features";
  3389. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkFeaturesSlide)})},
  3390. args: [],
  3391. source: "id\x0a\x09^'features'",
  3392. messageSends: [],
  3393. referencedClasses: []
  3394. }),
  3395. smalltalk.JtalkFeaturesSlide);
  3396. smalltalk.addMethod(
  3397. smalltalk.method({
  3398. selector: "renderSlideOn:",
  3399. category: 'rendering',
  3400. fn: function (html){
  3401. var self=this;
  3402. return smalltalk.withContext(function($ctx1) {
  3403. _st(_st(html)._h1())._with_("Jtalk features");
  3404. _st(_st(html)._ul())._with_((function(){
  3405. return smalltalk.withContext(function($ctx2) {
  3406. _st(_st(html)._li())._with_("Jtalk is (mostly) written in itself, including the parser & compiler");
  3407. _st(_st(html)._li())._with_("Full Smalltalk object system, including classes & metaclasses, etc");
  3408. _st(_st(html)._li())._with_("Core libraries (streams, collections, RegExp, etc)");
  3409. _st(_st(html)._li())._with_("Web related libraries: HTML Canvas, DOM manipulation");
  3410. _st(_st(html)._li())._with_("Full featured IDE");
  3411. return _st(_st(html)._li())._with_((function(){
  3412. return smalltalk.withContext(function($ctx3) {
  3413. _st(html)._with_("Advanced Smalltalk features, including ");
  3414. _st(_st(html)._code())._with_("#doesNotUnderstand:");
  3415. _st(html)._with_(" support and ");
  3416. return _st(_st(html)._code())._with_("thisContext");
  3417. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3418. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3419. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkFeaturesSlide)})},
  3420. args: ["html"],
  3421. source: "renderSlideOn: html\x0a\x09html h1 with: 'Jtalk features'.\x0a\x09html ul with: [\x0a\x09\x09html li with: 'Jtalk is (mostly) written in itself, including the parser & compiler'.\x0a\x09\x09html li with: 'Full Smalltalk object system, including classes & metaclasses, etc'.\x0a\x09\x09html li with: 'Core libraries (streams, collections, RegExp, etc)'.\x0a\x09\x09html li with: 'Web related libraries: HTML Canvas, DOM manipulation'.\x0a\x09\x09html li with: 'Full featured IDE'.\x0a\x09\x09html li with: [\x0a\x09\x09\x09html with:'Advanced Smalltalk features, including '.\x0a\x09\x09\x09html code with: '#doesNotUnderstand:'.\x0a\x09\x09\x09html with: ' support and '.\x0a\x09\x09\x09html code with: 'thisContext']]",
  3422. messageSends: ["with:", "h1", "li", "code", "ul"],
  3423. referencedClasses: []
  3424. }),
  3425. smalltalk.JtalkFeaturesSlide);
  3426. smalltalk.addClass('SweSUGSlide', smalltalk.Slide, [], 'Presentation');
  3427. smalltalk.addMethod(
  3428. smalltalk.method({
  3429. selector: "backgroundColor",
  3430. category: 'accessing',
  3431. fn: function (){
  3432. var self=this;
  3433. return smalltalk.withContext(function($ctx1) {
  3434. return "#555";
  3435. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.SweSUGSlide)})},
  3436. args: [],
  3437. source: "backgroundColor\x0a\x09^'#555'",
  3438. messageSends: [],
  3439. referencedClasses: []
  3440. }),
  3441. smalltalk.SweSUGSlide);
  3442. smalltalk.addMethod(
  3443. smalltalk.method({
  3444. selector: "codeSnippet",
  3445. category: 'accessing',
  3446. fn: function (){
  3447. var self=this;
  3448. return smalltalk.withContext(function($ctx1) {
  3449. self._subclassResponsibility();
  3450. return self}, function($ctx1) {$ctx1.fill(self,"codeSnippet",{},smalltalk.SweSUGSlide)})},
  3451. args: [],
  3452. source: "codeSnippet\x0a\x09self subclassResponsibility",
  3453. messageSends: ["subclassResponsibility"],
  3454. referencedClasses: []
  3455. }),
  3456. smalltalk.SweSUGSlide);
  3457. smalltalk.addMethod(
  3458. smalltalk.method({
  3459. selector: "cssClass",
  3460. category: 'rendering',
  3461. fn: function (){
  3462. var self=this;
  3463. return smalltalk.withContext(function($ctx1) {
  3464. return "slide blue3d";
  3465. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.SweSUGSlide)})},
  3466. args: [],
  3467. source: "cssClass\x0a\x09^ 'slide blue3d'",
  3468. messageSends: [],
  3469. referencedClasses: []
  3470. }),
  3471. smalltalk.SweSUGSlide);
  3472. smalltalk.addMethod(
  3473. smalltalk.method({
  3474. selector: "renderCodeSnippetOn:",
  3475. category: 'rendering',
  3476. fn: function (html){
  3477. var self=this;
  3478. function $SourceArea(){return smalltalk.SourceArea||(typeof SourceArea=="undefined"?nil:SourceArea)}
  3479. return smalltalk.withContext(function($ctx1) {
  3480. var $1,$2;
  3481. $1=_st($SourceArea())._new();
  3482. _st($1)._renderOn_(html);
  3483. $2=_st($1)._editor();
  3484. _st($2)._setValue_(self._codeSnippet());
  3485. return self}, function($ctx1) {$ctx1.fill(self,"renderCodeSnippetOn:",{html:html},smalltalk.SweSUGSlide)})},
  3486. args: ["html"],
  3487. source: "renderCodeSnippetOn: html\x0a\x09(SourceArea new \x0a\x09\x09\x09renderOn: html;\x0a\x09\x09\x09editor) setValue: self codeSnippet.",
  3488. messageSends: ["setValue:", "codeSnippet", "renderOn:", "new", "editor"],
  3489. referencedClasses: ["SourceArea"]
  3490. }),
  3491. smalltalk.SweSUGSlide);
  3492. smalltalk.addMethod(
  3493. smalltalk.method({
  3494. selector: "renderSnippet:on:",
  3495. category: 'rendering',
  3496. fn: function (aString,html){
  3497. var self=this;
  3498. function $SourceArea(){return smalltalk.SourceArea||(typeof SourceArea=="undefined"?nil:SourceArea)}
  3499. return smalltalk.withContext(function($ctx1) {
  3500. var $1,$2;
  3501. $1=_st($SourceArea())._new();
  3502. _st($1)._renderOn_(html);
  3503. $2=_st($1)._editor();
  3504. _st($2)._setValue_(aString);
  3505. return self}, function($ctx1) {$ctx1.fill(self,"renderSnippet:on:",{aString:aString,html:html},smalltalk.SweSUGSlide)})},
  3506. args: ["aString", "html"],
  3507. source: "renderSnippet: aString on: html\x0a\x09(SourceArea new \x0a\x09\x09\x09renderOn: html;\x0a\x09\x09\x09editor) setValue: aString.",
  3508. messageSends: ["setValue:", "renderOn:", "new", "editor"],
  3509. referencedClasses: ["SourceArea"]
  3510. }),
  3511. smalltalk.SweSUGSlide);
  3512. smalltalk.addClass('SweSUGAboutSlide', smalltalk.SweSUGSlide, [], 'Presentation');
  3513. smalltalk.addMethod(
  3514. smalltalk.method({
  3515. selector: "backgroundColor",
  3516. category: 'accessing',
  3517. fn: function (){
  3518. var self=this;
  3519. return smalltalk.withContext(function($ctx1) {
  3520. return "#555";
  3521. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.SweSUGAboutSlide)})},
  3522. args: [],
  3523. source: "backgroundColor\x0a\x09^'#555'",
  3524. messageSends: [],
  3525. referencedClasses: []
  3526. }),
  3527. smalltalk.SweSUGAboutSlide);
  3528. smalltalk.addMethod(
  3529. smalltalk.method({
  3530. selector: "cssClass",
  3531. category: 'accessing',
  3532. fn: function (){
  3533. var self=this;
  3534. return smalltalk.withContext(function($ctx1) {
  3535. return "slide blue3d";
  3536. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.SweSUGAboutSlide)})},
  3537. args: [],
  3538. source: "cssClass\x0a\x09^ 'slide blue3d'",
  3539. messageSends: [],
  3540. referencedClasses: []
  3541. }),
  3542. smalltalk.SweSUGAboutSlide);
  3543. smalltalk.addMethod(
  3544. smalltalk.method({
  3545. selector: "id",
  3546. category: 'accessing',
  3547. fn: function (){
  3548. var self=this;
  3549. return smalltalk.withContext(function($ctx1) {
  3550. return "About";
  3551. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.SweSUGAboutSlide)})},
  3552. args: [],
  3553. source: "id\x0a\x09^'About'",
  3554. messageSends: [],
  3555. referencedClasses: []
  3556. }),
  3557. smalltalk.SweSUGAboutSlide);
  3558. smalltalk.addMethod(
  3559. smalltalk.method({
  3560. selector: "renderSlideOn:",
  3561. category: 'rendering',
  3562. fn: function (html){
  3563. var self=this;
  3564. function $Presentation(){return smalltalk.Presentation||(typeof Presentation=="undefined"?nil:Presentation)}
  3565. function $Browser(){return smalltalk.Browser||(typeof Browser=="undefined"?nil:Browser)}
  3566. return smalltalk.withContext(function($ctx1) {
  3567. var $1,$3,$4,$2;
  3568. $1=_st(html)._div();
  3569. _st($1)._class_("section center");
  3570. $2=_st($1)._with_((function(){
  3571. return smalltalk.withContext(function($ctx2) {
  3572. _st(_st(html)._h1())._with_("About this presentation");
  3573. _st(_st(html)._p())._with_("This presentation is entirely written in Amber. Lots of stuff was heavily copied from the two earlier presentations from ESUG and FOSDEM.");
  3574. _st(_st(html)._p())._with_((function(){
  3575. return smalltalk.withContext(function($ctx3) {
  3576. _st(html)._with_("Press ");
  3577. _st(_st(html)._code())._with_("←");
  3578. _st(html)._with_(" to move backward and ");
  3579. _st(_st(html)._code())._with_(" →");
  3580. return _st(html)._with_(" to move forward.");
  3581. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3582. return _st(_st(html)._p())._with_((function(){
  3583. return smalltalk.withContext(function($ctx3) {
  3584. _st(html)._with_("Open a ");
  3585. $3=_st(html)._button();
  3586. _st($3)._with_("browser");
  3587. $4=_st($3)._onClick_((function(){
  3588. return smalltalk.withContext(function($ctx4) {
  3589. return _st($Browser())._openOn_($Presentation());
  3590. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  3591. $4;
  3592. return _st(html)._with_(" to edit the source code.");
  3593. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3594. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3595. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.SweSUGAboutSlide)})},
  3596. args: ["html"],
  3597. source: "renderSlideOn: html\x0a\x09html div class: 'section center'; with: [\x0a\x09\x09html h1 with: 'About this presentation'.\x0a\x09\x09html p with: 'This presentation is entirely written in Amber. Lots of stuff was heavily copied from the two earlier presentations from ESUG and FOSDEM.'.\x0a\x09\x09html p with: [\x0a\x09\x09\x09html with: 'Press '.\x0a\x09\x09\x09html code with: '←'.\x0a\x09\x09\x09html with: ' to move backward and '.\x0a\x09\x09\x09html code with: ' →'.\x0a\x09\x09\x09html with: ' to move forward.'].\x0a\x09\x09html p with: [\x0a\x09\x09\x09html with: 'Open a '.\x0a\x09\x09\x09html button \x0a\x09\x09\x09\x09with: 'browser';\x0a\x09\x09\x09\x09onClick: [Browser openOn: Presentation].\x0a\x09\x09\x09html with: ' to edit the source code.']]",
  3598. messageSends: ["class:", "div", "with:", "h1", "p", "code", "button", "onClick:", "openOn:"],
  3599. referencedClasses: ["Presentation", "Browser"]
  3600. }),
  3601. smalltalk.SweSUGAboutSlide);
  3602. smalltalk.addClass('SweSUGAmberFeaturesSlide', smalltalk.SweSUGSlide, [], 'Presentation');
  3603. smalltalk.addMethod(
  3604. smalltalk.method({
  3605. selector: "id",
  3606. category: 'accessing',
  3607. fn: function (){
  3608. var self=this;
  3609. return smalltalk.withContext(function($ctx1) {
  3610. return "features";
  3611. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.SweSUGAmberFeaturesSlide)})},
  3612. args: [],
  3613. source: "id\x0a\x09^'features'",
  3614. messageSends: [],
  3615. referencedClasses: []
  3616. }),
  3617. smalltalk.SweSUGAmberFeaturesSlide);
  3618. smalltalk.addMethod(
  3619. smalltalk.method({
  3620. selector: "renderSlideOn:",
  3621. category: 'rendering',
  3622. fn: function (html){
  3623. var self=this;
  3624. return smalltalk.withContext(function($ctx1) {
  3625. _st(_st(html)._h1())._with_("Amber features");
  3626. _st(_st(html)._ul())._with_((function(){
  3627. return smalltalk.withContext(function($ctx2) {
  3628. _st(_st(html)._li())._with_("Amber is (mostly) written in itself, including the compiler");
  3629. _st(_st(html)._li())._with_("Full Smalltalk object system, including classes & metaclasses, etc");
  3630. _st(_st(html)._li())._with_("Core libraries (streams, collections, RegExp, etc)");
  3631. _st(_st(html)._li())._with_("Web related libraries: HTML Canvas, DOM manipulation");
  3632. _st(_st(html)._li())._with_("Very good javascript integration, both ways");
  3633. _st(_st(html)._li())._with_("Full featured IDE!");
  3634. return _st(_st(html)._li())._with_((function(){
  3635. return smalltalk.withContext(function($ctx3) {
  3636. _st(html)._with_("Advanced features, including ");
  3637. _st(_st(html)._code())._with_("#doesNotUnderstand:");
  3638. _st(html)._with_(" support and ");
  3639. return _st(_st(html)._code())._with_("thisContext");
  3640. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3641. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3642. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.SweSUGAmberFeaturesSlide)})},
  3643. args: ["html"],
  3644. source: "renderSlideOn: html\x0a\x09html h1 with: 'Amber features'.\x0a\x09html ul with: [\x0a\x09\x09html li with: 'Amber is (mostly) written in itself, including the compiler'.\x0a\x09\x09html li with: 'Full Smalltalk object system, including classes & metaclasses, etc'.\x0a\x09\x09html li with: 'Core libraries (streams, collections, RegExp, etc)'.\x0a\x09\x09html li with: 'Web related libraries: HTML Canvas, DOM manipulation'.\x0a\x09\x09html li with: 'Very good javascript integration, both ways'.\x0a\x09\x09html li with: 'Full featured IDE!'.\x0a\x09\x09html li with: [\x0a\x09\x09\x09html with:'Advanced features, including '.\x0a\x09\x09\x09html code with: '#doesNotUnderstand:'.\x0a\x09\x09\x09html with: ' support and '.\x0a\x09\x09\x09html code with: 'thisContext']]",
  3645. messageSends: ["with:", "h1", "li", "code", "ul"],
  3646. referencedClasses: []
  3647. }),
  3648. smalltalk.SweSUGAmberFeaturesSlide);
  3649. smalltalk.addClass('SweSUGIntroSlide', smalltalk.SweSUGSlide, [], 'Presentation');
  3650. smalltalk.addMethod(
  3651. smalltalk.method({
  3652. selector: "id",
  3653. category: 'not yet classified',
  3654. fn: function (){
  3655. var self=this;
  3656. return smalltalk.withContext(function($ctx1) {
  3657. return "Intro";
  3658. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.SweSUGIntroSlide)})},
  3659. args: [],
  3660. source: "id\x0a\x09^'Intro'",
  3661. messageSends: [],
  3662. referencedClasses: []
  3663. }),
  3664. smalltalk.SweSUGIntroSlide);
  3665. smalltalk.addMethod(
  3666. smalltalk.method({
  3667. selector: "renderSlideOn:",
  3668. category: 'not yet classified',
  3669. fn: function (html){
  3670. var self=this;
  3671. return smalltalk.withContext(function($ctx1) {
  3672. var $1,$2;
  3673. $1=_st(html)._div();
  3674. _st($1)._class_("section center animate");
  3675. $2=_st($1)._with_((function(){
  3676. return smalltalk.withContext(function($ctx2) {
  3677. _st(_st(html)._img())._src_("fosdem2012/images/amber.png");
  3678. _st(html)._p_(_st(self._presentation())._author());
  3679. _st(html)._p_(_st(self._presentation())._description());
  3680. return _st(html)._p_((function(){
  3681. return smalltalk.withContext(function($ctx3) {
  3682. return _st(html)._with_(_st(self._presentation())._email());
  3683. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3684. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3685. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.SweSUGIntroSlide)})},
  3686. args: ["html"],
  3687. source: "renderSlideOn: html\x0a\x09html div class: 'section center animate'; with: [\x0a\x09\x09html img src: 'fosdem2012/images/amber.png'.\x0a\x09\x09html p: self presentation author.\x0a \x09html p: self presentation description.\x0a\x09\x09html p: [\x0a\x09\x09\x09html with: self presentation email]].",
  3688. messageSends: ["class:", "div", "with:", "src:", "img", "p:", "author", "presentation", "description", "email"],
  3689. referencedClasses: []
  3690. }),
  3691. smalltalk.SweSUGIntroSlide);
  3692. smalltalk.addClass('SweSUGWhatIsAmberSlide', smalltalk.SweSUGSlide, [], 'Presentation');
  3693. smalltalk.addMethod(
  3694. smalltalk.method({
  3695. selector: "id",
  3696. category: 'accessing',
  3697. fn: function (){
  3698. var self=this;
  3699. return smalltalk.withContext(function($ctx1) {
  3700. return "WhatIsAmber";
  3701. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.SweSUGWhatIsAmberSlide)})},
  3702. args: [],
  3703. source: "id\x0a\x09^'WhatIsAmber'",
  3704. messageSends: [],
  3705. referencedClasses: []
  3706. }),
  3707. smalltalk.SweSUGWhatIsAmberSlide);
  3708. smalltalk.addMethod(
  3709. smalltalk.method({
  3710. selector: "renderSlideOn:",
  3711. category: 'rendering',
  3712. fn: function (html){
  3713. var self=this;
  3714. return smalltalk.withContext(function($ctx1) {
  3715. var $1,$3,$4,$2;
  3716. $1=_st(html)._div();
  3717. _st($1)._class_("section center");
  3718. $2=_st($1)._with_((function(){
  3719. return smalltalk.withContext(function($ctx2) {
  3720. _st(html)._img_("esug2011/images/balloon.jpg");
  3721. _st(_st(html)._h1())._with_("Amber in a nutshell");
  3722. _st(_st(html)._h2())._with_("Amber is a true Smalltalk");
  3723. _st(_st(html)._h2())._with_("It compiles to and runs on/in JavaScript");
  3724. _st(_st(html)._h2())._with_("MIT license");
  3725. $3=_st(html)._h2();
  3726. _st($3)._class_("fancy");
  3727. $4=_st($3)._with_("Amber is way cool!");
  3728. return $4;
  3729. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3730. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.SweSUGWhatIsAmberSlide)})},
  3731. args: ["html"],
  3732. source: "renderSlideOn: html\x0a\x09html div class: 'section center'; with: [\x0a\x09\x09html img: 'esug2011/images/balloon.jpg'.\x0a\x09\x09html h1 with: 'Amber in a nutshell'.\x0a\x09\x09html h2 with: 'Amber is a true Smalltalk'.\x0a\x09\x09html h2 with: 'It compiles to and runs on/in JavaScript'.\x0a\x09\x09html h2 with: 'MIT license'.\x0a\x09\x09html h2 class: 'fancy'; with: 'Amber is way cool!']",
  3733. messageSends: ["class:", "div", "with:", "img:", "h1", "h2"],
  3734. referencedClasses: []
  3735. }),
  3736. smalltalk.SweSUGWhatIsAmberSlide);
  3737. smalltalk.addClass('SweSUGWorkspaceSlide', smalltalk.SweSUGSlide, [], 'Presentation');
  3738. smalltalk.addMethod(
  3739. smalltalk.method({
  3740. selector: "backgroundColor",
  3741. category: 'accessing',
  3742. fn: function (){
  3743. var self=this;
  3744. return smalltalk.withContext(function($ctx1) {
  3745. return "#18bd7d";
  3746. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.SweSUGWorkspaceSlide)})},
  3747. args: [],
  3748. source: "backgroundColor\x0a\x09^'#18bd7d'",
  3749. messageSends: [],
  3750. referencedClasses: []
  3751. }),
  3752. smalltalk.SweSUGWorkspaceSlide);
  3753. smalltalk.addMethod(
  3754. smalltalk.method({
  3755. selector: "id",
  3756. category: 'accessing',
  3757. fn: function (){
  3758. var self=this;
  3759. return smalltalk.withContext(function($ctx1) {
  3760. return "workspace";
  3761. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.SweSUGWorkspaceSlide)})},
  3762. args: [],
  3763. source: "id\x0a\x09^'workspace'",
  3764. messageSends: [],
  3765. referencedClasses: []
  3766. }),
  3767. smalltalk.SweSUGWorkspaceSlide);
  3768. smalltalk.addMethod(
  3769. smalltalk.method({
  3770. selector: "renderSlideOn:",
  3771. category: 'accessing',
  3772. fn: function (html){
  3773. var self=this;
  3774. var workspace;
  3775. function $SourceArea(){return smalltalk.SourceArea||(typeof SourceArea=="undefined"?nil:SourceArea)}
  3776. return smalltalk.withContext(function($ctx1) {
  3777. var $1,$3,$4,$5,$6,$7,$8,$2;
  3778. workspace=_st($SourceArea())._new();
  3779. $1=_st(html)._div();
  3780. _st($1)._class_("section center");
  3781. $2=_st($1)._with_((function(){
  3782. return smalltalk.withContext(function($ctx2) {
  3783. _st(_st(html)._h1())._with_("Give Amber a try!");
  3784. _st(workspace)._renderOn_(html);
  3785. return _st(_st(html)._div())._with_((function(){
  3786. return smalltalk.withContext(function($ctx3) {
  3787. $3=_st(html)._button();
  3788. _st($3)._with_("DoIt");
  3789. $4=_st($3)._onClick_((function(){
  3790. return smalltalk.withContext(function($ctx4) {
  3791. return _st(workspace)._doIt();
  3792. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  3793. $4;
  3794. $5=_st(html)._button();
  3795. _st($5)._with_("PrintIt");
  3796. $6=_st($5)._onClick_((function(){
  3797. return smalltalk.withContext(function($ctx4) {
  3798. return _st(workspace)._printIt();
  3799. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  3800. $6;
  3801. $7=_st(html)._button();
  3802. _st($7)._with_("InspectIt");
  3803. $8=_st($7)._onClick_((function(){
  3804. return smalltalk.withContext(function($ctx4) {
  3805. return _st(workspace)._inspectIt();
  3806. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  3807. return $8;
  3808. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3809. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3810. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html,workspace:workspace},smalltalk.SweSUGWorkspaceSlide)})},
  3811. args: ["html"],
  3812. source: "renderSlideOn: html\x0a\x09| workspace |\x0a\x09workspace := SourceArea new.\x0a\x09html div class: 'section center'; with: [\x0a\x09\x09html h1 with: 'Give Amber a try!'.\x0a\x09\x09workspace renderOn: html.\x0a\x09\x09html div with: [\x0a\x09\x09\x09html button\x0a\x09\x09\x09\x09with: 'DoIt';\x0a\x09\x09\x09\x09onClick: [workspace doIt].\x0a\x09\x09\x09html button\x0a\x09\x09\x09\x09with: 'PrintIt';\x0a\x09\x09\x09\x09onClick: [workspace printIt].\x0a\x09\x09\x09html button\x0a\x09\x09\x09\x09with: 'InspectIt';\x0a\x09\x09\x09\x09onClick: [workspace inspectIt]]]",
  3813. messageSends: ["new", "class:", "div", "with:", "h1", "renderOn:", "button", "onClick:", "doIt", "printIt", "inspectIt"],
  3814. referencedClasses: ["SourceArea"]
  3815. }),
  3816. smalltalk.SweSUGWorkspaceSlide);
  3817. smalltalk.addClass('WhatIsJtalkSlide', smalltalk.Slide, [], 'Presentation');
  3818. smalltalk.addMethod(
  3819. smalltalk.method({
  3820. selector: "id",
  3821. category: 'accessing',
  3822. fn: function (){
  3823. var self=this;
  3824. return smalltalk.withContext(function($ctx1) {
  3825. return "WhatIsJtalk";
  3826. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.WhatIsJtalkSlide)})},
  3827. args: [],
  3828. source: "id\x0a\x09^'WhatIsJtalk'",
  3829. messageSends: [],
  3830. referencedClasses: []
  3831. }),
  3832. smalltalk.WhatIsJtalkSlide);
  3833. smalltalk.addMethod(
  3834. smalltalk.method({
  3835. selector: "renderSlideOn:",
  3836. category: 'rendering',
  3837. fn: function (html){
  3838. var self=this;
  3839. return smalltalk.withContext(function($ctx1) {
  3840. var $1,$3,$4,$2;
  3841. $1=_st(html)._div();
  3842. _st($1)._class_("section center");
  3843. $2=_st($1)._with_((function(){
  3844. return smalltalk.withContext(function($ctx2) {
  3845. _st(_st(html)._h1())._with_("Jtalk in a nutshell");
  3846. _st(_st(html)._h2())._with_("Jtalk is an implementation of Smalltalk");
  3847. _st(_st(html)._h2())._with_("Jtalk runs on top of the JavaScript runtime");
  3848. _st(_st(html)._h2())._with_("Jtalk is an opensource project (MIT)");
  3849. $3=_st(html)._h2();
  3850. _st($3)._class_("fancy");
  3851. $4=_st($3)._with_("Jtalk is cool!");
  3852. return $4;
  3853. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3854. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.WhatIsJtalkSlide)})},
  3855. args: ["html"],
  3856. source: "renderSlideOn: html\x0a\x09html div class: 'section center'; with: [\x0a\x09\x09html h1 with: 'Jtalk in a nutshell'.\x0a\x09\x09html h2 with: 'Jtalk is an implementation of Smalltalk'.\x0a\x09\x09html h2 with: 'Jtalk runs on top of the JavaScript runtime'.\x0a\x09\x09html h2 with: 'Jtalk is an opensource project (MIT)'.\x0a\x09\x09html h2 class: 'fancy'; with: 'Jtalk is cool!']",
  3857. messageSends: ["class:", "div", "with:", "h1", "h2"],
  3858. referencedClasses: []
  3859. }),
  3860. smalltalk.WhatIsJtalkSlide);
  3861. smalltalk.addClass('WorkspaceSlide', smalltalk.Slide, [], 'Presentation');
  3862. smalltalk.addMethod(
  3863. smalltalk.method({
  3864. selector: "backgroundColor",
  3865. category: 'accessing',
  3866. fn: function (){
  3867. var self=this;
  3868. return smalltalk.withContext(function($ctx1) {
  3869. return "#18bd7d";
  3870. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.WorkspaceSlide)})},
  3871. args: [],
  3872. source: "backgroundColor\x0a\x09^'#18bd7d'",
  3873. messageSends: [],
  3874. referencedClasses: []
  3875. }),
  3876. smalltalk.WorkspaceSlide);
  3877. smalltalk.addMethod(
  3878. smalltalk.method({
  3879. selector: "id",
  3880. category: 'accessing',
  3881. fn: function (){
  3882. var self=this;
  3883. return smalltalk.withContext(function($ctx1) {
  3884. return "workspace";
  3885. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.WorkspaceSlide)})},
  3886. args: [],
  3887. source: "id\x0a\x09^'workspace'",
  3888. messageSends: [],
  3889. referencedClasses: []
  3890. }),
  3891. smalltalk.WorkspaceSlide);
  3892. smalltalk.addMethod(
  3893. smalltalk.method({
  3894. selector: "renderSlideOn:",
  3895. category: 'accessing',
  3896. fn: function (html){
  3897. var self=this;
  3898. var workspace;
  3899. function $SourceArea(){return smalltalk.SourceArea||(typeof SourceArea=="undefined"?nil:SourceArea)}
  3900. return smalltalk.withContext(function($ctx1) {
  3901. var $1,$3,$4,$5,$6,$7,$8,$2;
  3902. workspace=_st($SourceArea())._new();
  3903. $1=_st(html)._div();
  3904. _st($1)._class_("section center");
  3905. $2=_st($1)._with_((function(){
  3906. return smalltalk.withContext(function($ctx2) {
  3907. _st(_st(html)._h1())._with_("Give Jtalk a try!");
  3908. _st(workspace)._renderOn_(html);
  3909. return _st(_st(html)._div())._with_((function(){
  3910. return smalltalk.withContext(function($ctx3) {
  3911. $3=_st(html)._button();
  3912. _st($3)._with_("DoIt");
  3913. $4=_st($3)._onClick_((function(){
  3914. return smalltalk.withContext(function($ctx4) {
  3915. return _st(workspace)._doIt();
  3916. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  3917. $4;
  3918. $5=_st(html)._button();
  3919. _st($5)._with_("PrintIt");
  3920. $6=_st($5)._onClick_((function(){
  3921. return smalltalk.withContext(function($ctx4) {
  3922. return _st(workspace)._printIt();
  3923. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  3924. $6;
  3925. $7=_st(html)._button();
  3926. _st($7)._with_("InspectIt");
  3927. $8=_st($7)._onClick_((function(){
  3928. return smalltalk.withContext(function($ctx4) {
  3929. return _st(workspace)._inspectIt();
  3930. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  3931. return $8;
  3932. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3933. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3934. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html,workspace:workspace},smalltalk.WorkspaceSlide)})},
  3935. args: ["html"],
  3936. source: "renderSlideOn: html\x0a\x09| workspace |\x0a\x09workspace := SourceArea new.\x0a\x09html div class: 'section center'; with: [\x0a\x09\x09html h1 with: 'Give Jtalk a try!'.\x0a\x09\x09workspace renderOn: html.\x0a\x09\x09html div with: [\x0a\x09\x09\x09html button\x0a\x09\x09\x09\x09with: 'DoIt';\x0a\x09\x09\x09\x09onClick: [workspace doIt].\x0a\x09\x09\x09html button\x0a\x09\x09\x09\x09with: 'PrintIt';\x0a\x09\x09\x09\x09onClick: [workspace printIt].\x0a\x09\x09\x09html button\x0a\x09\x09\x09\x09with: 'InspectIt';\x0a\x09\x09\x09\x09onClick: [workspace inspectIt]]]",
  3937. messageSends: ["new", "class:", "div", "with:", "h1", "renderOn:", "button", "onClick:", "doIt", "printIt", "inspectIt"],
  3938. referencedClasses: ["SourceArea"]
  3939. }),
  3940. smalltalk.WorkspaceSlide);
  3941. })(global_smalltalk,global_nil,global__st);