Presentation.js 200 KB

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