Presentation.js 198 KB

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