Presentation.js 197 KB

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