Presentation.deploy.js 134 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289
  1. (function(smalltalk,nil,_st){
  2. smalltalk.addPackage('Presentation');
  3. smalltalk.addClass('Presentation', smalltalk.Widget, ['currentSlide', 'slides'], 'Presentation');
  4. smalltalk.addMethod(
  5. smalltalk.method({
  6. selector: "author",
  7. 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. messageSends: []}),
  13. smalltalk.Presentation);
  14. smalltalk.addMethod(
  15. smalltalk.method({
  16. selector: "currentSlide",
  17. fn: function (){
  18. var self=this;
  19. return smalltalk.withContext(function($ctx1) {
  20. var $1;
  21. $1=self["@currentSlide"];
  22. return $1;
  23. }, function($ctx1) {$ctx1.fill(self,"currentSlide",{},smalltalk.Presentation)})},
  24. messageSends: []}),
  25. smalltalk.Presentation);
  26. smalltalk.addMethod(
  27. smalltalk.method({
  28. selector: "currentSlide:",
  29. fn: function (aSlide){
  30. var self=this;
  31. return smalltalk.withContext(function($ctx1) {
  32. self["@currentSlide"]=aSlide;
  33. return self}, function($ctx1) {$ctx1.fill(self,"currentSlide:",{aSlide:aSlide},smalltalk.Presentation)})},
  34. messageSends: []}),
  35. smalltalk.Presentation);
  36. smalltalk.addMethod(
  37. smalltalk.method({
  38. selector: "currentSlideIndex",
  39. fn: function (){
  40. var self=this;
  41. return smalltalk.withContext(function($ctx1) {
  42. var $1;
  43. $1=_st(self._slides())._indexOf_ifAbsent_(self._currentSlide(),(function(){
  44. return smalltalk.withContext(function($ctx2) {
  45. return (1);
  46. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  47. return $1;
  48. }, function($ctx1) {$ctx1.fill(self,"currentSlideIndex",{},smalltalk.Presentation)})},
  49. messageSends: ["indexOf:ifAbsent:", "currentSlide", "slides"]}),
  50. smalltalk.Presentation);
  51. smalltalk.addMethod(
  52. smalltalk.method({
  53. selector: "description",
  54. fn: function (){
  55. var self=this;
  56. return smalltalk.withContext(function($ctx1) {
  57. return "A presentation written in Jtalk";
  58. }, function($ctx1) {$ctx1.fill(self,"description",{},smalltalk.Presentation)})},
  59. messageSends: []}),
  60. smalltalk.Presentation);
  61. smalltalk.addMethod(
  62. smalltalk.method({
  63. selector: "email",
  64. fn: function (){
  65. var self=this;
  66. return smalltalk.withContext(function($ctx1) {
  67. return "john@smith.com";
  68. }, function($ctx1) {$ctx1.fill(self,"email",{},smalltalk.Presentation)})},
  69. messageSends: []}),
  70. smalltalk.Presentation);
  71. smalltalk.addMethod(
  72. smalltalk.method({
  73. selector: "initSlides",
  74. fn: function (){
  75. var self=this;
  76. return smalltalk.withContext(function($ctx1) {
  77. self["@slides"]=_st(self._slideClasses())._collect_((function(each){
  78. return smalltalk.withContext(function($ctx2) {
  79. return _st(each)._on_(self);
  80. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  81. return self}, function($ctx1) {$ctx1.fill(self,"initSlides",{},smalltalk.Presentation)})},
  82. messageSends: ["collect:", "on:", "slideClasses"]}),
  83. smalltalk.Presentation);
  84. smalltalk.addMethod(
  85. smalltalk.method({
  86. selector: "moveAt:",
  87. fn: function (anInteger){
  88. var self=this;
  89. var next;
  90. return smalltalk.withContext(function($ctx1) {
  91. var $1;
  92. next=_st(self._slides())._at_ifAbsent_(anInteger,(function(){
  93. return smalltalk.withContext(function($ctx2) {
  94. return nil;
  95. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  96. $1=next;
  97. if(($receiver = $1) == nil || $receiver == undefined){
  98. $1;
  99. } else {
  100. self["@currentSlide"]=next;
  101. self["@currentSlide"];
  102. _st(next)._show();
  103. };
  104. return self}, function($ctx1) {$ctx1.fill(self,"moveAt:",{anInteger:anInteger,next:next},smalltalk.Presentation)})},
  105. messageSends: ["at:ifAbsent:", "slides", "ifNotNil:", "show"]}),
  106. smalltalk.Presentation);
  107. smalltalk.addMethod(
  108. smalltalk.method({
  109. selector: "nextSlide",
  110. fn: function (){
  111. var self=this;
  112. var next;
  113. return smalltalk.withContext(function($ctx1) {
  114. var $1,$2;
  115. $1=self._currentSlide();
  116. if(($receiver = $1) == nil || $receiver == undefined){
  117. $1;
  118. } else {
  119. next=_st(self._slides())._at_ifAbsent_(_st(self._currentSlideIndex()).__plus((1)),(function(){
  120. return smalltalk.withContext(function($ctx2) {
  121. return nil;
  122. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  123. next;
  124. $2=next;
  125. if(($receiver = $2) == nil || $receiver == undefined){
  126. $2;
  127. } else {
  128. self["@currentSlide"]=next;
  129. self["@currentSlide"];
  130. _st(next)._show();
  131. };
  132. };
  133. return self}, function($ctx1) {$ctx1.fill(self,"nextSlide",{next:next},smalltalk.Presentation)})},
  134. messageSends: ["ifNotNil:", "at:ifAbsent:", "+", "currentSlideIndex", "slides", "show", "currentSlide"]}),
  135. smalltalk.Presentation);
  136. smalltalk.addMethod(
  137. smalltalk.method({
  138. selector: "previousSlide",
  139. fn: function (){
  140. var self=this;
  141. var next;
  142. return smalltalk.withContext(function($ctx1) {
  143. var $1,$2;
  144. $1=self._currentSlide();
  145. if(($receiver = $1) == nil || $receiver == undefined){
  146. $1;
  147. } else {
  148. next=_st(self._slides())._at_ifAbsent_(_st(self._currentSlideIndex()).__minus((1)),(function(){
  149. return smalltalk.withContext(function($ctx2) {
  150. return nil;
  151. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  152. next;
  153. $2=next;
  154. if(($receiver = $2) == nil || $receiver == undefined){
  155. $2;
  156. } else {
  157. self["@currentSlide"]=next;
  158. self["@currentSlide"];
  159. _st(next)._show();
  160. };
  161. };
  162. return self}, function($ctx1) {$ctx1.fill(self,"previousSlide",{next:next},smalltalk.Presentation)})},
  163. messageSends: ["ifNotNil:", "at:ifAbsent:", "-", "currentSlideIndex", "slides", "show", "currentSlide"]}),
  164. smalltalk.Presentation);
  165. smalltalk.addMethod(
  166. smalltalk.method({
  167. selector: "renderOn:",
  168. fn: function (html){
  169. var self=this;
  170. return smalltalk.withContext(function($ctx1) {
  171. var $1,$2,$3,$4;
  172. $1=_st(html)._style();
  173. _st($1)._type_("text/css");
  174. $2=_st($1)._with_(self._style());
  175. $3=_st(html)._div();
  176. _st($3)._id_("slides");
  177. $4=_st($3)._with_((function(){
  178. return smalltalk.withContext(function($ctx2) {
  179. return self._renderSlidesOn_(html);
  180. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  181. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.Presentation)})},
  182. messageSends: ["type:", "style", "with:", "id:", "div", "renderSlidesOn:"]}),
  183. smalltalk.Presentation);
  184. smalltalk.addMethod(
  185. smalltalk.method({
  186. selector: "renderSlidesOn:",
  187. fn: function (html){
  188. var self=this;
  189. return smalltalk.withContext(function($ctx1) {
  190. var $1;
  191. _st(self._slides())._do_((function(each){
  192. return smalltalk.withContext(function($ctx2) {
  193. return _st(each)._renderOn_(html);
  194. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  195. $1=self["@currentSlide"];
  196. if(($receiver = $1) == nil || $receiver == undefined){
  197. self["@currentSlide"]=_st(self._slides())._first();
  198. self["@currentSlide"];
  199. } else {
  200. $1;
  201. };
  202. self._showCurrentSlide();
  203. return self}, function($ctx1) {$ctx1.fill(self,"renderSlidesOn:",{html:html},smalltalk.Presentation)})},
  204. messageSends: ["do:", "renderOn:", "slides", "ifNil:", "first", "showCurrentSlide"]}),
  205. smalltalk.Presentation);
  206. smalltalk.addMethod(
  207. smalltalk.method({
  208. selector: "showCurrentSlide",
  209. fn: function (){
  210. var self=this;
  211. return smalltalk.withContext(function($ctx1) {
  212. var $1;
  213. $1=self._currentSlide();
  214. if(($receiver = $1) == nil || $receiver == undefined){
  215. $1;
  216. } else {
  217. _st(".slide"._asJQuery())._hide();
  218. _st(_st("#".__comma(_st(self._currentSlide())._id()))._asJQuery())._show();
  219. _st("title"._asJQuery())._text_(_st(_st(self._title()).__comma(" - ")).__comma(_st(self._currentSlide())._id()));
  220. };
  221. return self}, function($ctx1) {$ctx1.fill(self,"showCurrentSlide",{},smalltalk.Presentation)})},
  222. messageSends: ["ifNotNil:", "hide", "asJQuery", "show", ",", "id", "currentSlide", "text:", "title"]}),
  223. smalltalk.Presentation);
  224. smalltalk.addMethod(
  225. smalltalk.method({
  226. selector: "slideClasses",
  227. fn: function (){
  228. var self=this;
  229. return smalltalk.withContext(function($ctx1) {
  230. var $1;
  231. $1=self._subclassResponsibility();
  232. return $1;
  233. }, function($ctx1) {$ctx1.fill(self,"slideClasses",{},smalltalk.Presentation)})},
  234. messageSends: ["subclassResponsibility"]}),
  235. smalltalk.Presentation);
  236. smalltalk.addMethod(
  237. smalltalk.method({
  238. selector: "slideTransition",
  239. fn: function (){
  240. var self=this;
  241. return smalltalk.withContext(function($ctx1) {
  242. return "fade";
  243. }, function($ctx1) {$ctx1.fill(self,"slideTransition",{},smalltalk.Presentation)})},
  244. messageSends: []}),
  245. smalltalk.Presentation);
  246. smalltalk.addMethod(
  247. smalltalk.method({
  248. selector: "slides",
  249. fn: function (){
  250. var self=this;
  251. return smalltalk.withContext(function($ctx1) {
  252. var $1,$2;
  253. $1=self["@slides"];
  254. if(($receiver = $1) == nil || $receiver == undefined){
  255. self._initSlides();
  256. } else {
  257. $1;
  258. };
  259. $2=self["@slides"];
  260. return $2;
  261. }, function($ctx1) {$ctx1.fill(self,"slides",{},smalltalk.Presentation)})},
  262. messageSends: ["ifNil:", "initSlides"]}),
  263. smalltalk.Presentation);
  264. smalltalk.addMethod(
  265. smalltalk.method({
  266. selector: "slidesDo:",
  267. fn: function (aBlockWithArg){
  268. var self=this;
  269. return smalltalk.withContext(function($ctx1) {
  270. _st(self._slides())._do_((function(aSlide){
  271. return smalltalk.withContext(function($ctx2) {
  272. return _st(aBlockWithArg)._value_(aSlide);
  273. }, function($ctx2) {$ctx2.fillBlock({aSlide:aSlide},$ctx1)})}));
  274. return self}, function($ctx1) {$ctx1.fill(self,"slidesDo:",{aBlockWithArg:aBlockWithArg},smalltalk.Presentation)})},
  275. messageSends: ["do:", "value:", "slides"]}),
  276. smalltalk.Presentation);
  277. smalltalk.addMethod(
  278. smalltalk.method({
  279. selector: "style",
  280. fn: function (){
  281. var self=this;
  282. return smalltalk.withContext(function($ctx1) {
  283. return "";
  284. }, function($ctx1) {$ctx1.fill(self,"style",{},smalltalk.Presentation)})},
  285. messageSends: []}),
  286. smalltalk.Presentation);
  287. smalltalk.addMethod(
  288. smalltalk.method({
  289. selector: "title",
  290. fn: function (){
  291. var self=this;
  292. return smalltalk.withContext(function($ctx1) {
  293. var $1;
  294. $1=_st(self._class())._title();
  295. return $1;
  296. }, function($ctx1) {$ctx1.fill(self,"title",{},smalltalk.Presentation)})},
  297. messageSends: ["title", "class"]}),
  298. smalltalk.Presentation);
  299. smalltalk.addMethod(
  300. smalltalk.method({
  301. selector: "url",
  302. fn: function (){
  303. var self=this;
  304. return smalltalk.withContext(function($ctx1) {
  305. return "http://jtalk-project.org";
  306. }, function($ctx1) {$ctx1.fill(self,"url",{},smalltalk.Presentation)})},
  307. messageSends: []}),
  308. smalltalk.Presentation);
  309. smalltalk.Presentation.klass.iVarNames = ['current'];
  310. smalltalk.addMethod(
  311. smalltalk.method({
  312. selector: "concretePresentations",
  313. fn: function (){
  314. var self=this;
  315. return smalltalk.withContext(function($ctx1) {
  316. var $1;
  317. $1=_st(self._allSubclasses())._select_((function(aPresentationClass){
  318. return smalltalk.withContext(function($ctx2) {
  319. return _st(aPresentationClass)._isConcrete();
  320. }, function($ctx2) {$ctx2.fillBlock({aPresentationClass:aPresentationClass},$ctx1)})}));
  321. return $1;
  322. }, function($ctx1) {$ctx1.fill(self,"concretePresentations",{},smalltalk.Presentation.klass)})},
  323. messageSends: ["select:", "isConcrete", "allSubclasses"]}),
  324. smalltalk.Presentation.klass);
  325. smalltalk.addMethod(
  326. smalltalk.method({
  327. selector: "concretePresentationsDo:",
  328. fn: function (aBlockWithArg){
  329. var self=this;
  330. return smalltalk.withContext(function($ctx1) {
  331. _st(self._concretePresentations())._do_(aBlockWithArg);
  332. return self}, function($ctx1) {$ctx1.fill(self,"concretePresentationsDo:",{aBlockWithArg:aBlockWithArg},smalltalk.Presentation.klass)})},
  333. messageSends: ["do:", "concretePresentations"]}),
  334. smalltalk.Presentation.klass);
  335. smalltalk.addMethod(
  336. smalltalk.method({
  337. selector: "isConcrete",
  338. fn: function (){
  339. var self=this;
  340. return smalltalk.withContext(function($ctx1) {
  341. return false;
  342. }, function($ctx1) {$ctx1.fill(self,"isConcrete",{},smalltalk.Presentation.klass)})},
  343. messageSends: []}),
  344. smalltalk.Presentation.klass);
  345. smalltalk.addMethod(
  346. smalltalk.method({
  347. selector: "title",
  348. fn: function (){
  349. var self=this;
  350. return smalltalk.withContext(function($ctx1) {
  351. return "Slides";
  352. }, function($ctx1) {$ctx1.fill(self,"title",{},smalltalk.Presentation.klass)})},
  353. messageSends: []}),
  354. smalltalk.Presentation.klass);
  355. smalltalk.addClass('ESUG2011Presentation', smalltalk.Presentation, [], 'Presentation');
  356. smalltalk.addMethod(
  357. smalltalk.method({
  358. selector: "author",
  359. fn: function (){
  360. var self=this;
  361. return smalltalk.withContext(function($ctx1) {
  362. return "Nicolas Petton";
  363. }, function($ctx1) {$ctx1.fill(self,"author",{},smalltalk.ESUG2011Presentation)})},
  364. messageSends: []}),
  365. smalltalk.ESUG2011Presentation);
  366. smalltalk.addMethod(
  367. smalltalk.method({
  368. selector: "description",
  369. fn: function (){
  370. var self=this;
  371. return smalltalk.withContext(function($ctx1) {
  372. return "ESUG 2011, Edinburgh";
  373. }, function($ctx1) {$ctx1.fill(self,"description",{},smalltalk.ESUG2011Presentation)})},
  374. messageSends: []}),
  375. smalltalk.ESUG2011Presentation);
  376. smalltalk.addMethod(
  377. smalltalk.method({
  378. selector: "email",
  379. fn: function (){
  380. var self=this;
  381. return smalltalk.withContext(function($ctx1) {
  382. return "nico@objectfusion.fr";
  383. }, function($ctx1) {$ctx1.fill(self,"email",{},smalltalk.ESUG2011Presentation)})},
  384. messageSends: []}),
  385. smalltalk.ESUG2011Presentation);
  386. smalltalk.addMethod(
  387. smalltalk.method({
  388. selector: "slideClasses",
  389. fn: function (){
  390. var self=this;
  391. function $IntroSlide(){return smalltalk.IntroSlide||(typeof IntroSlide=="undefined"?nil:IntroSlide)}
  392. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  393. function $AboutSlide(){return smalltalk.AboutSlide||(typeof AboutSlide=="undefined"?nil:AboutSlide)}
  394. function $WhatIsJtalkSlide(){return smalltalk.WhatIsJtalkSlide||(typeof WhatIsJtalkSlide=="undefined"?nil:WhatIsJtalkSlide)}
  395. function $JtalkFeaturesSlide(){return smalltalk.JtalkFeaturesSlide||(typeof JtalkFeaturesSlide=="undefined"?nil:JtalkFeaturesSlide)}
  396. function $WorkspaceSlide(){return smalltalk.WorkspaceSlide||(typeof WorkspaceSlide=="undefined"?nil:WorkspaceSlide)}
  397. function $IDESlide(){return smalltalk.IDESlide||(typeof IDESlide=="undefined"?nil:IDESlide)}
  398. function $CountersSlide(){return smalltalk.CountersSlide||(typeof CountersSlide=="undefined"?nil:CountersSlide)}
  399. function $JtalkAndJavascriptSlide(){return smalltalk.JtalkAndJavascriptSlide||(typeof JtalkAndJavascriptSlide=="undefined"?nil:JtalkAndJavascriptSlide)}
  400. function $JtalkAndJavascriptSlide2(){return smalltalk.JtalkAndJavascriptSlide2||(typeof JtalkAndJavascriptSlide2=="undefined"?nil:JtalkAndJavascriptSlide2)}
  401. function $JtalkAndJavascriptSlide3(){return smalltalk.JtalkAndJavascriptSlide3||(typeof JtalkAndJavascriptSlide3=="undefined"?nil:JtalkAndJavascriptSlide3)}
  402. function $JtalkAndJavascriptSlide4(){return smalltalk.JtalkAndJavascriptSlide4||(typeof JtalkAndJavascriptSlide4=="undefined"?nil:JtalkAndJavascriptSlide4)}
  403. function $JtalkAndCLI(){return smalltalk.JtalkAndCLI||(typeof JtalkAndCLI=="undefined"?nil:JtalkAndCLI)}
  404. function $JtalkAndNode(){return smalltalk.JtalkAndNode||(typeof JtalkAndNode=="undefined"?nil:JtalkAndNode)}
  405. function $JtalkAndNode2(){return smalltalk.JtalkAndNode2||(typeof JtalkAndNode2=="undefined"?nil:JtalkAndNode2)}
  406. function $JtalkAndNode3(){return smalltalk.JtalkAndNode3||(typeof JtalkAndNode3=="undefined"?nil:JtalkAndNode3)}
  407. function $JtalkAndWebOS(){return smalltalk.JtalkAndWebOS||(typeof JtalkAndWebOS=="undefined"?nil:JtalkAndWebOS)}
  408. function $JtalkAndEnyo(){return smalltalk.JtalkAndEnyo||(typeof JtalkAndEnyo=="undefined"?nil:JtalkAndEnyo)}
  409. function $ContributionsSlide(){return smalltalk.ContributionsSlide||(typeof ContributionsSlide=="undefined"?nil:ContributionsSlide)}
  410. return smalltalk.withContext(function($ctx1) {
  411. var $2,$3,$1;
  412. $2=_st($Array())._new();
  413. _st($2)._add_($IntroSlide());
  414. _st($2)._add_($AboutSlide());
  415. _st($2)._add_($WhatIsJtalkSlide());
  416. _st($2)._add_($JtalkFeaturesSlide());
  417. _st($2)._add_($WorkspaceSlide());
  418. _st($2)._add_($IDESlide());
  419. _st($2)._add_($CountersSlide());
  420. _st($2)._add_($JtalkAndJavascriptSlide());
  421. _st($2)._add_($JtalkAndJavascriptSlide2());
  422. _st($2)._add_($JtalkAndJavascriptSlide3());
  423. _st($2)._add_($JtalkAndJavascriptSlide4());
  424. _st($2)._add_($JtalkAndCLI());
  425. _st($2)._add_($JtalkAndNode());
  426. _st($2)._add_($JtalkAndNode2());
  427. _st($2)._add_($JtalkAndNode3());
  428. _st($2)._add_($JtalkAndWebOS());
  429. _st($2)._add_($JtalkAndEnyo());
  430. _st($2)._add_($ContributionsSlide());
  431. $3=_st($2)._yourself();
  432. $1=$3;
  433. return $1;
  434. }, function($ctx1) {$ctx1.fill(self,"slideClasses",{},smalltalk.ESUG2011Presentation)})},
  435. messageSends: ["add:", "new", "yourself"]}),
  436. smalltalk.ESUG2011Presentation);
  437. smalltalk.addMethod(
  438. smalltalk.method({
  439. selector: "style",
  440. fn: function (){
  441. var self=this;
  442. return smalltalk.withContext(function($ctx1) {
  443. 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";
  444. }, function($ctx1) {$ctx1.fill(self,"style",{},smalltalk.ESUG2011Presentation)})},
  445. messageSends: []}),
  446. smalltalk.ESUG2011Presentation);
  447. smalltalk.addMethod(
  448. smalltalk.method({
  449. selector: "url",
  450. fn: function (){
  451. var self=this;
  452. return smalltalk.withContext(function($ctx1) {
  453. return "http://jtalk-project.org";
  454. }, function($ctx1) {$ctx1.fill(self,"url",{},smalltalk.ESUG2011Presentation)})},
  455. messageSends: []}),
  456. smalltalk.ESUG2011Presentation);
  457. smalltalk.ESUG2011Presentation.klass.iVarNames = ['current'];
  458. smalltalk.addMethod(
  459. smalltalk.method({
  460. selector: "isConcrete",
  461. fn: function (){
  462. var self=this;
  463. return smalltalk.withContext(function($ctx1) {
  464. return true;
  465. }, function($ctx1) {$ctx1.fill(self,"isConcrete",{},smalltalk.ESUG2011Presentation.klass)})},
  466. messageSends: []}),
  467. smalltalk.ESUG2011Presentation.klass);
  468. smalltalk.addMethod(
  469. smalltalk.method({
  470. selector: "title",
  471. fn: function (){
  472. var self=this;
  473. return smalltalk.withContext(function($ctx1) {
  474. return "Jtalk";
  475. }, function($ctx1) {$ctx1.fill(self,"title",{},smalltalk.ESUG2011Presentation.klass)})},
  476. messageSends: []}),
  477. smalltalk.ESUG2011Presentation.klass);
  478. smalltalk.addClass('FOSDEM2012Presentation', smalltalk.Presentation, [], 'Presentation');
  479. smalltalk.addMethod(
  480. smalltalk.method({
  481. selector: "author",
  482. fn: function (){
  483. var self=this;
  484. return smalltalk.withContext(function($ctx1) {
  485. return "Laurent Laffont, Johnny Thornton";
  486. }, function($ctx1) {$ctx1.fill(self,"author",{},smalltalk.FOSDEM2012Presentation)})},
  487. messageSends: []}),
  488. smalltalk.FOSDEM2012Presentation);
  489. smalltalk.addMethod(
  490. smalltalk.method({
  491. selector: "description",
  492. fn: function (){
  493. var self=this;
  494. return smalltalk.withContext(function($ctx1) {
  495. return "FOSDEM 2012, Brussels";
  496. }, function($ctx1) {$ctx1.fill(self,"description",{},smalltalk.FOSDEM2012Presentation)})},
  497. messageSends: []}),
  498. smalltalk.FOSDEM2012Presentation);
  499. smalltalk.addMethod(
  500. smalltalk.method({
  501. selector: "email",
  502. fn: function (){
  503. var self=this;
  504. return smalltalk.withContext(function($ctx1) {
  505. return "laurent.laffont@gmail.com, johnnyt@xan.do";
  506. }, function($ctx1) {$ctx1.fill(self,"email",{},smalltalk.FOSDEM2012Presentation)})},
  507. messageSends: []}),
  508. smalltalk.FOSDEM2012Presentation);
  509. smalltalk.addMethod(
  510. smalltalk.method({
  511. selector: "slideClasses",
  512. fn: function (){
  513. var self=this;
  514. function $FOSDEMIntroSlide(){return smalltalk.FOSDEMIntroSlide||(typeof FOSDEMIntroSlide=="undefined"?nil:FOSDEMIntroSlide)}
  515. function $FOSDEMAmberZeroNine(){return smalltalk.FOSDEMAmberZeroNine||(typeof FOSDEMAmberZeroNine=="undefined"?nil:FOSDEMAmberZeroNine)}
  516. function $CountersSlide(){return smalltalk.CountersSlide||(typeof CountersSlide=="undefined"?nil:CountersSlide)}
  517. function $IDESlide(){return smalltalk.IDESlide||(typeof IDESlide=="undefined"?nil:IDESlide)}
  518. function $JtalkAndJavascriptSlide(){return smalltalk.JtalkAndJavascriptSlide||(typeof JtalkAndJavascriptSlide=="undefined"?nil:JtalkAndJavascriptSlide)}
  519. function $FOSDEMJSPlayGroundSlide(){return smalltalk.FOSDEMJSPlayGroundSlide||(typeof FOSDEMJSPlayGroundSlide=="undefined"?nil:FOSDEMJSPlayGroundSlide)}
  520. function $FOSDEMJSToSmalltalk(){return smalltalk.FOSDEMJSToSmalltalk||(typeof FOSDEMJSToSmalltalk=="undefined"?nil:FOSDEMJSToSmalltalk)}
  521. function $FOSDEMBookletSlide(){return smalltalk.FOSDEMBookletSlide||(typeof FOSDEMBookletSlide=="undefined"?nil:FOSDEMBookletSlide)}
  522. function $FOSDEMTwitter(){return smalltalk.FOSDEMTwitter||(typeof FOSDEMTwitter=="undefined"?nil:FOSDEMTwitter)}
  523. function $FOSDEMCanvasSlide(){return smalltalk.FOSDEMCanvasSlide||(typeof FOSDEMCanvasSlide=="undefined"?nil:FOSDEMCanvasSlide)}
  524. function $FOSDEMAmberBackend(){return smalltalk.FOSDEMAmberBackend||(typeof FOSDEMAmberBackend=="undefined"?nil:FOSDEMAmberBackend)}
  525. function $FOSDEMREPLSlide(){return smalltalk.FOSDEMREPLSlide||(typeof FOSDEMREPLSlide=="undefined"?nil:FOSDEMREPLSlide)}
  526. function $FOSDEMCLISlide(){return smalltalk.FOSDEMCLISlide||(typeof FOSDEMCLISlide=="undefined"?nil:FOSDEMCLISlide)}
  527. function $FOSDEMContributionsSlide(){return smalltalk.FOSDEMContributionsSlide||(typeof FOSDEMContributionsSlide=="undefined"?nil:FOSDEMContributionsSlide)}
  528. return smalltalk.withContext(function($ctx1) {
  529. var $1;
  530. $1=[$FOSDEMIntroSlide(),$FOSDEMAmberZeroNine(),$CountersSlide(),$IDESlide(),$JtalkAndJavascriptSlide(),$FOSDEMJSPlayGroundSlide(),$FOSDEMJSToSmalltalk(),$FOSDEMBookletSlide(),$FOSDEMTwitter(),$FOSDEMCanvasSlide(),$FOSDEMAmberBackend(),$FOSDEMREPLSlide(),$FOSDEMCLISlide(),$FOSDEMContributionsSlide()];
  531. return $1;
  532. }, function($ctx1) {$ctx1.fill(self,"slideClasses",{},smalltalk.FOSDEM2012Presentation)})},
  533. messageSends: []}),
  534. smalltalk.FOSDEM2012Presentation);
  535. smalltalk.addMethod(
  536. smalltalk.method({
  537. selector: "style",
  538. fn: function (){
  539. var self=this;
  540. return smalltalk.withContext(function($ctx1) {
  541. 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";
  542. }, function($ctx1) {$ctx1.fill(self,"style",{},smalltalk.FOSDEM2012Presentation)})},
  543. messageSends: []}),
  544. smalltalk.FOSDEM2012Presentation);
  545. smalltalk.addMethod(
  546. smalltalk.method({
  547. selector: "url",
  548. fn: function (){
  549. var self=this;
  550. return smalltalk.withContext(function($ctx1) {
  551. return "http://amber-lang.net";
  552. }, function($ctx1) {$ctx1.fill(self,"url",{},smalltalk.FOSDEM2012Presentation)})},
  553. messageSends: []}),
  554. smalltalk.FOSDEM2012Presentation);
  555. smalltalk.addMethod(
  556. smalltalk.method({
  557. selector: "isConcrete",
  558. fn: function (){
  559. var self=this;
  560. return smalltalk.withContext(function($ctx1) {
  561. return true;
  562. }, function($ctx1) {$ctx1.fill(self,"isConcrete",{},smalltalk.FOSDEM2012Presentation.klass)})},
  563. messageSends: []}),
  564. smalltalk.FOSDEM2012Presentation.klass);
  565. smalltalk.addMethod(
  566. smalltalk.method({
  567. selector: "title",
  568. fn: function (){
  569. var self=this;
  570. return smalltalk.withContext(function($ctx1) {
  571. return "Amber";
  572. }, function($ctx1) {$ctx1.fill(self,"title",{},smalltalk.FOSDEM2012Presentation.klass)})},
  573. messageSends: []}),
  574. smalltalk.FOSDEM2012Presentation.klass);
  575. smalltalk.addClass('SweSUG2012Presentation', smalltalk.Presentation, [], 'Presentation');
  576. smalltalk.addMethod(
  577. smalltalk.method({
  578. selector: "author",
  579. fn: function (){
  580. var self=this;
  581. return smalltalk.withContext(function($ctx1) {
  582. return "Göran Krampe";
  583. }, function($ctx1) {$ctx1.fill(self,"author",{},smalltalk.SweSUG2012Presentation)})},
  584. messageSends: []}),
  585. smalltalk.SweSUG2012Presentation);
  586. smalltalk.addMethod(
  587. smalltalk.method({
  588. selector: "description",
  589. fn: function (){
  590. var self=this;
  591. return smalltalk.withContext(function($ctx1) {
  592. return "SweSUG 2012, Stockholm";
  593. }, function($ctx1) {$ctx1.fill(self,"description",{},smalltalk.SweSUG2012Presentation)})},
  594. messageSends: []}),
  595. smalltalk.SweSUG2012Presentation);
  596. smalltalk.addMethod(
  597. smalltalk.method({
  598. selector: "email",
  599. fn: function (){
  600. var self=this;
  601. return smalltalk.withContext(function($ctx1) {
  602. return "goran@krampe.se";
  603. }, function($ctx1) {$ctx1.fill(self,"email",{},smalltalk.SweSUG2012Presentation)})},
  604. messageSends: []}),
  605. smalltalk.SweSUG2012Presentation);
  606. smalltalk.addMethod(
  607. smalltalk.method({
  608. selector: "slideClasses",
  609. fn: function (){
  610. var self=this;
  611. function $SweSUGIntroSlide(){return smalltalk.SweSUGIntroSlide||(typeof SweSUGIntroSlide=="undefined"?nil:SweSUGIntroSlide)}
  612. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  613. function $SweSUGAboutSlide(){return smalltalk.SweSUGAboutSlide||(typeof SweSUGAboutSlide=="undefined"?nil:SweSUGAboutSlide)}
  614. function $SweSUGWhatIsAmberSlide(){return smalltalk.SweSUGWhatIsAmberSlide||(typeof SweSUGWhatIsAmberSlide=="undefined"?nil:SweSUGWhatIsAmberSlide)}
  615. function $SweSUGAmberFeaturesSlide(){return smalltalk.SweSUGAmberFeaturesSlide||(typeof SweSUGAmberFeaturesSlide=="undefined"?nil:SweSUGAmberFeaturesSlide)}
  616. function $SweSUGWorkspaceSlide(){return smalltalk.SweSUGWorkspaceSlide||(typeof SweSUGWorkspaceSlide=="undefined"?nil:SweSUGWorkspaceSlide)}
  617. function $IDESlide(){return smalltalk.IDESlide||(typeof IDESlide=="undefined"?nil:IDESlide)}
  618. function $CountersSlide(){return smalltalk.CountersSlide||(typeof CountersSlide=="undefined"?nil:CountersSlide)}
  619. function $JtalkAndJavascriptSlide(){return smalltalk.JtalkAndJavascriptSlide||(typeof JtalkAndJavascriptSlide=="undefined"?nil:JtalkAndJavascriptSlide)}
  620. function $JtalkAndJavascriptSlide2(){return smalltalk.JtalkAndJavascriptSlide2||(typeof JtalkAndJavascriptSlide2=="undefined"?nil:JtalkAndJavascriptSlide2)}
  621. function $JtalkAndJavascriptSlide3(){return smalltalk.JtalkAndJavascriptSlide3||(typeof JtalkAndJavascriptSlide3=="undefined"?nil:JtalkAndJavascriptSlide3)}
  622. function $JtalkAndJavascriptSlide4(){return smalltalk.JtalkAndJavascriptSlide4||(typeof JtalkAndJavascriptSlide4=="undefined"?nil:JtalkAndJavascriptSlide4)}
  623. function $JtalkAndCLI(){return smalltalk.JtalkAndCLI||(typeof JtalkAndCLI=="undefined"?nil:JtalkAndCLI)}
  624. function $JtalkAndNode(){return smalltalk.JtalkAndNode||(typeof JtalkAndNode=="undefined"?nil:JtalkAndNode)}
  625. function $JtalkAndNode2(){return smalltalk.JtalkAndNode2||(typeof JtalkAndNode2=="undefined"?nil:JtalkAndNode2)}
  626. function $JtalkAndNode3(){return smalltalk.JtalkAndNode3||(typeof JtalkAndNode3=="undefined"?nil:JtalkAndNode3)}
  627. function $JtalkAndWebOS(){return smalltalk.JtalkAndWebOS||(typeof JtalkAndWebOS=="undefined"?nil:JtalkAndWebOS)}
  628. function $JtalkAndEnyo(){return smalltalk.JtalkAndEnyo||(typeof JtalkAndEnyo=="undefined"?nil:JtalkAndEnyo)}
  629. function $ContributionsSlide(){return smalltalk.ContributionsSlide||(typeof ContributionsSlide=="undefined"?nil:ContributionsSlide)}
  630. return smalltalk.withContext(function($ctx1) {
  631. var $2,$3,$1;
  632. $2=_st($Array())._new();
  633. _st($2)._add_($SweSUGIntroSlide());
  634. _st($2)._add_($SweSUGAboutSlide());
  635. _st($2)._add_($SweSUGWhatIsAmberSlide());
  636. _st($2)._add_($SweSUGAmberFeaturesSlide());
  637. _st($2)._add_($SweSUGWorkspaceSlide());
  638. _st($2)._add_($IDESlide());
  639. _st($2)._add_($CountersSlide());
  640. _st($2)._add_($JtalkAndJavascriptSlide());
  641. _st($2)._add_($JtalkAndJavascriptSlide2());
  642. _st($2)._add_($JtalkAndJavascriptSlide3());
  643. _st($2)._add_($JtalkAndJavascriptSlide4());
  644. _st($2)._add_($JtalkAndCLI());
  645. _st($2)._add_($JtalkAndNode());
  646. _st($2)._add_($JtalkAndNode2());
  647. _st($2)._add_($JtalkAndNode3());
  648. _st($2)._add_($JtalkAndWebOS());
  649. _st($2)._add_($JtalkAndEnyo());
  650. _st($2)._add_($ContributionsSlide());
  651. $3=_st($2)._yourself();
  652. $1=$3;
  653. return $1;
  654. }, function($ctx1) {$ctx1.fill(self,"slideClasses",{},smalltalk.SweSUG2012Presentation)})},
  655. messageSends: ["add:", "new", "yourself"]}),
  656. smalltalk.SweSUG2012Presentation);
  657. smalltalk.addMethod(
  658. smalltalk.method({
  659. selector: "style",
  660. fn: function (){
  661. var self=this;
  662. return smalltalk.withContext(function($ctx1) {
  663. 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";
  664. }, function($ctx1) {$ctx1.fill(self,"style",{},smalltalk.SweSUG2012Presentation)})},
  665. messageSends: []}),
  666. smalltalk.SweSUG2012Presentation);
  667. smalltalk.addMethod(
  668. smalltalk.method({
  669. selector: "url",
  670. fn: function (){
  671. var self=this;
  672. return smalltalk.withContext(function($ctx1) {
  673. return "http://www.amber-lang.net";
  674. }, function($ctx1) {$ctx1.fill(self,"url",{},smalltalk.SweSUG2012Presentation)})},
  675. messageSends: []}),
  676. smalltalk.SweSUG2012Presentation);
  677. smalltalk.addMethod(
  678. smalltalk.method({
  679. selector: "isConcrete",
  680. fn: function (){
  681. var self=this;
  682. return smalltalk.withContext(function($ctx1) {
  683. return true;
  684. }, function($ctx1) {$ctx1.fill(self,"isConcrete",{},smalltalk.SweSUG2012Presentation.klass)})},
  685. messageSends: []}),
  686. smalltalk.SweSUG2012Presentation.klass);
  687. smalltalk.addMethod(
  688. smalltalk.method({
  689. selector: "title",
  690. fn: function (){
  691. var self=this;
  692. return smalltalk.withContext(function($ctx1) {
  693. return "Amber rocks!";
  694. }, function($ctx1) {$ctx1.fill(self,"title",{},smalltalk.SweSUG2012Presentation.klass)})},
  695. messageSends: []}),
  696. smalltalk.SweSUG2012Presentation.klass);
  697. smalltalk.addClass('PresentationNavigator', smalltalk.Widget, ['presentationBrush', 'currentPresentation', 'slideSelect'], 'Presentation');
  698. smalltalk.addMethod(
  699. smalltalk.method({
  700. selector: "checkHash",
  701. fn: function (){
  702. var self=this;
  703. var hash,presentation;
  704. function $Presentation(){return smalltalk.Presentation||(typeof Presentation=="undefined"?nil:Presentation)}
  705. return smalltalk.withContext(function($ctx1) {
  706. var $1,$2;
  707. var $early={};
  708. try {
  709. hash=_st(_st(_st(_st(document)._location())._hash())._replace_with_("^#",""))._tokenize_("-");
  710. presentation=_st(_st($Presentation())._concretePresentations())._detect_ifNone_((function(aPresentationClass){
  711. return smalltalk.withContext(function($ctx2) {
  712. return _st(_st(aPresentationClass)._name()).__eq_eq(_st(hash)._first());
  713. }, function($ctx2) {$ctx2.fillBlock({aPresentationClass:aPresentationClass},$ctx1)})}),(function(){
  714. return smalltalk.withContext(function($ctx2) {
  715. $1=self;
  716. throw $early=[$1];
  717. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  718. $2=_st(presentation).__eq_eq(_st(self._currentPresentation())._class());
  719. if(! smalltalk.assert($2)){
  720. self._selectPresentationNamed_(presentation);
  721. self._selectSlideAt_(_st(hash)._last());
  722. };
  723. return self}
  724. catch(e) {if(e===$early)return e[0]; throw e}
  725. }, function($ctx1) {$ctx1.fill(self,"checkHash",{hash:hash,presentation:presentation},smalltalk.PresentationNavigator)})},
  726. messageSends: ["tokenize:", "replace:with:", "hash", "location", "detect:ifNone:", "==", "first", "name", "concretePresentations", "ifFalse:", "selectPresentationNamed:", "selectSlideAt:", "last", "class", "currentPresentation"]}),
  727. smalltalk.PresentationNavigator);
  728. smalltalk.addMethod(
  729. smalltalk.method({
  730. selector: "checkHashChange",
  731. fn: function (){
  732. var self=this;
  733. return smalltalk.withContext(function($ctx1) {
  734. _st(_st(window)._jQuery_(window))._bind_do_("hashchange",(function(){
  735. return smalltalk.withContext(function($ctx2) {
  736. return self._checkHash();
  737. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  738. return self}, function($ctx1) {$ctx1.fill(self,"checkHashChange",{},smalltalk.PresentationNavigator)})},
  739. messageSends: ["bind:do:", "checkHash", "jQuery:"]}),
  740. smalltalk.PresentationNavigator);
  741. smalltalk.addMethod(
  742. smalltalk.method({
  743. selector: "currentPresentation",
  744. fn: function (){
  745. var self=this;
  746. function $Presentation(){return smalltalk.Presentation||(typeof Presentation=="undefined"?nil:Presentation)}
  747. return smalltalk.withContext(function($ctx1) {
  748. var $2,$1;
  749. $2=self["@currentPresentation"];
  750. if(($receiver = $2) == nil || $receiver == undefined){
  751. self["@currentPresentation"]=_st(_st(_st($Presentation())._concretePresentations())._first())._new();
  752. $1=self["@currentPresentation"];
  753. } else {
  754. $1=$2;
  755. };
  756. return $1;
  757. }, function($ctx1) {$ctx1.fill(self,"currentPresentation",{},smalltalk.PresentationNavigator)})},
  758. messageSends: ["ifNil:", "new", "first", "concretePresentations"]}),
  759. smalltalk.PresentationNavigator);
  760. smalltalk.addMethod(
  761. smalltalk.method({
  762. selector: "currentPresentation:",
  763. fn: function (aPresentation){
  764. var self=this;
  765. return smalltalk.withContext(function($ctx1) {
  766. self["@currentPresentation"]=aPresentation;
  767. return self}, function($ctx1) {$ctx1.fill(self,"currentPresentation:",{aPresentation:aPresentation},smalltalk.PresentationNavigator)})},
  768. messageSends: []}),
  769. smalltalk.PresentationNavigator);
  770. smalltalk.addMethod(
  771. smalltalk.method({
  772. selector: "nextSlide",
  773. fn: function (){
  774. var self=this;
  775. return smalltalk.withContext(function($ctx1) {
  776. _st(self._currentPresentation())._nextSlide();
  777. self._updateHash();
  778. return self}, function($ctx1) {$ctx1.fill(self,"nextSlide",{},smalltalk.PresentationNavigator)})},
  779. messageSends: ["nextSlide", "currentPresentation", "updateHash"]}),
  780. smalltalk.PresentationNavigator);
  781. smalltalk.addMethod(
  782. smalltalk.method({
  783. selector: "open",
  784. fn: function (){
  785. var self=this;
  786. return smalltalk.withContext(function($ctx1) {
  787. var $1,$2;
  788. _st(_st(window)._jQuery_(document))._ready_((function(){
  789. return smalltalk.withContext(function($ctx2) {
  790. $1=self;
  791. _st($1)._appendToJQuery_("body"._asJQuery());
  792. _st($1)._setKeybindings();
  793. $2=_st($1)._checkHashChange();
  794. return $2;
  795. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  796. return self}, function($ctx1) {$ctx1.fill(self,"open",{},smalltalk.PresentationNavigator)})},
  797. messageSends: ["ready:", "appendToJQuery:", "asJQuery", "setKeybindings", "checkHashChange", "jQuery:"]}),
  798. smalltalk.PresentationNavigator);
  799. smalltalk.addMethod(
  800. smalltalk.method({
  801. selector: "previousSlide",
  802. fn: function (){
  803. var self=this;
  804. return smalltalk.withContext(function($ctx1) {
  805. _st(self._currentPresentation())._previousSlide();
  806. self._updateHash();
  807. return self}, function($ctx1) {$ctx1.fill(self,"previousSlide",{},smalltalk.PresentationNavigator)})},
  808. messageSends: ["previousSlide", "currentPresentation", "updateHash"]}),
  809. smalltalk.PresentationNavigator);
  810. smalltalk.addMethod(
  811. smalltalk.method({
  812. selector: "reload",
  813. fn: function (){
  814. var self=this;
  815. var slideIndex;
  816. return smalltalk.withContext(function($ctx1) {
  817. slideIndex=_st(self._currentPresentation())._currentSlideIndex();
  818. self._currentPresentation_(_st(_st(self._currentPresentation())._class())._new());
  819. self._renderCurrentPresentation();
  820. self._selectSlideAt_(slideIndex);
  821. return self}, function($ctx1) {$ctx1.fill(self,"reload",{slideIndex:slideIndex},smalltalk.PresentationNavigator)})},
  822. messageSends: ["currentSlideIndex", "currentPresentation", "currentPresentation:", "new", "class", "renderCurrentPresentation", "selectSlideAt:"]}),
  823. smalltalk.PresentationNavigator);
  824. smalltalk.addMethod(
  825. smalltalk.method({
  826. selector: "renderCurrentPresentation",
  827. fn: function (){
  828. var self=this;
  829. return smalltalk.withContext(function($ctx1) {
  830. _st(self["@presentationBrush"])._contents_((function(html){
  831. return smalltalk.withContext(function($ctx2) {
  832. return _st(self._currentPresentation())._renderOn_(html);
  833. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}));
  834. self._updateSlideSelect();
  835. return self}, function($ctx1) {$ctx1.fill(self,"renderCurrentPresentation",{},smalltalk.PresentationNavigator)})},
  836. messageSends: ["contents:", "renderOn:", "currentPresentation", "updateSlideSelect"]}),
  837. smalltalk.PresentationNavigator);
  838. smalltalk.addMethod(
  839. smalltalk.method({
  840. selector: "renderOn:",
  841. fn: function (html){
  842. var self=this;
  843. return smalltalk.withContext(function($ctx1) {
  844. var $1,$2,$3,$5,$6,$4,$7,$8;
  845. $1=_st(html)._style();
  846. _st($1)._type_("text/css");
  847. $2=_st($1)._with_(self._style());
  848. $3=_st(html)._div();
  849. _st($3)._id_("navigator");
  850. $4=_st($3)._with_((function(){
  851. return smalltalk.withContext(function($ctx2) {
  852. $5=self;
  853. _st($5)._renderToolsOn_(html);
  854. _st($5)._renderPresentationSelectOn_(html);
  855. $6=_st($5)._renderSlideSelectOn_(html);
  856. return $6;
  857. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  858. $7=_st(html)._div();
  859. _st($7)._id_("presentation");
  860. $8=_st($7)._yourself();
  861. self["@presentationBrush"]=$8;
  862. self._checkHash();
  863. self._renderCurrentPresentation();
  864. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.PresentationNavigator)})},
  865. messageSends: ["type:", "style", "with:", "id:", "div", "renderToolsOn:", "renderPresentationSelectOn:", "renderSlideSelectOn:", "yourself", "checkHash", "renderCurrentPresentation"]}),
  866. smalltalk.PresentationNavigator);
  867. smalltalk.addMethod(
  868. smalltalk.method({
  869. selector: "renderPresentationSelectOn:",
  870. fn: function (html){
  871. var self=this;
  872. var presentationSelect;
  873. function $Presentation(){return smalltalk.Presentation||(typeof Presentation=="undefined"?nil:Presentation)}
  874. return smalltalk.withContext(function($ctx1) {
  875. var $1,$3,$4,$2;
  876. presentationSelect=_st(html)._select();
  877. $1=presentationSelect;
  878. _st($1)._onChange_((function(){
  879. return smalltalk.withContext(function($ctx2) {
  880. return self._selectPresentationNamed_(_st(_st(presentationSelect)._asJQuery())._val());
  881. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  882. $2=_st($1)._with_((function(){
  883. return smalltalk.withContext(function($ctx2) {
  884. return _st($Presentation())._concretePresentationsDo_((function(aPresentationClass){
  885. return smalltalk.withContext(function($ctx3) {
  886. $3=_st(html)._option();
  887. _st($3)._value_(_st(aPresentationClass)._name());
  888. $4=_st($3)._with_(_st(aPresentationClass)._title());
  889. return $4;
  890. }, function($ctx3) {$ctx3.fillBlock({aPresentationClass:aPresentationClass},$ctx2)})}));
  891. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  892. return self}, function($ctx1) {$ctx1.fill(self,"renderPresentationSelectOn:",{html:html,presentationSelect:presentationSelect},smalltalk.PresentationNavigator)})},
  893. messageSends: ["select", "onChange:", "selectPresentationNamed:", "val", "asJQuery", "with:", "concretePresentationsDo:", "value:", "name", "option", "title"]}),
  894. smalltalk.PresentationNavigator);
  895. smalltalk.addMethod(
  896. smalltalk.method({
  897. selector: "renderSlideSelectOn:",
  898. fn: function (html){
  899. var self=this;
  900. return smalltalk.withContext(function($ctx1) {
  901. self["@slideSelect"]=_st(html)._select();
  902. _st(self["@slideSelect"])._onChange_((function(){
  903. return smalltalk.withContext(function($ctx2) {
  904. return self._selectSlideAt_(_st(_st(self["@slideSelect"])._asJQuery())._val());
  905. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  906. self._updateSlideSelect();
  907. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideSelectOn:",{html:html},smalltalk.PresentationNavigator)})},
  908. messageSends: ["select", "onChange:", "selectSlideAt:", "val", "asJQuery", "updateSlideSelect"]}),
  909. smalltalk.PresentationNavigator);
  910. smalltalk.addMethod(
  911. smalltalk.method({
  912. selector: "renderToolsOn:",
  913. fn: function (html){
  914. var self=this;
  915. function $TabManager(){return smalltalk.TabManager||(typeof TabManager=="undefined"?nil:TabManager)}
  916. return smalltalk.withContext(function($ctx1) {
  917. var $1,$2,$3,$4,$5,$6,$7,$8;
  918. $1=_st(html)._a();
  919. _st($1)._with_("IDE");
  920. $2=_st($1)._onClick_((function(){
  921. return smalltalk.withContext(function($ctx2) {
  922. return _st(_st($TabManager())._current())._open();
  923. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  924. $3=_st(html)._a();
  925. _st($3)._with_("Reload");
  926. $4=_st($3)._onClick_((function(){
  927. return smalltalk.withContext(function($ctx2) {
  928. return self._reload();
  929. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  930. $5=_st(html)._a();
  931. _st($5)._with_("←");
  932. $6=_st($5)._onClick_((function(){
  933. return smalltalk.withContext(function($ctx2) {
  934. return self._previousSlide();
  935. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  936. $7=_st(html)._a();
  937. _st($7)._with_("→");
  938. $8=_st($7)._onClick_((function(){
  939. return smalltalk.withContext(function($ctx2) {
  940. return self._nextSlide();
  941. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  942. return self}, function($ctx1) {$ctx1.fill(self,"renderToolsOn:",{html:html},smalltalk.PresentationNavigator)})},
  943. messageSends: ["with:", "a", "onClick:", "open", "current", "reload", "previousSlide", "nextSlide"]}),
  944. smalltalk.PresentationNavigator);
  945. smalltalk.addMethod(
  946. smalltalk.method({
  947. selector: "selectPresentation:",
  948. fn: function (aPresentationClass){
  949. var self=this;
  950. return smalltalk.withContext(function($ctx1) {
  951. self._currentPresentation_(_st(aPresentationClass)._new());
  952. self._renderCurrentPresentation();
  953. return self}, function($ctx1) {$ctx1.fill(self,"selectPresentation:",{aPresentationClass:aPresentationClass},smalltalk.PresentationNavigator)})},
  954. messageSends: ["currentPresentation:", "new", "renderCurrentPresentation"]}),
  955. smalltalk.PresentationNavigator);
  956. smalltalk.addMethod(
  957. smalltalk.method({
  958. selector: "selectPresentationNamed:",
  959. fn: function (aString){
  960. var self=this;
  961. var presentationClass;
  962. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  963. return smalltalk.withContext(function($ctx1) {
  964. var $1;
  965. presentationClass=_st(_st($Smalltalk())._current())._at_(aString);
  966. $1=presentationClass;
  967. if(($receiver = $1) == nil || $receiver == undefined){
  968. $1;
  969. } else {
  970. self._selectPresentation_(presentationClass);
  971. };
  972. return self}, function($ctx1) {$ctx1.fill(self,"selectPresentationNamed:",{aString:aString,presentationClass:presentationClass},smalltalk.PresentationNavigator)})},
  973. messageSends: ["at:", "current", "ifNotNil:", "selectPresentation:"]}),
  974. smalltalk.PresentationNavigator);
  975. smalltalk.addMethod(
  976. smalltalk.method({
  977. selector: "selectSlideAt:",
  978. fn: function (anInteger){
  979. var self=this;
  980. return smalltalk.withContext(function($ctx1) {
  981. _st(self._currentPresentation())._moveAt_(anInteger);
  982. self._updateHash();
  983. return self}, function($ctx1) {$ctx1.fill(self,"selectSlideAt:",{anInteger:anInteger},smalltalk.PresentationNavigator)})},
  984. messageSends: ["moveAt:", "currentPresentation", "updateHash"]}),
  985. smalltalk.PresentationNavigator);
  986. smalltalk.addMethod(
  987. smalltalk.method({
  988. selector: "setKeybindings",
  989. fn: function (){
  990. var self=this;
  991. return smalltalk.withContext(function($ctx1) {
  992. var $1,$2,$3;
  993. _st(_st(window)._jQuery_(document))._keyup_((function(e){
  994. var node;
  995. return smalltalk.withContext(function($ctx2) {
  996. node=_st(_st(_st(e)._target())._nodeName())._asLowercase();
  997. node;
  998. $1=_st(_st(node).__eq("textarea"))._or_((function(){
  999. return smalltalk.withContext(function($ctx3) {
  1000. return _st(node).__eq("input");
  1001. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1002. if(! smalltalk.assert($1)){
  1003. $2=_st(_st(e)._keyCode()).__eq((39));
  1004. if(smalltalk.assert($2)){
  1005. self._nextSlide();
  1006. };
  1007. $3=_st(_st(e)._keyCode()).__eq((37));
  1008. if(smalltalk.assert($3)){
  1009. return self._previousSlide();
  1010. };
  1011. };
  1012. }, function($ctx2) {$ctx2.fillBlock({e:e,node:node},$ctx1)})}));
  1013. return self}, function($ctx1) {$ctx1.fill(self,"setKeybindings",{},smalltalk.PresentationNavigator)})},
  1014. messageSends: ["keyup:", "asLowercase", "nodeName", "target", "ifFalse:", "ifTrue:", "nextSlide", "=", "keyCode", "previousSlide", "or:", "jQuery:"]}),
  1015. smalltalk.PresentationNavigator);
  1016. smalltalk.addMethod(
  1017. smalltalk.method({
  1018. selector: "style",
  1019. fn: function (){
  1020. var self=this;
  1021. return smalltalk.withContext(function($ctx1) {
  1022. 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";
  1023. }, function($ctx1) {$ctx1.fill(self,"style",{},smalltalk.PresentationNavigator)})},
  1024. messageSends: []}),
  1025. smalltalk.PresentationNavigator);
  1026. smalltalk.addMethod(
  1027. smalltalk.method({
  1028. selector: "updateHash",
  1029. fn: function (){
  1030. var self=this;
  1031. return smalltalk.withContext(function($ctx1) {
  1032. _st(_st(document)._location())._hash_(_st(_st(_st(_st(self._currentPresentation())._class())._name()).__comma("-")).__comma(_st(self._currentPresentation())._currentSlideIndex()));
  1033. return self}, function($ctx1) {$ctx1.fill(self,"updateHash",{},smalltalk.PresentationNavigator)})},
  1034. messageSends: ["hash:", ",", "currentSlideIndex", "currentPresentation", "name", "class", "location"]}),
  1035. smalltalk.PresentationNavigator);
  1036. smalltalk.addMethod(
  1037. smalltalk.method({
  1038. selector: "updateSlideSelect",
  1039. fn: function (){
  1040. var self=this;
  1041. return smalltalk.withContext(function($ctx1) {
  1042. var $1,$2;
  1043. _st(self["@slideSelect"])._contents_((function(html){
  1044. var index;
  1045. return smalltalk.withContext(function($ctx2) {
  1046. index=(0);
  1047. index;
  1048. return _st(self._currentPresentation())._slidesDo_((function(aSlide){
  1049. return smalltalk.withContext(function($ctx3) {
  1050. index=_st(index).__plus((1));
  1051. index;
  1052. $1=_st(html)._option();
  1053. _st($1)._value_(index);
  1054. $2=_st($1)._with_(_st(aSlide)._title());
  1055. return $2;
  1056. }, function($ctx3) {$ctx3.fillBlock({aSlide:aSlide},$ctx2)})}));
  1057. }, function($ctx2) {$ctx2.fillBlock({html:html,index:index},$ctx1)})}));
  1058. return self}, function($ctx1) {$ctx1.fill(self,"updateSlideSelect",{},smalltalk.PresentationNavigator)})},
  1059. messageSends: ["contents:", "slidesDo:", "+", "value:", "option", "with:", "title", "currentPresentation"]}),
  1060. smalltalk.PresentationNavigator);
  1061. smalltalk.addMethod(
  1062. smalltalk.method({
  1063. selector: "initialize",
  1064. fn: function (){
  1065. var self=this;
  1066. return smalltalk.withContext(function($ctx1) {
  1067. var $1;
  1068. $1=self._open();
  1069. return $1;
  1070. }, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.PresentationNavigator.klass)})},
  1071. messageSends: ["open"]}),
  1072. smalltalk.PresentationNavigator.klass);
  1073. smalltalk.addMethod(
  1074. smalltalk.method({
  1075. selector: "open",
  1076. fn: function (){
  1077. var self=this;
  1078. return smalltalk.withContext(function($ctx1) {
  1079. var $1;
  1080. $1=_st(self._new())._open();
  1081. return $1;
  1082. }, function($ctx1) {$ctx1.fill(self,"open",{},smalltalk.PresentationNavigator.klass)})},
  1083. messageSends: ["open", "new"]}),
  1084. smalltalk.PresentationNavigator.klass);
  1085. smalltalk.addClass('Slide', smalltalk.Widget, ['presentation'], 'Presentation');
  1086. smalltalk.addMethod(
  1087. smalltalk.method({
  1088. selector: "backgroundColor",
  1089. fn: function (){
  1090. var self=this;
  1091. return smalltalk.withContext(function($ctx1) {
  1092. return "#555";
  1093. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.Slide)})},
  1094. messageSends: []}),
  1095. smalltalk.Slide);
  1096. smalltalk.addMethod(
  1097. smalltalk.method({
  1098. selector: "cssClass",
  1099. fn: function (){
  1100. var self=this;
  1101. return smalltalk.withContext(function($ctx1) {
  1102. return "slide";
  1103. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.Slide)})},
  1104. messageSends: []}),
  1105. smalltalk.Slide);
  1106. smalltalk.addMethod(
  1107. smalltalk.method({
  1108. selector: "id",
  1109. fn: function (){
  1110. var self=this;
  1111. return smalltalk.withContext(function($ctx1) {
  1112. var $1;
  1113. $1=_st(self._class())._name();
  1114. return $1;
  1115. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.Slide)})},
  1116. messageSends: ["name", "class"]}),
  1117. smalltalk.Slide);
  1118. smalltalk.addMethod(
  1119. smalltalk.method({
  1120. selector: "presentation",
  1121. fn: function (){
  1122. var self=this;
  1123. return smalltalk.withContext(function($ctx1) {
  1124. var $1;
  1125. $1=self["@presentation"];
  1126. return $1;
  1127. }, function($ctx1) {$ctx1.fill(self,"presentation",{},smalltalk.Slide)})},
  1128. messageSends: []}),
  1129. smalltalk.Slide);
  1130. smalltalk.addMethod(
  1131. smalltalk.method({
  1132. selector: "presentation:",
  1133. fn: function (aPresentation){
  1134. var self=this;
  1135. return smalltalk.withContext(function($ctx1) {
  1136. self["@presentation"]=aPresentation;
  1137. return self}, function($ctx1) {$ctx1.fill(self,"presentation:",{aPresentation:aPresentation},smalltalk.Slide)})},
  1138. messageSends: []}),
  1139. smalltalk.Slide);
  1140. smalltalk.addMethod(
  1141. smalltalk.method({
  1142. selector: "renderMetaOn:",
  1143. fn: function (html){
  1144. var self=this;
  1145. return smalltalk.withContext(function($ctx1) {
  1146. var $1,$3,$4,$5,$6,$7,$8,$9,$10,$2;
  1147. $1=_st(html)._div();
  1148. _st($1)._id_("meta");
  1149. $2=_st($1)._with_((function(){
  1150. return smalltalk.withContext(function($ctx2) {
  1151. $3=_st(html)._p();
  1152. _st($3)._class_("title");
  1153. $4=_st($3)._with_(_st(self._presentation())._title());
  1154. $4;
  1155. $5=_st(html)._p();
  1156. _st($5)._class_("description");
  1157. $6=_st($5)._with_(_st(self._presentation())._description());
  1158. $6;
  1159. $7=_st(html)._a();
  1160. _st($7)._class_("author");
  1161. _st($7)._with_(_st(self._presentation())._author());
  1162. $8=_st($7)._href_("mailto:".__comma(_st(self._presentation())._email()));
  1163. $8;
  1164. $9=_st(html)._a();
  1165. _st($9)._class_("url");
  1166. _st($9)._with_(_st(self._presentation())._url());
  1167. $10=_st($9)._href_(_st(self._presentation())._url());
  1168. return $10;
  1169. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1170. return self}, function($ctx1) {$ctx1.fill(self,"renderMetaOn:",{html:html},smalltalk.Slide)})},
  1171. messageSends: ["id:", "div", "with:", "class:", "p", "title", "presentation", "description", "a", "author", "href:", ",", "email", "url"]}),
  1172. smalltalk.Slide);
  1173. smalltalk.addMethod(
  1174. smalltalk.method({
  1175. selector: "renderOn:",
  1176. fn: function (html){
  1177. var self=this;
  1178. return smalltalk.withContext(function($ctx1) {
  1179. var $1,$2;
  1180. $1=_st(html)._div();
  1181. _st($1)._class_(self._cssClass());
  1182. _st($1)._id_(self._id());
  1183. $2=_st($1)._with_((function(){
  1184. return smalltalk.withContext(function($ctx2) {
  1185. self._renderSlideOn_(html);
  1186. return self._renderMetaOn_(html);
  1187. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1188. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.Slide)})},
  1189. messageSends: ["class:", "cssClass", "div", "id:", "id", "with:", "renderSlideOn:", "renderMetaOn:"]}),
  1190. smalltalk.Slide);
  1191. smalltalk.addMethod(
  1192. smalltalk.method({
  1193. selector: "renderSlideOn:",
  1194. fn: function (html){
  1195. var self=this;
  1196. return smalltalk.withContext(function($ctx1) {
  1197. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.Slide)})},
  1198. messageSends: []}),
  1199. smalltalk.Slide);
  1200. smalltalk.addMethod(
  1201. smalltalk.method({
  1202. selector: "show",
  1203. fn: function (){
  1204. var self=this;
  1205. return smalltalk.withContext(function($ctx1) {
  1206. var $1;
  1207. $1=self._backgroundColor();
  1208. if(($receiver = $1) == nil || $receiver == undefined){
  1209. $1;
  1210. } else {
  1211. _st(_st(window)._jQuery_("#slides"))._css_color_("background",self._backgroundColor());
  1212. };
  1213. _st(_st(window)._jQuery_(".slide"))._hide_options_duration_(_st(self._presentation())._slideTransition(),[],(300));
  1214. _st(_st(window)._jQuery_("#".__comma(self._id())))._show_options_duration_(_st(self._presentation())._slideTransition(),[],(300));
  1215. return self}, function($ctx1) {$ctx1.fill(self,"show",{},smalltalk.Slide)})},
  1216. messageSends: ["ifNotNil:", "css:color:", "backgroundColor", "jQuery:", "hide:options:duration:", "slideTransition", "presentation", "show:options:duration:", ",", "id"]}),
  1217. smalltalk.Slide);
  1218. smalltalk.addMethod(
  1219. smalltalk.method({
  1220. selector: "title",
  1221. fn: function (){
  1222. var self=this;
  1223. return smalltalk.withContext(function($ctx1) {
  1224. var $1;
  1225. $1=self._id();
  1226. return $1;
  1227. }, function($ctx1) {$ctx1.fill(self,"title",{},smalltalk.Slide)})},
  1228. messageSends: ["id"]}),
  1229. smalltalk.Slide);
  1230. smalltalk.addMethod(
  1231. smalltalk.method({
  1232. selector: "on:",
  1233. fn: function (aPresentation){
  1234. var self=this;
  1235. return smalltalk.withContext(function($ctx1) {
  1236. var $2,$3,$1;
  1237. $2=self._new();
  1238. _st($2)._presentation_(aPresentation);
  1239. $3=_st($2)._yourself();
  1240. $1=$3;
  1241. return $1;
  1242. }, function($ctx1) {$ctx1.fill(self,"on:",{aPresentation:aPresentation},smalltalk.Slide.klass)})},
  1243. messageSends: ["presentation:", "new", "yourself"]}),
  1244. smalltalk.Slide.klass);
  1245. smalltalk.addClass('AboutSlide', smalltalk.Slide, [], 'Presentation');
  1246. smalltalk.addMethod(
  1247. smalltalk.method({
  1248. selector: "backgroundColor",
  1249. fn: function (){
  1250. var self=this;
  1251. return smalltalk.withContext(function($ctx1) {
  1252. return "white";
  1253. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.AboutSlide)})},
  1254. messageSends: []}),
  1255. smalltalk.AboutSlide);
  1256. smalltalk.addMethod(
  1257. smalltalk.method({
  1258. selector: "cssClass",
  1259. fn: function (){
  1260. var self=this;
  1261. return smalltalk.withContext(function($ctx1) {
  1262. return "slide transparent white";
  1263. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.AboutSlide)})},
  1264. messageSends: []}),
  1265. smalltalk.AboutSlide);
  1266. smalltalk.addMethod(
  1267. smalltalk.method({
  1268. selector: "id",
  1269. fn: function (){
  1270. var self=this;
  1271. return smalltalk.withContext(function($ctx1) {
  1272. return "about";
  1273. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.AboutSlide)})},
  1274. messageSends: []}),
  1275. smalltalk.AboutSlide);
  1276. smalltalk.addMethod(
  1277. smalltalk.method({
  1278. selector: "renderSlideOn:",
  1279. fn: function (html){
  1280. var self=this;
  1281. function $Presentation(){return smalltalk.Presentation||(typeof Presentation=="undefined"?nil:Presentation)}
  1282. function $Browser(){return smalltalk.Browser||(typeof Browser=="undefined"?nil:Browser)}
  1283. return smalltalk.withContext(function($ctx1) {
  1284. var $1,$3,$4,$2;
  1285. $1=_st(html)._div();
  1286. _st($1)._class_("section center");
  1287. $2=_st($1)._with_((function(){
  1288. return smalltalk.withContext(function($ctx2) {
  1289. _st(_st(html)._h1())._with_("About this presentation");
  1290. _st(_st(html)._p())._with_("This presentation is entirely written in Jtalk and is licensed under CC BY-SA.");
  1291. _st(_st(html)._p())._with_((function(){
  1292. return smalltalk.withContext(function($ctx3) {
  1293. _st(html)._with_("Press ");
  1294. _st(_st(html)._code())._with_("←");
  1295. _st(html)._with_(" to move backward and ");
  1296. _st(_st(html)._code())._with_(" →");
  1297. return _st(html)._with_(" to move forward.");
  1298. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1299. return _st(_st(html)._p())._with_((function(){
  1300. return smalltalk.withContext(function($ctx3) {
  1301. _st(html)._with_("Open a ");
  1302. $3=_st(html)._button();
  1303. _st($3)._with_("browser");
  1304. $4=_st($3)._onClick_((function(){
  1305. return smalltalk.withContext(function($ctx4) {
  1306. return _st($Browser())._openOn_($Presentation());
  1307. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  1308. $4;
  1309. return _st(html)._with_(" to edit the source code.");
  1310. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1311. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1312. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.AboutSlide)})},
  1313. messageSends: ["class:", "div", "with:", "h1", "p", "code", "button", "onClick:", "openOn:"]}),
  1314. smalltalk.AboutSlide);
  1315. smalltalk.addClass('ContributionsSlide', smalltalk.Slide, [], 'Presentation');
  1316. smalltalk.addMethod(
  1317. smalltalk.method({
  1318. selector: "id",
  1319. fn: function (){
  1320. var self=this;
  1321. return smalltalk.withContext(function($ctx1) {
  1322. return "links";
  1323. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.ContributionsSlide)})},
  1324. messageSends: []}),
  1325. smalltalk.ContributionsSlide);
  1326. smalltalk.addMethod(
  1327. smalltalk.method({
  1328. selector: "renderSlideOn:",
  1329. fn: function (html){
  1330. var self=this;
  1331. return smalltalk.withContext(function($ctx1) {
  1332. var $1,$3,$4,$5,$6,$7,$8,$2;
  1333. $1=_st(html)._div();
  1334. _st($1)._class_("section");
  1335. $2=_st($1)._with_((function(){
  1336. return smalltalk.withContext(function($ctx2) {
  1337. _st(_st(html)._p())._with_((function(){
  1338. return smalltalk.withContext(function($ctx3) {
  1339. $3=_st(html)._a();
  1340. _st($3)._href_("http://jtalk-project.org");
  1341. $4=_st($3)._with_("jtalk-project.org");
  1342. return $4;
  1343. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1344. _st(_st(html)._p())._with_((function(){
  1345. return smalltalk.withContext(function($ctx3) {
  1346. $5=_st(html)._a();
  1347. _st($5)._href_("https://github.com/NicolasPetton/jtalk");
  1348. $6=_st($5)._with_("github.com/NicolasPetton/jtalk");
  1349. return $6;
  1350. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1351. return _st(_st(html)._p())._with_((function(){
  1352. return smalltalk.withContext(function($ctx3) {
  1353. $7=_st(html)._a();
  1354. _st($7)._href_("http://http://groups.google.com/group/jtalk-project");
  1355. $8=_st($7)._with_("groups.google.com/group/jtalk-project");
  1356. return $8;
  1357. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1358. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1359. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.ContributionsSlide)})},
  1360. messageSends: ["class:", "div", "with:", "href:", "a", "p"]}),
  1361. smalltalk.ContributionsSlide);
  1362. smalltalk.addClass('CountersSlide', smalltalk.Slide, [], 'Presentation');
  1363. smalltalk.addMethod(
  1364. smalltalk.method({
  1365. selector: "backgroundColor",
  1366. fn: function (){
  1367. var self=this;
  1368. return smalltalk.withContext(function($ctx1) {
  1369. return "#18bd7d";
  1370. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.CountersSlide)})},
  1371. messageSends: []}),
  1372. smalltalk.CountersSlide);
  1373. smalltalk.addMethod(
  1374. smalltalk.method({
  1375. selector: "id",
  1376. fn: function (){
  1377. var self=this;
  1378. return smalltalk.withContext(function($ctx1) {
  1379. return "counters";
  1380. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.CountersSlide)})},
  1381. messageSends: []}),
  1382. smalltalk.CountersSlide);
  1383. smalltalk.addMethod(
  1384. smalltalk.method({
  1385. selector: "renderSlideOn:",
  1386. fn: function (html){
  1387. var self=this;
  1388. function $Counter(){return smalltalk.Counter||(typeof Counter=="undefined"?nil:Counter)}
  1389. return smalltalk.withContext(function($ctx1) {
  1390. var $1,$2;
  1391. $1=_st(html)._div();
  1392. _st($1)._class_("section center");
  1393. $2=_st($1)._with_((function(){
  1394. return smalltalk.withContext(function($ctx2) {
  1395. _st(_st(html)._h1())._with_("The counter example");
  1396. return _st(_st(html)._div())._with_((function(){
  1397. return smalltalk.withContext(function($ctx3) {
  1398. return (2)._timesRepeat_((function(){
  1399. return smalltalk.withContext(function($ctx4) {
  1400. return _st(_st($Counter())._new())._renderOn_(html);
  1401. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  1402. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1403. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1404. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.CountersSlide)})},
  1405. messageSends: ["class:", "div", "with:", "h1", "timesRepeat:", "renderOn:", "new"]}),
  1406. smalltalk.CountersSlide);
  1407. smalltalk.addClass('FOSDEMSlide', smalltalk.Slide, [], 'Presentation');
  1408. smalltalk.addMethod(
  1409. smalltalk.method({
  1410. selector: "codeSnippet",
  1411. fn: function (){
  1412. var self=this;
  1413. return smalltalk.withContext(function($ctx1) {
  1414. self._subclassResponsibility();
  1415. return self}, function($ctx1) {$ctx1.fill(self,"codeSnippet",{},smalltalk.FOSDEMSlide)})},
  1416. messageSends: ["subclassResponsibility"]}),
  1417. smalltalk.FOSDEMSlide);
  1418. smalltalk.addMethod(
  1419. smalltalk.method({
  1420. selector: "renderCodeSnippetOn:",
  1421. fn: function (html){
  1422. var self=this;
  1423. function $SourceArea(){return smalltalk.SourceArea||(typeof SourceArea=="undefined"?nil:SourceArea)}
  1424. return smalltalk.withContext(function($ctx1) {
  1425. var $1,$2;
  1426. $1=_st($SourceArea())._new();
  1427. _st($1)._renderOn_(html);
  1428. $2=_st($1)._editor();
  1429. _st($2)._setValue_(self._codeSnippet());
  1430. return self}, function($ctx1) {$ctx1.fill(self,"renderCodeSnippetOn:",{html:html},smalltalk.FOSDEMSlide)})},
  1431. messageSends: ["setValue:", "codeSnippet", "renderOn:", "new", "editor"]}),
  1432. smalltalk.FOSDEMSlide);
  1433. smalltalk.addMethod(
  1434. smalltalk.method({
  1435. selector: "renderSnippet:on:",
  1436. fn: function (aString,html){
  1437. var self=this;
  1438. function $SourceArea(){return smalltalk.SourceArea||(typeof SourceArea=="undefined"?nil:SourceArea)}
  1439. return smalltalk.withContext(function($ctx1) {
  1440. var $1,$2;
  1441. $1=_st($SourceArea())._new();
  1442. _st($1)._renderOn_(html);
  1443. $2=_st($1)._editor();
  1444. _st($2)._setValue_(aString);
  1445. return self}, function($ctx1) {$ctx1.fill(self,"renderSnippet:on:",{aString:aString,html:html},smalltalk.FOSDEMSlide)})},
  1446. messageSends: ["setValue:", "renderOn:", "new", "editor"]}),
  1447. smalltalk.FOSDEMSlide);
  1448. smalltalk.addClass('FOSDEMAmberBackend', smalltalk.FOSDEMSlide, [], 'Presentation');
  1449. smalltalk.addMethod(
  1450. smalltalk.method({
  1451. selector: "cssClass",
  1452. fn: function (){
  1453. var self=this;
  1454. return smalltalk.withContext(function($ctx1) {
  1455. return "slide green3d";
  1456. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.FOSDEMAmberBackend)})},
  1457. messageSends: []}),
  1458. smalltalk.FOSDEMAmberBackend);
  1459. smalltalk.addMethod(
  1460. smalltalk.method({
  1461. selector: "renderSlideOn:",
  1462. fn: function (html){
  1463. var self=this;
  1464. return smalltalk.withContext(function($ctx1) {
  1465. var $1,$2;
  1466. $1=_st(html)._div();
  1467. _st($1)._class_("section center");
  1468. $2=_st($1)._with_((function(){
  1469. return smalltalk.withContext(function($ctx2) {
  1470. _st(html)._h1_("Need a backend ?");
  1471. return _st(["nodejs.png","php.gif","rails.png","pharo.png","ambrhino.jpg"])._do_((function(aString){
  1472. return smalltalk.withContext(function($ctx3) {
  1473. return _st(html)._img_("fosdem2012/images/".__comma(aString));
  1474. }, function($ctx3) {$ctx3.fillBlock({aString:aString},$ctx2)})}));
  1475. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1476. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMAmberBackend)})},
  1477. messageSends: ["class:", "div", "with:", "h1:", "do:", "img:", ","]}),
  1478. smalltalk.FOSDEMAmberBackend);
  1479. smalltalk.addClass('FOSDEMAmberZeroNine', smalltalk.FOSDEMSlide, [], 'Presentation');
  1480. smalltalk.addMethod(
  1481. smalltalk.method({
  1482. selector: "renderSlideOn:",
  1483. fn: function (html){
  1484. var self=this;
  1485. return smalltalk.withContext(function($ctx1) {
  1486. var $1,$3,$4,$2;
  1487. $1=_st(html)._div();
  1488. _st($1)._class_("section center");
  1489. $2=_st($1)._with_((function(){
  1490. return smalltalk.withContext(function($ctx2) {
  1491. $3=html;
  1492. _st($3)._h1_("Amber 0.9.1 is out !");
  1493. _st($3)._div_((function(){
  1494. return smalltalk.withContext(function($ctx3) {
  1495. 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!");
  1496. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1497. $4=_st($3)._div_((function(){
  1498. return smalltalk.withContext(function($ctx3) {
  1499. return _st(_st(html)._cite())._with_("-- Nicolas & Göran");
  1500. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1501. return $4;
  1502. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1503. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMAmberZeroNine)})},
  1504. messageSends: ["class:", "div", "with:", "h1:", "div:", "cite"]}),
  1505. smalltalk.FOSDEMAmberZeroNine);
  1506. smalltalk.addClass('FOSDEMBookletSlide', smalltalk.FOSDEMSlide, [], 'Presentation');
  1507. smalltalk.addMethod(
  1508. smalltalk.method({
  1509. selector: "bookletOptions",
  1510. fn: function (){
  1511. var self=this;
  1512. return smalltalk.withContext(function($ctx1) {
  1513. var $1;
  1514. $1=smalltalk.HashedCollection._from_(["arrows".__minus_gt(true),"keyboard".__minus_gt(false),"pageNumbers".__minus_gt(false),"closed".__minus_gt(true)]);
  1515. return $1;
  1516. }, function($ctx1) {$ctx1.fill(self,"bookletOptions",{},smalltalk.FOSDEMBookletSlide)})},
  1517. messageSends: ["->"]}),
  1518. smalltalk.FOSDEMBookletSlide);
  1519. smalltalk.addMethod(
  1520. smalltalk.method({
  1521. selector: "cssClass",
  1522. fn: function (){
  1523. var self=this;
  1524. return smalltalk.withContext(function($ctx1) {
  1525. return "slide blue3d";
  1526. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.FOSDEMBookletSlide)})},
  1527. messageSends: []}),
  1528. smalltalk.FOSDEMBookletSlide);
  1529. smalltalk.addMethod(
  1530. smalltalk.method({
  1531. selector: "renderBookOn:",
  1532. fn: function (html){
  1533. var self=this;
  1534. function $FOSDEMBookletSlide(){return smalltalk.FOSDEMBookletSlide||(typeof FOSDEMBookletSlide=="undefined"?nil:FOSDEMBookletSlide)}
  1535. function $Browser(){return smalltalk.Browser||(typeof Browser=="undefined"?nil:Browser)}
  1536. return smalltalk.withContext(function($ctx1) {
  1537. var $1,$3,$5,$7,$8,$6,$4,$2;
  1538. $1=_st(html)._div();
  1539. _st($1)._id_("book");
  1540. $2=_st($1)._with_((function(){
  1541. return smalltalk.withContext(function($ctx2) {
  1542. $3=_st(html)._div();
  1543. _st($3)._class_("b-load");
  1544. $4=_st($3)._with_((function(){
  1545. return smalltalk.withContext(function($ctx3) {
  1546. $5=html;
  1547. _st($5)._div_("Amber makes it easy to plug existing javascript libraires");
  1548. _st($5)._div_("Here is an example with the jQuery Booklet plugin");
  1549. _st($5)._div_("Want to see how ?");
  1550. $6=_st($5)._div_((function(){
  1551. return smalltalk.withContext(function($ctx4) {
  1552. $7=_st(html)._button();
  1553. _st($7)._onClick_((function(){
  1554. return smalltalk.withContext(function($ctx5) {
  1555. return _st($Browser())._openOn_($FOSDEMBookletSlide());
  1556. }, function($ctx5) {$ctx5.fillBlock({},$ctx4)})}));
  1557. $8=_st($7)._with_("Just browse the code :)");
  1558. return $8;
  1559. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  1560. return $6;
  1561. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1562. return $4;
  1563. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1564. return self}, function($ctx1) {$ctx1.fill(self,"renderBookOn:",{html:html},smalltalk.FOSDEMBookletSlide)})},
  1565. messageSends: ["id:", "div", "with:", "class:", "div:", "onClick:", "openOn:", "button"]}),
  1566. smalltalk.FOSDEMBookletSlide);
  1567. smalltalk.addMethod(
  1568. smalltalk.method({
  1569. selector: "renderSlideOn:",
  1570. fn: function (html){
  1571. var self=this;
  1572. return smalltalk.withContext(function($ctx1) {
  1573. var $1,$2;
  1574. self._renderBookOn_(html);
  1575. $1=_st(html)._link();
  1576. _st($1)._rel_("stylesheet");
  1577. $2=_st($1)._href_("fosdem2012/lib/booklet/jquery.booklet.1.2.0.css");
  1578. _st(html)._style_(self._style());
  1579. _st(jQuery)._getScript_do_("fosdem2012/lib/booklet/jquery.booklet.1.2.0.min.js",(function(){
  1580. return smalltalk.withContext(function($ctx2) {
  1581. return _st("#book"._asJQuery())._booklet_(self._bookletOptions());
  1582. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1583. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMBookletSlide)})},
  1584. messageSends: ["renderBookOn:", "rel:", "link", "href:", "style:", "style", "getScript:do:", "booklet:", "bookletOptions", "asJQuery"]}),
  1585. smalltalk.FOSDEMBookletSlide);
  1586. smalltalk.addMethod(
  1587. smalltalk.method({
  1588. selector: "style",
  1589. fn: function (){
  1590. var self=this;
  1591. return smalltalk.withContext(function($ctx1) {
  1592. 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";
  1593. }, function($ctx1) {$ctx1.fill(self,"style",{},smalltalk.FOSDEMBookletSlide)})},
  1594. messageSends: []}),
  1595. smalltalk.FOSDEMBookletSlide);
  1596. smalltalk.addClass('FOSDEMCLISlide', smalltalk.FOSDEMSlide, [], 'Presentation');
  1597. smalltalk.addMethod(
  1598. smalltalk.method({
  1599. selector: "codeSnippet",
  1600. fn: function (){
  1601. var self=this;
  1602. return smalltalk.withContext(function($ctx1) {
  1603. return "cd examples/nodejs/hello\x0a../../../bin/amberc -m Hello Hello.st Program\x0anode Program.js\x0a\x0aHello world from Amber in Node.js";
  1604. }, function($ctx1) {$ctx1.fill(self,"codeSnippet",{},smalltalk.FOSDEMCLISlide)})},
  1605. messageSends: []}),
  1606. smalltalk.FOSDEMCLISlide);
  1607. smalltalk.addMethod(
  1608. smalltalk.method({
  1609. selector: "renderSlideOn:",
  1610. fn: function (html){
  1611. var self=this;
  1612. return smalltalk.withContext(function($ctx1) {
  1613. _st(html)._h1_("CLI");
  1614. _st(html)._with_("amberc compiles .st files into node programs !");
  1615. self._renderCodeSnippetOn_(html);
  1616. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMCLISlide)})},
  1617. messageSends: ["h1:", "with:", "renderCodeSnippetOn:"]}),
  1618. smalltalk.FOSDEMCLISlide);
  1619. smalltalk.addClass('FOSDEMCanvasSlide', smalltalk.FOSDEMSlide, ['c2d', 'canvas'], 'Presentation');
  1620. smalltalk.addMethod(
  1621. smalltalk.method({
  1622. selector: "cssClass",
  1623. fn: function (){
  1624. var self=this;
  1625. return smalltalk.withContext(function($ctx1) {
  1626. return "slide red3d";
  1627. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.FOSDEMCanvasSlide)})},
  1628. messageSends: []}),
  1629. smalltalk.FOSDEMCanvasSlide);
  1630. smalltalk.addMethod(
  1631. smalltalk.method({
  1632. selector: "drawOnCanvas",
  1633. fn: function (){
  1634. var self=this;
  1635. return smalltalk.withContext(function($ctx1) {
  1636. self["@c2d"]=_st(_st(self["@canvas"])._element())._getContext_("2d");
  1637. _st(self["@c2d"])._clearRect_y_width_height_((0),(0),_st(_st(self["@canvas"])._element())._width(),_st(_st(self["@canvas"])._element())._height());
  1638. _st((40)._atRandom())._timesRepeat_((function(){
  1639. var rgba;
  1640. return smalltalk.withContext(function($ctx2) {
  1641. rgba=","._join_([(255)._atRandom(),(255)._atRandom(),(255)._atRandom(),_st((10)._atRandom()).__slash((10))]);
  1642. rgba;
  1643. _st(self["@c2d"])._at_put_("fillStyle",_st("rgba(".__comma(rgba)).__comma(")"));
  1644. return _st(self["@c2d"])._fillRect_y_width_height_((600)._atRandom(),(300)._atRandom(),(200)._atRandom(),(200)._atRandom());
  1645. }, function($ctx2) {$ctx2.fillBlock({rgba:rgba},$ctx1)})}));
  1646. return self}, function($ctx1) {$ctx1.fill(self,"drawOnCanvas",{},smalltalk.FOSDEMCanvasSlide)})},
  1647. messageSends: ["getContext:", "element", "clearRect:y:width:height:", "width", "height", "timesRepeat:", "join:", "atRandom", "/", "at:put:", ",", "fillRect:y:width:height:"]}),
  1648. smalltalk.FOSDEMCanvasSlide);
  1649. smalltalk.addMethod(
  1650. smalltalk.method({
  1651. selector: "renderSlideOn:",
  1652. fn: function (html){
  1653. var self=this;
  1654. return smalltalk.withContext(function($ctx1) {
  1655. var $1,$2;
  1656. _st(html)._h1_("Playing with canvas");
  1657. $1=_st(html)._canvas();
  1658. _st($1)._width_((700));
  1659. $2=_st($1)._height_((400));
  1660. self["@canvas"]=$2;
  1661. self._updateCanvas();
  1662. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMCanvasSlide)})},
  1663. messageSends: ["h1:", "width:", "canvas", "height:", "updateCanvas"]}),
  1664. smalltalk.FOSDEMCanvasSlide);
  1665. smalltalk.addMethod(
  1666. smalltalk.method({
  1667. selector: "updateCanvas",
  1668. fn: function (){
  1669. var self=this;
  1670. return smalltalk.withContext(function($ctx1) {
  1671. self._drawOnCanvas();
  1672. _st(window)._setTimeout_delay_((function(){
  1673. return smalltalk.withContext(function($ctx2) {
  1674. return self._updateCanvas();
  1675. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}),(500));
  1676. return self}, function($ctx1) {$ctx1.fill(self,"updateCanvas",{},smalltalk.FOSDEMCanvasSlide)})},
  1677. messageSends: ["drawOnCanvas", "setTimeout:delay:", "updateCanvas"]}),
  1678. smalltalk.FOSDEMCanvasSlide);
  1679. smalltalk.addClass('FOSDEMContributionsSlide', smalltalk.FOSDEMSlide, [], 'Presentation');
  1680. smalltalk.addMethod(
  1681. smalltalk.method({
  1682. selector: "renderSlideOn:",
  1683. fn: function (html){
  1684. var self=this;
  1685. return smalltalk.withContext(function($ctx1) {
  1686. var $1,$3,$4,$5,$6,$7,$8,$9,$10,$2;
  1687. $1=_st(html)._div();
  1688. _st($1)._class_("section");
  1689. $2=_st($1)._with_((function(){
  1690. return smalltalk.withContext(function($ctx2) {
  1691. _st(_st(html)._p())._with_((function(){
  1692. return smalltalk.withContext(function($ctx3) {
  1693. $3=_st(html)._a();
  1694. _st($3)._href_("/documentation.html");
  1695. $4=_st($3)._with_("Documentation");
  1696. return $4;
  1697. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1698. _st(_st(html)._p())._with_((function(){
  1699. return smalltalk.withContext(function($ctx3) {
  1700. $5=_st(html)._a();
  1701. _st($5)._href_("http://amber-lang.net");
  1702. $6=_st($5)._with_("amber-lang.net");
  1703. return $6;
  1704. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1705. _st(_st(html)._p())._with_((function(){
  1706. return smalltalk.withContext(function($ctx3) {
  1707. $7=_st(html)._a();
  1708. _st($7)._href_("https://github.com/amber-smalltalk/amber");
  1709. $8=_st($7)._with_("github.com/amber-smalltalk/amber");
  1710. return $8;
  1711. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1712. return _st(_st(html)._p())._with_((function(){
  1713. return smalltalk.withContext(function($ctx3) {
  1714. $9=_st(html)._a();
  1715. _st($9)._href_("http://groups.google.com/group/amber-lang");
  1716. $10=_st($9)._with_("groups.google.com/group/amber-lang");
  1717. return $10;
  1718. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1719. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1720. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMContributionsSlide)})},
  1721. messageSends: ["class:", "div", "with:", "href:", "a", "p"]}),
  1722. smalltalk.FOSDEMContributionsSlide);
  1723. smalltalk.addClass('FOSDEMIntroSlide', smalltalk.FOSDEMSlide, [], 'Presentation');
  1724. smalltalk.addMethod(
  1725. smalltalk.method({
  1726. selector: "renderSlideOn:",
  1727. fn: function (html){
  1728. var self=this;
  1729. return smalltalk.withContext(function($ctx1) {
  1730. var $1,$2;
  1731. $1=_st(html)._div();
  1732. _st($1)._class_("section center animate");
  1733. $2=_st($1)._with_((function(){
  1734. return smalltalk.withContext(function($ctx2) {
  1735. _st(_st(html)._img())._src_("fosdem2012/images/amber.png");
  1736. _st(html)._p_(_st(self._presentation())._author());
  1737. _st(html)._p_(_st(self._presentation())._description());
  1738. return _st(html)._p_((function(){
  1739. return smalltalk.withContext(function($ctx3) {
  1740. return _st(html)._with_(_st(self._presentation())._email());
  1741. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1742. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1743. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMIntroSlide)})},
  1744. messageSends: ["class:", "div", "with:", "src:", "img", "p:", "author", "presentation", "description", "email"]}),
  1745. smalltalk.FOSDEMIntroSlide);
  1746. smalltalk.addClass('FOSDEMJSPlayGroundSlide', smalltalk.FOSDEMSlide, [], 'Presentation');
  1747. smalltalk.addMethod(
  1748. smalltalk.method({
  1749. selector: "codeSnippet",
  1750. fn: function (){
  1751. var self=this;
  1752. return smalltalk.withContext(function($ctx1) {
  1753. 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";
  1754. }, function($ctx1) {$ctx1.fill(self,"codeSnippet",{},smalltalk.FOSDEMJSPlayGroundSlide)})},
  1755. messageSends: []}),
  1756. smalltalk.FOSDEMJSPlayGroundSlide);
  1757. smalltalk.addMethod(
  1758. smalltalk.method({
  1759. selector: "renderSlideOn:",
  1760. fn: function (html){
  1761. var self=this;
  1762. return smalltalk.withContext(function($ctx1) {
  1763. var $1,$3,$4,$2;
  1764. $1=_st(html)._div();
  1765. _st($1)._class_("section center");
  1766. $2=_st($1)._with_((function(){
  1767. return smalltalk.withContext(function($ctx2) {
  1768. self._renderCodeSnippetOn_(html);
  1769. $3=_st(html)._img();
  1770. _st($3)._id_("amberlogo");
  1771. $4=_st($3)._src_("fosdem2012/images/amber.png");
  1772. return $4;
  1773. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1774. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMJSPlayGroundSlide)})},
  1775. messageSends: ["class:", "div", "with:", "renderCodeSnippetOn:", "id:", "img", "src:"]}),
  1776. smalltalk.FOSDEMJSPlayGroundSlide);
  1777. smalltalk.addClass('FOSDEMJSToSmalltalk', smalltalk.FOSDEMSlide, [], 'Presentation');
  1778. smalltalk.addMethod(
  1779. smalltalk.method({
  1780. selector: "codeSnippet",
  1781. fn: function (){
  1782. var self=this;
  1783. return smalltalk.withContext(function($ctx1) {
  1784. return "var counter = window.smalltalk.Counter._new();\x0acounter._appendToJQuery_($('#jsToSmalltalk'));";
  1785. }, function($ctx1) {$ctx1.fill(self,"codeSnippet",{},smalltalk.FOSDEMJSToSmalltalk)})},
  1786. messageSends: []}),
  1787. smalltalk.FOSDEMJSToSmalltalk);
  1788. smalltalk.addMethod(
  1789. smalltalk.method({
  1790. selector: "cssClass",
  1791. fn: function (){
  1792. var self=this;
  1793. return smalltalk.withContext(function($ctx1) {
  1794. return "slide blue3d";
  1795. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.FOSDEMJSToSmalltalk)})},
  1796. messageSends: []}),
  1797. smalltalk.FOSDEMJSToSmalltalk);
  1798. smalltalk.addMethod(
  1799. smalltalk.method({
  1800. selector: "renderSlideOn:",
  1801. fn: function (html){
  1802. var self=this;
  1803. return smalltalk.withContext(function($ctx1) {
  1804. var $1,$2;
  1805. _st(html)._h1_("Call Smalltalk from Javascript");
  1806. $1=_st(html)._div();
  1807. _st($1)._id_("jsToSmalltalk");
  1808. $2=_st($1)._style_("float: left");
  1809. self._renderCodeSnippetOn_(html);
  1810. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMJSToSmalltalk)})},
  1811. messageSends: ["h1:", "id:", "div", "style:", "renderCodeSnippetOn:"]}),
  1812. smalltalk.FOSDEMJSToSmalltalk);
  1813. smalltalk.addClass('FOSDEMREPLSlide', smalltalk.FOSDEMSlide, [], 'Presentation');
  1814. smalltalk.addMethod(
  1815. smalltalk.method({
  1816. selector: "codeSnippet",
  1817. fn: function (){
  1818. var self=this;
  1819. return smalltalk.withContext(function($ctx1) {
  1820. return "./bin/amber\x0afs := require value: 'fs'.\x0afs readdir: '/tmp' do: [:err :file| console log: file]";
  1821. }, function($ctx1) {$ctx1.fill(self,"codeSnippet",{},smalltalk.FOSDEMREPLSlide)})},
  1822. messageSends: []}),
  1823. smalltalk.FOSDEMREPLSlide);
  1824. smalltalk.addMethod(
  1825. smalltalk.method({
  1826. selector: "renderSlideOn:",
  1827. fn: function (html){
  1828. var self=this;
  1829. return smalltalk.withContext(function($ctx1) {
  1830. _st(html)._h1_("REPL");
  1831. self._renderCodeSnippetOn_(html);
  1832. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMREPLSlide)})},
  1833. messageSends: ["h1:", "renderCodeSnippetOn:"]}),
  1834. smalltalk.FOSDEMREPLSlide);
  1835. smalltalk.addClass('FOSDEMTwitter', smalltalk.FOSDEMSlide, ['twitterDiv'], 'Presentation');
  1836. smalltalk.addMethod(
  1837. smalltalk.method({
  1838. selector: "cssClass",
  1839. fn: function (){
  1840. var self=this;
  1841. return smalltalk.withContext(function($ctx1) {
  1842. return "slide black";
  1843. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.FOSDEMTwitter)})},
  1844. messageSends: []}),
  1845. smalltalk.FOSDEMTwitter);
  1846. smalltalk.addMethod(
  1847. smalltalk.method({
  1848. selector: "loadTweets",
  1849. fn: function (){
  1850. var self=this;
  1851. return smalltalk.withContext(function($ctx1) {
  1852. _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){
  1853. return smalltalk.withContext(function($ctx2) {
  1854. return self._renderTweets_(_st(json)._results());
  1855. }, function($ctx2) {$ctx2.fillBlock({json:json},$ctx1)})})),"dataType".__minus_gt("jsonp")]));
  1856. return self}, function($ctx1) {$ctx1.fill(self,"loadTweets",{},smalltalk.FOSDEMTwitter)})},
  1857. messageSends: ["ajax:options:", "->", "renderTweets:", "results"]}),
  1858. smalltalk.FOSDEMTwitter);
  1859. smalltalk.addMethod(
  1860. smalltalk.method({
  1861. selector: "renderSlideOn:",
  1862. fn: function (html){
  1863. var self=this;
  1864. return smalltalk.withContext(function($ctx1) {
  1865. var $1,$2;
  1866. $1=_st(html)._button();
  1867. _st($1)._onClick_((function(){
  1868. return smalltalk.withContext(function($ctx2) {
  1869. return self._loadTweets();
  1870. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1871. $2=_st($1)._with_("What about @AmberSmalltalk on Twitter ?");
  1872. self["@twitterDiv"]=_st(html)._div();
  1873. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.FOSDEMTwitter)})},
  1874. messageSends: ["onClick:", "loadTweets", "button", "with:", "div"]}),
  1875. smalltalk.FOSDEMTwitter);
  1876. smalltalk.addMethod(
  1877. smalltalk.method({
  1878. selector: "renderTweet:on:",
  1879. fn: function (tweet,html){
  1880. var self=this;
  1881. return smalltalk.withContext(function($ctx1) {
  1882. var $1,$3,$4,$2;
  1883. $1=_st(html)._div();
  1884. _st($1)._class_("tweet");
  1885. $2=_st($1)._with_((function(){
  1886. return smalltalk.withContext(function($ctx2) {
  1887. $3=html;
  1888. _st($3)._span_(_st(tweet)._at_("created_at"));
  1889. _st($3)._img_(_st(tweet)._at_("profile_image_url"));
  1890. _st($3)._span_(_st(tweet)._at_("from_user"));
  1891. $4=_st($3)._div_(_st(tweet)._at_("text"));
  1892. return $4;
  1893. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1894. return self}, function($ctx1) {$ctx1.fill(self,"renderTweet:on:",{tweet:tweet,html:html},smalltalk.FOSDEMTwitter)})},
  1895. messageSends: ["class:", "div", "with:", "span:", "at:", "img:", "div:"]}),
  1896. smalltalk.FOSDEMTwitter);
  1897. smalltalk.addMethod(
  1898. smalltalk.method({
  1899. selector: "renderTweets:",
  1900. fn: function (tweets){
  1901. var self=this;
  1902. return smalltalk.withContext(function($ctx1) {
  1903. _st(self["@twitterDiv"])._contents_((function(html){
  1904. return smalltalk.withContext(function($ctx2) {
  1905. return _st(tweets)._do_((function(tweet){
  1906. return smalltalk.withContext(function($ctx3) {
  1907. return self._renderTweet_on_(tweet,html);
  1908. }, function($ctx3) {$ctx3.fillBlock({tweet:tweet},$ctx2)})}));
  1909. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}));
  1910. return self}, function($ctx1) {$ctx1.fill(self,"renderTweets:",{tweets:tweets},smalltalk.FOSDEMTwitter)})},
  1911. messageSends: ["contents:", "do:", "renderTweet:on:"]}),
  1912. smalltalk.FOSDEMTwitter);
  1913. smalltalk.addClass('IDESlide', smalltalk.Slide, [], 'Presentation');
  1914. smalltalk.addMethod(
  1915. smalltalk.method({
  1916. selector: "backgroundColor",
  1917. fn: function (){
  1918. var self=this;
  1919. return smalltalk.withContext(function($ctx1) {
  1920. return "black";
  1921. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.IDESlide)})},
  1922. messageSends: []}),
  1923. smalltalk.IDESlide);
  1924. smalltalk.addMethod(
  1925. smalltalk.method({
  1926. selector: "cssClass",
  1927. fn: function (){
  1928. var self=this;
  1929. return smalltalk.withContext(function($ctx1) {
  1930. return "slide transparent";
  1931. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.IDESlide)})},
  1932. messageSends: []}),
  1933. smalltalk.IDESlide);
  1934. smalltalk.addMethod(
  1935. smalltalk.method({
  1936. selector: "id",
  1937. fn: function (){
  1938. var self=this;
  1939. return smalltalk.withContext(function($ctx1) {
  1940. return "ide";
  1941. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.IDESlide)})},
  1942. messageSends: []}),
  1943. smalltalk.IDESlide);
  1944. smalltalk.addMethod(
  1945. smalltalk.method({
  1946. selector: "renderSlideOn:",
  1947. fn: function (html){
  1948. var self=this;
  1949. return smalltalk.withContext(function($ctx1) {
  1950. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.IDESlide)})},
  1951. messageSends: []}),
  1952. smalltalk.IDESlide);
  1953. smalltalk.addClass('IntroSlide', smalltalk.Slide, [], 'Presentation');
  1954. smalltalk.addMethod(
  1955. smalltalk.method({
  1956. selector: "cssClass",
  1957. fn: function (){
  1958. var self=this;
  1959. return smalltalk.withContext(function($ctx1) {
  1960. return "slide black";
  1961. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.IntroSlide)})},
  1962. messageSends: []}),
  1963. smalltalk.IntroSlide);
  1964. smalltalk.addMethod(
  1965. smalltalk.method({
  1966. selector: "id",
  1967. fn: function (){
  1968. var self=this;
  1969. return smalltalk.withContext(function($ctx1) {
  1970. return "intro";
  1971. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.IntroSlide)})},
  1972. messageSends: []}),
  1973. smalltalk.IntroSlide);
  1974. smalltalk.addMethod(
  1975. smalltalk.method({
  1976. selector: "renderSlideOn:",
  1977. fn: function (html){
  1978. var self=this;
  1979. return smalltalk.withContext(function($ctx1) {
  1980. var $1,$3,$4,$5,$6,$7,$8,$2;
  1981. $1=_st(html)._div();
  1982. _st($1)._class_("section center");
  1983. $2=_st($1)._with_((function(){
  1984. return smalltalk.withContext(function($ctx2) {
  1985. _st(_st(html)._h1())._with_("Jtalk, the Smalltalk for Web developers");
  1986. _st(_st(html)._p())._with_(_st(_st(_st(self._presentation())._author()).__comma(" & Göran Krampe - ")).__comma(_st(self._presentation())._description()));
  1987. _st(_st(html)._p())._with_((function(){
  1988. return smalltalk.withContext(function($ctx3) {
  1989. $3=_st(html)._a();
  1990. _st($3)._with_(_st(self._presentation())._email());
  1991. $4=_st($3)._href_("mailto:".__comma(_st(self._presentation())._email()));
  1992. return $4;
  1993. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1994. _st(_st(html)._p())._with_((function(){
  1995. return smalltalk.withContext(function($ctx3) {
  1996. $5=_st(html)._a();
  1997. _st($5)._with_("goran@krampe.se");
  1998. $6=_st($5)._href_("mailto:goran@krampe.se");
  1999. return $6;
  2000. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2001. return _st(_st(html)._p())._with_((function(){
  2002. return smalltalk.withContext(function($ctx3) {
  2003. $7=_st(html)._a();
  2004. _st($7)._with_("objectfusion.fr");
  2005. $8=_st($7)._href_("http://www.objectfusion.fr");
  2006. return $8;
  2007. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2008. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2009. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.IntroSlide)})},
  2010. messageSends: ["class:", "div", "with:", "h1", ",", "description", "presentation", "author", "p", "email", "a", "href:"]}),
  2011. smalltalk.IntroSlide);
  2012. smalltalk.addClass('JtalkAndCLI', smalltalk.Slide, [], 'Presentation');
  2013. smalltalk.addMethod(
  2014. smalltalk.method({
  2015. selector: "backgroundColor",
  2016. fn: function (){
  2017. var self=this;
  2018. return smalltalk.withContext(function($ctx1) {
  2019. return "#0A1";
  2020. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndCLI)})},
  2021. messageSends: []}),
  2022. smalltalk.JtalkAndCLI);
  2023. smalltalk.addMethod(
  2024. smalltalk.method({
  2025. selector: "id",
  2026. fn: function (){
  2027. var self=this;
  2028. return smalltalk.withContext(function($ctx1) {
  2029. return "JtalkAndCLI";
  2030. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndCLI)})},
  2031. messageSends: []}),
  2032. smalltalk.JtalkAndCLI);
  2033. smalltalk.addMethod(
  2034. smalltalk.method({
  2035. selector: "renderSlideOn:",
  2036. fn: function (html){
  2037. var self=this;
  2038. return smalltalk.withContext(function($ctx1) {
  2039. var $1,$2;
  2040. _st(_st(html)._h1())._with_((function(){
  2041. return smalltalk.withContext(function($ctx2) {
  2042. _st(html)._with_("Jtalk and ");
  2043. $1=_st(html)._span();
  2044. _st($1)._class_("blue");
  2045. $2=_st($1)._with_("the command line");
  2046. return $2;
  2047. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2048. _st(_st(html)._h2())._with_("jtalkc - a fairly elaborate bash script that:");
  2049. _st(_st(html)._ul())._with_((function(){
  2050. return smalltalk.withContext(function($ctx2) {
  2051. _st(_st(html)._li())._with_("Uses Node.js to run the Jtalk Compiler");
  2052. _st(_st(html)._li())._with_("Compiles .st files to .js");
  2053. _st(_st(html)._li())._with_("Links .js files into a single one");
  2054. _st(_st(html)._li())._with_("Adds class initilization and/or call to main");
  2055. return _st(_st(html)._li())._with_("Optionally runs Google Closure compiler");
  2056. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2057. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndCLI)})},
  2058. messageSends: ["with:", "class:", "span", "h1", "h2", "li", "ul"]}),
  2059. smalltalk.JtalkAndCLI);
  2060. smalltalk.addClass('JtalkAndEnyo', smalltalk.Slide, [], 'Presentation');
  2061. smalltalk.addMethod(
  2062. smalltalk.method({
  2063. selector: "backgroundColor",
  2064. fn: function (){
  2065. var self=this;
  2066. return smalltalk.withContext(function($ctx1) {
  2067. return "#0A1";
  2068. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndEnyo)})},
  2069. messageSends: []}),
  2070. smalltalk.JtalkAndEnyo);
  2071. smalltalk.addMethod(
  2072. smalltalk.method({
  2073. selector: "id",
  2074. fn: function (){
  2075. var self=this;
  2076. return smalltalk.withContext(function($ctx1) {
  2077. return "JtalkAndEnyo";
  2078. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndEnyo)})},
  2079. messageSends: []}),
  2080. smalltalk.JtalkAndEnyo);
  2081. smalltalk.addMethod(
  2082. smalltalk.method({
  2083. selector: "renderSlideOn:",
  2084. fn: function (html){
  2085. var self=this;
  2086. return smalltalk.withContext(function($ctx1) {
  2087. var $1,$2;
  2088. _st(_st(html)._h1())._with_((function(){
  2089. return smalltalk.withContext(function($ctx2) {
  2090. _st(html)._with_("Jtalk and ");
  2091. $1=_st(html)._span();
  2092. _st($1)._class_("blue");
  2093. $2=_st($1)._with_("Enyo");
  2094. return $2;
  2095. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2096. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndEnyo)})},
  2097. messageSends: ["with:", "class:", "span", "h1"]}),
  2098. smalltalk.JtalkAndEnyo);
  2099. smalltalk.addClass('JtalkAndJavascriptSlide', smalltalk.Slide, [], 'Presentation');
  2100. smalltalk.addMethod(
  2101. smalltalk.method({
  2102. selector: "backgroundColor",
  2103. fn: function (){
  2104. var self=this;
  2105. return smalltalk.withContext(function($ctx1) {
  2106. return "#08C";
  2107. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndJavascriptSlide)})},
  2108. messageSends: []}),
  2109. smalltalk.JtalkAndJavascriptSlide);
  2110. smalltalk.addMethod(
  2111. smalltalk.method({
  2112. selector: "cssClass",
  2113. fn: function (){
  2114. var self=this;
  2115. return smalltalk.withContext(function($ctx1) {
  2116. return "slide transparent";
  2117. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.JtalkAndJavascriptSlide)})},
  2118. messageSends: []}),
  2119. smalltalk.JtalkAndJavascriptSlide);
  2120. smalltalk.addMethod(
  2121. smalltalk.method({
  2122. selector: "id",
  2123. fn: function (){
  2124. var self=this;
  2125. return smalltalk.withContext(function($ctx1) {
  2126. return "jtalkAndJs";
  2127. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndJavascriptSlide)})},
  2128. messageSends: []}),
  2129. smalltalk.JtalkAndJavascriptSlide);
  2130. smalltalk.addMethod(
  2131. smalltalk.method({
  2132. selector: "renderSlideOn:",
  2133. fn: function (html){
  2134. var self=this;
  2135. return smalltalk.withContext(function($ctx1) {
  2136. var $1,$3,$4,$2;
  2137. $1=_st(html)._div();
  2138. _st($1)._class_("section center");
  2139. $2=_st($1)._with_((function(){
  2140. return smalltalk.withContext(function($ctx2) {
  2141. return _st(_st(html)._h1())._with_((function(){
  2142. return smalltalk.withContext(function($ctx3) {
  2143. _st(html)._with_("Smalltalk ");
  2144. $3=_st(html)._span();
  2145. _st($3)._class_("red");
  2146. $4=_st($3)._with_("♥");
  2147. $4;
  2148. return _st(html)._with_(" JavaScript");
  2149. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2150. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2151. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndJavascriptSlide)})},
  2152. messageSends: ["class:", "div", "with:", "span", "h1"]}),
  2153. smalltalk.JtalkAndJavascriptSlide);
  2154. smalltalk.addClass('JtalkAndJavascriptSlide2', smalltalk.Slide, [], 'Presentation');
  2155. smalltalk.addMethod(
  2156. smalltalk.method({
  2157. selector: "backgroundColor",
  2158. fn: function (){
  2159. var self=this;
  2160. return smalltalk.withContext(function($ctx1) {
  2161. return "#08C";
  2162. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndJavascriptSlide2)})},
  2163. messageSends: []}),
  2164. smalltalk.JtalkAndJavascriptSlide2);
  2165. smalltalk.addMethod(
  2166. smalltalk.method({
  2167. selector: "id",
  2168. fn: function (){
  2169. var self=this;
  2170. return smalltalk.withContext(function($ctx1) {
  2171. return "jtalkAndJs2";
  2172. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndJavascriptSlide2)})},
  2173. messageSends: []}),
  2174. smalltalk.JtalkAndJavascriptSlide2);
  2175. smalltalk.addMethod(
  2176. smalltalk.method({
  2177. selector: "renderSlideOn:",
  2178. fn: function (html){
  2179. var self=this;
  2180. return smalltalk.withContext(function($ctx1) {
  2181. var $1,$2;
  2182. _st(_st(html)._h1())._with_((function(){
  2183. return smalltalk.withContext(function($ctx2) {
  2184. _st(html)._with_("Smalltalk ");
  2185. $1=_st(html)._span();
  2186. _st($1)._class_("red");
  2187. $2=_st($1)._with_("♥");
  2188. $2;
  2189. return _st(html)._with_(" JavaScript");
  2190. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2191. _st(_st(html)._h2())._with_("Jtalk maps one to one with the JavaScript equivalent:");
  2192. _st(_st(html)._ul())._with_((function(){
  2193. return smalltalk.withContext(function($ctx2) {
  2194. _st(_st(html)._li())._with_("String ⇔ String");
  2195. _st(_st(html)._li())._with_("Number ⇔ Number");
  2196. _st(_st(html)._li())._with_("BlockClosure ⇔ function");
  2197. _st(_st(html)._li())._with_("Dictionary ⇔ Object");
  2198. _st(_st(html)._li())._with_("Error ⇔ Error");
  2199. return _st(_st(html)._li())._with_("etc.");
  2200. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2201. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndJavascriptSlide2)})},
  2202. messageSends: ["with:", "class:", "span", "h1", "h2", "li", "ul"]}),
  2203. smalltalk.JtalkAndJavascriptSlide2);
  2204. smalltalk.addClass('JtalkAndJavascriptSlide3', smalltalk.Slide, [], 'Presentation');
  2205. smalltalk.addMethod(
  2206. smalltalk.method({
  2207. selector: "backgroundColor",
  2208. fn: function (){
  2209. var self=this;
  2210. return smalltalk.withContext(function($ctx1) {
  2211. return "#08C";
  2212. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndJavascriptSlide3)})},
  2213. messageSends: []}),
  2214. smalltalk.JtalkAndJavascriptSlide3);
  2215. smalltalk.addMethod(
  2216. smalltalk.method({
  2217. selector: "id",
  2218. fn: function (){
  2219. var self=this;
  2220. return smalltalk.withContext(function($ctx1) {
  2221. return "jtalkAndJs3";
  2222. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndJavascriptSlide3)})},
  2223. messageSends: []}),
  2224. smalltalk.JtalkAndJavascriptSlide3);
  2225. smalltalk.addMethod(
  2226. smalltalk.method({
  2227. selector: "renderSlideOn:",
  2228. fn: function (html){
  2229. var self=this;
  2230. return smalltalk.withContext(function($ctx1) {
  2231. var $1,$2,$3,$4,$5,$6,$7,$8;
  2232. _st(_st(html)._h1())._with_((function(){
  2233. return smalltalk.withContext(function($ctx2) {
  2234. _st(html)._with_("Smalltalk ");
  2235. $1=_st(html)._span();
  2236. _st($1)._class_("red");
  2237. $2=_st($1)._with_("♥");
  2238. $2;
  2239. return _st(html)._with_(" JavaScript");
  2240. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2241. _st(_st(html)._h2())._with_("Smalltalk ⇒ JavaScript");
  2242. _st(_st(html)._ol())._with_((function(){
  2243. return smalltalk.withContext(function($ctx2) {
  2244. $3=_st(html)._li();
  2245. _st($3)._with_("Unary messages begin with an underscore: ");
  2246. _st($3)._with_((function(){
  2247. return smalltalk.withContext(function($ctx3) {
  2248. return _st(_st(html)._code())._with_("yourself");
  2249. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2250. _st($3)._with_(" becomes ");
  2251. $4=_st($3)._with_((function(){
  2252. return smalltalk.withContext(function($ctx3) {
  2253. return _st(_st(html)._code())._with_("_yourself()");
  2254. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2255. $4;
  2256. $5=_st(html)._li();
  2257. _st($5)._with_("Binary messages are prefixed with 2 underscores: ");
  2258. _st($5)._with_((function(){
  2259. return smalltalk.withContext(function($ctx3) {
  2260. return _st(_st(html)._code())._with_("3@4");
  2261. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2262. _st($5)._with_(" becomes ");
  2263. $6=_st($5)._with_((function(){
  2264. return smalltalk.withContext(function($ctx3) {
  2265. return _st(_st(html)._code())._with_("(3).__at(4)");
  2266. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2267. $6;
  2268. $7=_st(html)._li();
  2269. _st($7)._with_("Keyword message follow the same rules as unary messages, with a final underscore: ");
  2270. _st($7)._with_((function(){
  2271. return smalltalk.withContext(function($ctx3) {
  2272. return _st(_st(html)._code())._with_("aDictionary at: 3 put: 4");
  2273. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2274. _st($7)._with_(" becomes ");
  2275. $8=_st($7)._with_((function(){
  2276. return smalltalk.withContext(function($ctx3) {
  2277. return _st(_st(html)._code())._with_("aDictionary._at_put_(3, 4)");
  2278. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2279. return $8;
  2280. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2281. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndJavascriptSlide3)})},
  2282. messageSends: ["with:", "class:", "span", "h1", "h2", "li", "code", "ol"]}),
  2283. smalltalk.JtalkAndJavascriptSlide3);
  2284. smalltalk.addClass('JtalkAndJavascriptSlide4', smalltalk.Slide, [], 'Presentation');
  2285. smalltalk.addMethod(
  2286. smalltalk.method({
  2287. selector: "backgroundColor",
  2288. fn: function (){
  2289. var self=this;
  2290. return smalltalk.withContext(function($ctx1) {
  2291. return "#08C";
  2292. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndJavascriptSlide4)})},
  2293. messageSends: []}),
  2294. smalltalk.JtalkAndJavascriptSlide4);
  2295. smalltalk.addMethod(
  2296. smalltalk.method({
  2297. selector: "id",
  2298. fn: function (){
  2299. var self=this;
  2300. return smalltalk.withContext(function($ctx1) {
  2301. return "jtalkAndJs4";
  2302. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndJavascriptSlide4)})},
  2303. messageSends: []}),
  2304. smalltalk.JtalkAndJavascriptSlide4);
  2305. smalltalk.addMethod(
  2306. smalltalk.method({
  2307. selector: "renderSlideOn:",
  2308. fn: function (html){
  2309. var self=this;
  2310. return smalltalk.withContext(function($ctx1) {
  2311. var $1,$2,$3,$5,$6,$4,$7,$8,$9,$10,$11,$12,$13,$14;
  2312. _st(_st(html)._h1())._with_((function(){
  2313. return smalltalk.withContext(function($ctx2) {
  2314. _st(html)._with_("JavaScript ");
  2315. $1=_st(html)._span();
  2316. _st($1)._class_("red");
  2317. $2=_st($1)._with_("♥");
  2318. $2;
  2319. $3=html;
  2320. _st($3)._with_(" Smalltalk too! ");
  2321. $4=_st($3)._with_((function(){
  2322. return smalltalk.withContext(function($ctx3) {
  2323. $5=_st(html)._span();
  2324. _st($5)._class_("comment");
  2325. $6=_st($5)._with_("(how cute)");
  2326. return $6;
  2327. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2328. return $4;
  2329. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2330. _st(_st(html)._h2())._with_("JavaScript ⇒ Smalltalk");
  2331. _st(_st(html)._ol())._with_((function(){
  2332. return smalltalk.withContext(function($ctx2) {
  2333. $7=_st(html)._li();
  2334. _st($7)._with_((function(){
  2335. return smalltalk.withContext(function($ctx3) {
  2336. return _st(_st(html)._code())._with_("someUser.name");
  2337. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2338. _st($7)._with_(" becomes ");
  2339. $8=_st($7)._with_((function(){
  2340. return smalltalk.withContext(function($ctx3) {
  2341. return _st(_st(html)._code())._with_("someUser name");
  2342. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2343. $8;
  2344. $9=_st(html)._li();
  2345. _st($9)._with_((function(){
  2346. return smalltalk.withContext(function($ctx3) {
  2347. return _st(_st(html)._code())._with_("someUser name = \x22John\x22");
  2348. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2349. _st($9)._with_(" becomes ");
  2350. $10=_st($9)._with_((function(){
  2351. return smalltalk.withContext(function($ctx3) {
  2352. return _st(_st(html)._code())._with_("someUser name: 'John'");
  2353. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2354. $10;
  2355. $11=_st(html)._li();
  2356. _st($11)._with_((function(){
  2357. return smalltalk.withContext(function($ctx3) {
  2358. return _st(_st(html)._code())._with_("console.log('hello world')");
  2359. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2360. _st($11)._with_(" becomes ");
  2361. $12=_st($11)._with_((function(){
  2362. return smalltalk.withContext(function($ctx3) {
  2363. return _st(_st(html)._code())._with_("console log: 'hello world'");
  2364. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2365. $12;
  2366. $13=_st(html)._li();
  2367. _st($13)._with_((function(){
  2368. return smalltalk.withContext(function($ctx3) {
  2369. return _st(_st(html)._code())._with_("window.jQuery('foo').css('background', 'red')");
  2370. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2371. _st($13)._with_(" becomes ");
  2372. _st($13)._with_((function(){
  2373. return smalltalk.withContext(function($ctx3) {
  2374. return _st(html)._br();
  2375. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2376. $14=_st($13)._with_((function(){
  2377. return smalltalk.withContext(function($ctx3) {
  2378. return _st(_st(html)._code())._with_("(window jQuery: 'foo') css: 'background' color: 'red'");
  2379. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2380. return $14;
  2381. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2382. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndJavascriptSlide4)})},
  2383. messageSends: ["with:", "class:", "span", "h1", "h2", "code", "li", "br", "ol"]}),
  2384. smalltalk.JtalkAndJavascriptSlide4);
  2385. smalltalk.addClass('JtalkAndNode', smalltalk.Slide, [], 'Presentation');
  2386. smalltalk.addMethod(
  2387. smalltalk.method({
  2388. selector: "backgroundColor",
  2389. fn: function (){
  2390. var self=this;
  2391. return smalltalk.withContext(function($ctx1) {
  2392. return "#0A1";
  2393. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndNode)})},
  2394. messageSends: []}),
  2395. smalltalk.JtalkAndNode);
  2396. smalltalk.addMethod(
  2397. smalltalk.method({
  2398. selector: "id",
  2399. fn: function (){
  2400. var self=this;
  2401. return smalltalk.withContext(function($ctx1) {
  2402. return "JtalkAndNode";
  2403. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndNode)})},
  2404. messageSends: []}),
  2405. smalltalk.JtalkAndNode);
  2406. smalltalk.addMethod(
  2407. smalltalk.method({
  2408. selector: "renderSlideOn:",
  2409. fn: function (html){
  2410. var self=this;
  2411. return smalltalk.withContext(function($ctx1) {
  2412. var $1,$2,$3,$4;
  2413. _st(_st(html)._h1())._with_((function(){
  2414. return smalltalk.withContext(function($ctx2) {
  2415. _st(html)._with_("Jtalk and ");
  2416. $1=_st(html)._span();
  2417. _st($1)._class_("blue");
  2418. $2=_st($1)._with_("Node.js");
  2419. return $2;
  2420. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2421. _st(_st(html)._h2())._with_("Hello.st:");
  2422. _st(_st(html)._pre())._with_((function(){
  2423. return smalltalk.withContext(function($ctx2) {
  2424. $3=_st(html)._div();
  2425. _st($3)._class_("code2");
  2426. $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! !");
  2427. return $4;
  2428. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2429. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndNode)})},
  2430. messageSends: ["with:", "class:", "span", "h1", "h2", "div", "pre"]}),
  2431. smalltalk.JtalkAndNode);
  2432. smalltalk.addClass('JtalkAndNode2', smalltalk.Slide, [], 'Presentation');
  2433. smalltalk.addMethod(
  2434. smalltalk.method({
  2435. selector: "backgroundColor",
  2436. fn: function (){
  2437. var self=this;
  2438. return smalltalk.withContext(function($ctx1) {
  2439. return "#0A1";
  2440. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndNode2)})},
  2441. messageSends: []}),
  2442. smalltalk.JtalkAndNode2);
  2443. smalltalk.addMethod(
  2444. smalltalk.method({
  2445. selector: "id",
  2446. fn: function (){
  2447. var self=this;
  2448. return smalltalk.withContext(function($ctx1) {
  2449. return "JtalkAndNode2";
  2450. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndNode2)})},
  2451. messageSends: []}),
  2452. smalltalk.JtalkAndNode2);
  2453. smalltalk.addMethod(
  2454. smalltalk.method({
  2455. selector: "renderSlideOn:",
  2456. fn: function (html){
  2457. var self=this;
  2458. return smalltalk.withContext(function($ctx1) {
  2459. var $1,$2,$3,$4,$5,$6;
  2460. _st(_st(html)._h1())._with_((function(){
  2461. return smalltalk.withContext(function($ctx2) {
  2462. _st(html)._with_("Jtalk and ");
  2463. $1=_st(html)._span();
  2464. _st($1)._class_("blue");
  2465. $2=_st($1)._with_("Node.js");
  2466. return $2;
  2467. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2468. _st(_st(html)._h2())._with_("Makefile:");
  2469. _st(_st(html)._pre())._with_((function(){
  2470. return smalltalk.withContext(function($ctx2) {
  2471. $3=_st(html)._div();
  2472. _st($3)._class_("code2");
  2473. $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");
  2474. return $4;
  2475. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2476. _st(_st(html)._h2())._with_("hello:");
  2477. _st(_st(html)._pre())._with_((function(){
  2478. return smalltalk.withContext(function($ctx2) {
  2479. $5=_st(html)._div();
  2480. _st($5)._class_("code2");
  2481. $6=_st($5)._with_("node Program.js $@");
  2482. return $6;
  2483. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2484. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndNode2)})},
  2485. messageSends: ["with:", "class:", "span", "h1", "h2", "div", "pre"]}),
  2486. smalltalk.JtalkAndNode2);
  2487. smalltalk.addClass('JtalkAndNode3', smalltalk.Slide, [], 'Presentation');
  2488. smalltalk.addMethod(
  2489. smalltalk.method({
  2490. selector: "backgroundColor",
  2491. fn: function (){
  2492. var self=this;
  2493. return smalltalk.withContext(function($ctx1) {
  2494. return "#0A1";
  2495. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndNode3)})},
  2496. messageSends: []}),
  2497. smalltalk.JtalkAndNode3);
  2498. smalltalk.addMethod(
  2499. smalltalk.method({
  2500. selector: "id",
  2501. fn: function (){
  2502. var self=this;
  2503. return smalltalk.withContext(function($ctx1) {
  2504. return "JtalkAndNode3";
  2505. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndNode3)})},
  2506. messageSends: []}),
  2507. smalltalk.JtalkAndNode3);
  2508. smalltalk.addMethod(
  2509. smalltalk.method({
  2510. selector: "renderSlideOn:",
  2511. fn: function (html){
  2512. var self=this;
  2513. return smalltalk.withContext(function($ctx1) {
  2514. var $1,$2,$3,$4,$5,$6;
  2515. _st(_st(html)._h1())._with_((function(){
  2516. return smalltalk.withContext(function($ctx2) {
  2517. _st(html)._with_("Jtalk and ");
  2518. $1=_st(html)._span();
  2519. _st($1)._class_("blue");
  2520. $2=_st($1)._with_("Node.js");
  2521. return $2;
  2522. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2523. _st(_st(html)._h2())._with_("make clean && make run:");
  2524. _st(_st(html)._pre())._with_((function(){
  2525. return smalltalk.withContext(function($ctx2) {
  2526. $3=_st(html)._div();
  2527. _st($3)._class_("code2");
  2528. $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");
  2529. $4;
  2530. $5=_st(html)._span();
  2531. _st($5)._class_("blue");
  2532. $6=_st($5)._with_("Hello world from JTalk in Node.js");
  2533. return $6;
  2534. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2535. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndNode3)})},
  2536. messageSends: ["with:", "class:", "span", "h1", "h2", "div", "pre"]}),
  2537. smalltalk.JtalkAndNode3);
  2538. smalltalk.addClass('JtalkAndWebOS', smalltalk.Slide, [], 'Presentation');
  2539. smalltalk.addMethod(
  2540. smalltalk.method({
  2541. selector: "backgroundColor",
  2542. fn: function (){
  2543. var self=this;
  2544. return smalltalk.withContext(function($ctx1) {
  2545. return "#0A1";
  2546. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.JtalkAndWebOS)})},
  2547. messageSends: []}),
  2548. smalltalk.JtalkAndWebOS);
  2549. smalltalk.addMethod(
  2550. smalltalk.method({
  2551. selector: "id",
  2552. fn: function (){
  2553. var self=this;
  2554. return smalltalk.withContext(function($ctx1) {
  2555. return "JtalkAndWebOS";
  2556. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkAndWebOS)})},
  2557. messageSends: []}),
  2558. smalltalk.JtalkAndWebOS);
  2559. smalltalk.addMethod(
  2560. smalltalk.method({
  2561. selector: "renderSlideOn:",
  2562. fn: function (html){
  2563. var self=this;
  2564. return smalltalk.withContext(function($ctx1) {
  2565. var $1,$2;
  2566. _st(_st(html)._h1())._with_((function(){
  2567. return smalltalk.withContext(function($ctx2) {
  2568. _st(html)._with_("Jtalk and ");
  2569. $1=_st(html)._span();
  2570. _st($1)._class_("blue");
  2571. $2=_st($1)._with_("webOS");
  2572. return $2;
  2573. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2574. _st(_st(html)._h2())._with_("A really cool mobile OS based on Linux:");
  2575. _st(_st(html)._ul())._with_((function(){
  2576. return smalltalk.withContext(function($ctx2) {
  2577. _st(_st(html)._li())._with_("The primary language in webOS is Javascript");
  2578. _st(_st(html)._li())._with_("The new UI framework for webOS 3.0 is called Enyo");
  2579. _st(_st(html)._li())._with_("Regular apps run in V8 + Webkit");
  2580. return _st(_st(html)._li())._with_("Background services run in Node.js");
  2581. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2582. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkAndWebOS)})},
  2583. messageSends: ["with:", "class:", "span", "h1", "h2", "li", "ul"]}),
  2584. smalltalk.JtalkAndWebOS);
  2585. smalltalk.addClass('JtalkFeaturesSlide', smalltalk.Slide, [], 'Presentation');
  2586. smalltalk.addMethod(
  2587. smalltalk.method({
  2588. selector: "id",
  2589. fn: function (){
  2590. var self=this;
  2591. return smalltalk.withContext(function($ctx1) {
  2592. return "features";
  2593. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.JtalkFeaturesSlide)})},
  2594. messageSends: []}),
  2595. smalltalk.JtalkFeaturesSlide);
  2596. smalltalk.addMethod(
  2597. smalltalk.method({
  2598. selector: "renderSlideOn:",
  2599. fn: function (html){
  2600. var self=this;
  2601. return smalltalk.withContext(function($ctx1) {
  2602. _st(_st(html)._h1())._with_("Jtalk features");
  2603. _st(_st(html)._ul())._with_((function(){
  2604. return smalltalk.withContext(function($ctx2) {
  2605. _st(_st(html)._li())._with_("Jtalk is (mostly) written in itself, including the parser & compiler");
  2606. _st(_st(html)._li())._with_("Full Smalltalk object system, including classes & metaclasses, etc");
  2607. _st(_st(html)._li())._with_("Core libraries (streams, collections, RegExp, etc)");
  2608. _st(_st(html)._li())._with_("Web related libraries: HTML Canvas, DOM manipulation");
  2609. _st(_st(html)._li())._with_("Full featured IDE");
  2610. return _st(_st(html)._li())._with_((function(){
  2611. return smalltalk.withContext(function($ctx3) {
  2612. _st(html)._with_("Advanced Smalltalk features, including ");
  2613. _st(_st(html)._code())._with_("#doesNotUnderstand:");
  2614. _st(html)._with_(" support and ");
  2615. return _st(_st(html)._code())._with_("thisContext");
  2616. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2617. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2618. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.JtalkFeaturesSlide)})},
  2619. messageSends: ["with:", "h1", "li", "code", "ul"]}),
  2620. smalltalk.JtalkFeaturesSlide);
  2621. smalltalk.addClass('SweSUGSlide', smalltalk.Slide, [], 'Presentation');
  2622. smalltalk.addMethod(
  2623. smalltalk.method({
  2624. selector: "backgroundColor",
  2625. fn: function (){
  2626. var self=this;
  2627. return smalltalk.withContext(function($ctx1) {
  2628. return "#555";
  2629. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.SweSUGSlide)})},
  2630. messageSends: []}),
  2631. smalltalk.SweSUGSlide);
  2632. smalltalk.addMethod(
  2633. smalltalk.method({
  2634. selector: "codeSnippet",
  2635. fn: function (){
  2636. var self=this;
  2637. return smalltalk.withContext(function($ctx1) {
  2638. self._subclassResponsibility();
  2639. return self}, function($ctx1) {$ctx1.fill(self,"codeSnippet",{},smalltalk.SweSUGSlide)})},
  2640. messageSends: ["subclassResponsibility"]}),
  2641. smalltalk.SweSUGSlide);
  2642. smalltalk.addMethod(
  2643. smalltalk.method({
  2644. selector: "cssClass",
  2645. fn: function (){
  2646. var self=this;
  2647. return smalltalk.withContext(function($ctx1) {
  2648. return "slide blue3d";
  2649. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.SweSUGSlide)})},
  2650. messageSends: []}),
  2651. smalltalk.SweSUGSlide);
  2652. smalltalk.addMethod(
  2653. smalltalk.method({
  2654. selector: "renderCodeSnippetOn:",
  2655. fn: function (html){
  2656. var self=this;
  2657. function $SourceArea(){return smalltalk.SourceArea||(typeof SourceArea=="undefined"?nil:SourceArea)}
  2658. return smalltalk.withContext(function($ctx1) {
  2659. var $1,$2;
  2660. $1=_st($SourceArea())._new();
  2661. _st($1)._renderOn_(html);
  2662. $2=_st($1)._editor();
  2663. _st($2)._setValue_(self._codeSnippet());
  2664. return self}, function($ctx1) {$ctx1.fill(self,"renderCodeSnippetOn:",{html:html},smalltalk.SweSUGSlide)})},
  2665. messageSends: ["setValue:", "codeSnippet", "renderOn:", "new", "editor"]}),
  2666. smalltalk.SweSUGSlide);
  2667. smalltalk.addMethod(
  2668. smalltalk.method({
  2669. selector: "renderSnippet:on:",
  2670. fn: function (aString,html){
  2671. var self=this;
  2672. function $SourceArea(){return smalltalk.SourceArea||(typeof SourceArea=="undefined"?nil:SourceArea)}
  2673. return smalltalk.withContext(function($ctx1) {
  2674. var $1,$2;
  2675. $1=_st($SourceArea())._new();
  2676. _st($1)._renderOn_(html);
  2677. $2=_st($1)._editor();
  2678. _st($2)._setValue_(aString);
  2679. return self}, function($ctx1) {$ctx1.fill(self,"renderSnippet:on:",{aString:aString,html:html},smalltalk.SweSUGSlide)})},
  2680. messageSends: ["setValue:", "renderOn:", "new", "editor"]}),
  2681. smalltalk.SweSUGSlide);
  2682. smalltalk.addClass('SweSUGAboutSlide', smalltalk.SweSUGSlide, [], 'Presentation');
  2683. smalltalk.addMethod(
  2684. smalltalk.method({
  2685. selector: "backgroundColor",
  2686. fn: function (){
  2687. var self=this;
  2688. return smalltalk.withContext(function($ctx1) {
  2689. return "#555";
  2690. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.SweSUGAboutSlide)})},
  2691. messageSends: []}),
  2692. smalltalk.SweSUGAboutSlide);
  2693. smalltalk.addMethod(
  2694. smalltalk.method({
  2695. selector: "cssClass",
  2696. fn: function (){
  2697. var self=this;
  2698. return smalltalk.withContext(function($ctx1) {
  2699. return "slide blue3d";
  2700. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.SweSUGAboutSlide)})},
  2701. messageSends: []}),
  2702. smalltalk.SweSUGAboutSlide);
  2703. smalltalk.addMethod(
  2704. smalltalk.method({
  2705. selector: "id",
  2706. fn: function (){
  2707. var self=this;
  2708. return smalltalk.withContext(function($ctx1) {
  2709. return "About";
  2710. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.SweSUGAboutSlide)})},
  2711. messageSends: []}),
  2712. smalltalk.SweSUGAboutSlide);
  2713. smalltalk.addMethod(
  2714. smalltalk.method({
  2715. selector: "renderSlideOn:",
  2716. fn: function (html){
  2717. var self=this;
  2718. function $Presentation(){return smalltalk.Presentation||(typeof Presentation=="undefined"?nil:Presentation)}
  2719. function $Browser(){return smalltalk.Browser||(typeof Browser=="undefined"?nil:Browser)}
  2720. return smalltalk.withContext(function($ctx1) {
  2721. var $1,$3,$4,$2;
  2722. $1=_st(html)._div();
  2723. _st($1)._class_("section center");
  2724. $2=_st($1)._with_((function(){
  2725. return smalltalk.withContext(function($ctx2) {
  2726. _st(_st(html)._h1())._with_("About this presentation");
  2727. _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.");
  2728. _st(_st(html)._p())._with_((function(){
  2729. return smalltalk.withContext(function($ctx3) {
  2730. _st(html)._with_("Press ");
  2731. _st(_st(html)._code())._with_("←");
  2732. _st(html)._with_(" to move backward and ");
  2733. _st(_st(html)._code())._with_(" →");
  2734. return _st(html)._with_(" to move forward.");
  2735. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2736. return _st(_st(html)._p())._with_((function(){
  2737. return smalltalk.withContext(function($ctx3) {
  2738. _st(html)._with_("Open a ");
  2739. $3=_st(html)._button();
  2740. _st($3)._with_("browser");
  2741. $4=_st($3)._onClick_((function(){
  2742. return smalltalk.withContext(function($ctx4) {
  2743. return _st($Browser())._openOn_($Presentation());
  2744. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  2745. $4;
  2746. return _st(html)._with_(" to edit the source code.");
  2747. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2748. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2749. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.SweSUGAboutSlide)})},
  2750. messageSends: ["class:", "div", "with:", "h1", "p", "code", "button", "onClick:", "openOn:"]}),
  2751. smalltalk.SweSUGAboutSlide);
  2752. smalltalk.addClass('SweSUGAmberFeaturesSlide', smalltalk.SweSUGSlide, [], 'Presentation');
  2753. smalltalk.addMethod(
  2754. smalltalk.method({
  2755. selector: "id",
  2756. fn: function (){
  2757. var self=this;
  2758. return smalltalk.withContext(function($ctx1) {
  2759. return "features";
  2760. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.SweSUGAmberFeaturesSlide)})},
  2761. messageSends: []}),
  2762. smalltalk.SweSUGAmberFeaturesSlide);
  2763. smalltalk.addMethod(
  2764. smalltalk.method({
  2765. selector: "renderSlideOn:",
  2766. fn: function (html){
  2767. var self=this;
  2768. return smalltalk.withContext(function($ctx1) {
  2769. _st(_st(html)._h1())._with_("Amber features");
  2770. _st(_st(html)._ul())._with_((function(){
  2771. return smalltalk.withContext(function($ctx2) {
  2772. _st(_st(html)._li())._with_("Amber is (mostly) written in itself, including the compiler");
  2773. _st(_st(html)._li())._with_("Full Smalltalk object system, including classes & metaclasses, etc");
  2774. _st(_st(html)._li())._with_("Core libraries (streams, collections, RegExp, etc)");
  2775. _st(_st(html)._li())._with_("Web related libraries: HTML Canvas, DOM manipulation");
  2776. _st(_st(html)._li())._with_("Very good javascript integration, both ways");
  2777. _st(_st(html)._li())._with_("Full featured IDE!");
  2778. return _st(_st(html)._li())._with_((function(){
  2779. return smalltalk.withContext(function($ctx3) {
  2780. _st(html)._with_("Advanced features, including ");
  2781. _st(_st(html)._code())._with_("#doesNotUnderstand:");
  2782. _st(html)._with_(" support and ");
  2783. return _st(_st(html)._code())._with_("thisContext");
  2784. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2785. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2786. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.SweSUGAmberFeaturesSlide)})},
  2787. messageSends: ["with:", "h1", "li", "code", "ul"]}),
  2788. smalltalk.SweSUGAmberFeaturesSlide);
  2789. smalltalk.addClass('SweSUGIntroSlide', smalltalk.SweSUGSlide, [], 'Presentation');
  2790. smalltalk.addMethod(
  2791. smalltalk.method({
  2792. selector: "id",
  2793. fn: function (){
  2794. var self=this;
  2795. return smalltalk.withContext(function($ctx1) {
  2796. return "Intro";
  2797. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.SweSUGIntroSlide)})},
  2798. messageSends: []}),
  2799. smalltalk.SweSUGIntroSlide);
  2800. smalltalk.addMethod(
  2801. smalltalk.method({
  2802. selector: "renderSlideOn:",
  2803. fn: function (html){
  2804. var self=this;
  2805. return smalltalk.withContext(function($ctx1) {
  2806. var $1,$2;
  2807. $1=_st(html)._div();
  2808. _st($1)._class_("section center animate");
  2809. $2=_st($1)._with_((function(){
  2810. return smalltalk.withContext(function($ctx2) {
  2811. _st(_st(html)._img())._src_("fosdem2012/images/amber.png");
  2812. _st(html)._p_(_st(self._presentation())._author());
  2813. _st(html)._p_(_st(self._presentation())._description());
  2814. return _st(html)._p_((function(){
  2815. return smalltalk.withContext(function($ctx3) {
  2816. return _st(html)._with_(_st(self._presentation())._email());
  2817. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2818. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2819. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.SweSUGIntroSlide)})},
  2820. messageSends: ["class:", "div", "with:", "src:", "img", "p:", "author", "presentation", "description", "email"]}),
  2821. smalltalk.SweSUGIntroSlide);
  2822. smalltalk.addClass('SweSUGWhatIsAmberSlide', smalltalk.SweSUGSlide, [], 'Presentation');
  2823. smalltalk.addMethod(
  2824. smalltalk.method({
  2825. selector: "id",
  2826. fn: function (){
  2827. var self=this;
  2828. return smalltalk.withContext(function($ctx1) {
  2829. return "WhatIsAmber";
  2830. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.SweSUGWhatIsAmberSlide)})},
  2831. messageSends: []}),
  2832. smalltalk.SweSUGWhatIsAmberSlide);
  2833. smalltalk.addMethod(
  2834. smalltalk.method({
  2835. selector: "renderSlideOn:",
  2836. fn: function (html){
  2837. var self=this;
  2838. return smalltalk.withContext(function($ctx1) {
  2839. var $1,$3,$4,$2;
  2840. $1=_st(html)._div();
  2841. _st($1)._class_("section center");
  2842. $2=_st($1)._with_((function(){
  2843. return smalltalk.withContext(function($ctx2) {
  2844. _st(html)._img_("esug2011/images/balloon.jpg");
  2845. _st(_st(html)._h1())._with_("Amber in a nutshell");
  2846. _st(_st(html)._h2())._with_("Amber is a true Smalltalk");
  2847. _st(_st(html)._h2())._with_("It compiles to and runs on/in JavaScript");
  2848. _st(_st(html)._h2())._with_("MIT license");
  2849. $3=_st(html)._h2();
  2850. _st($3)._class_("fancy");
  2851. $4=_st($3)._with_("Amber is way cool!");
  2852. return $4;
  2853. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2854. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.SweSUGWhatIsAmberSlide)})},
  2855. messageSends: ["class:", "div", "with:", "img:", "h1", "h2"]}),
  2856. smalltalk.SweSUGWhatIsAmberSlide);
  2857. smalltalk.addClass('SweSUGWorkspaceSlide', smalltalk.SweSUGSlide, [], 'Presentation');
  2858. smalltalk.addMethod(
  2859. smalltalk.method({
  2860. selector: "backgroundColor",
  2861. fn: function (){
  2862. var self=this;
  2863. return smalltalk.withContext(function($ctx1) {
  2864. return "#18bd7d";
  2865. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.SweSUGWorkspaceSlide)})},
  2866. messageSends: []}),
  2867. smalltalk.SweSUGWorkspaceSlide);
  2868. smalltalk.addMethod(
  2869. smalltalk.method({
  2870. selector: "id",
  2871. fn: function (){
  2872. var self=this;
  2873. return smalltalk.withContext(function($ctx1) {
  2874. return "workspace";
  2875. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.SweSUGWorkspaceSlide)})},
  2876. messageSends: []}),
  2877. smalltalk.SweSUGWorkspaceSlide);
  2878. smalltalk.addMethod(
  2879. smalltalk.method({
  2880. selector: "renderSlideOn:",
  2881. fn: function (html){
  2882. var self=this;
  2883. var workspace;
  2884. function $SourceArea(){return smalltalk.SourceArea||(typeof SourceArea=="undefined"?nil:SourceArea)}
  2885. return smalltalk.withContext(function($ctx1) {
  2886. var $1,$3,$4,$5,$6,$7,$8,$2;
  2887. workspace=_st($SourceArea())._new();
  2888. $1=_st(html)._div();
  2889. _st($1)._class_("section center");
  2890. $2=_st($1)._with_((function(){
  2891. return smalltalk.withContext(function($ctx2) {
  2892. _st(_st(html)._h1())._with_("Give Amber a try!");
  2893. _st(workspace)._renderOn_(html);
  2894. return _st(_st(html)._div())._with_((function(){
  2895. return smalltalk.withContext(function($ctx3) {
  2896. $3=_st(html)._button();
  2897. _st($3)._with_("DoIt");
  2898. $4=_st($3)._onClick_((function(){
  2899. return smalltalk.withContext(function($ctx4) {
  2900. return _st(workspace)._doIt();
  2901. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  2902. $4;
  2903. $5=_st(html)._button();
  2904. _st($5)._with_("PrintIt");
  2905. $6=_st($5)._onClick_((function(){
  2906. return smalltalk.withContext(function($ctx4) {
  2907. return _st(workspace)._printIt();
  2908. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  2909. $6;
  2910. $7=_st(html)._button();
  2911. _st($7)._with_("InspectIt");
  2912. $8=_st($7)._onClick_((function(){
  2913. return smalltalk.withContext(function($ctx4) {
  2914. return _st(workspace)._inspectIt();
  2915. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  2916. return $8;
  2917. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2918. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2919. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html,workspace:workspace},smalltalk.SweSUGWorkspaceSlide)})},
  2920. messageSends: ["new", "class:", "div", "with:", "h1", "renderOn:", "button", "onClick:", "doIt", "printIt", "inspectIt"]}),
  2921. smalltalk.SweSUGWorkspaceSlide);
  2922. smalltalk.addClass('WhatIsJtalkSlide', smalltalk.Slide, [], 'Presentation');
  2923. smalltalk.addMethod(
  2924. smalltalk.method({
  2925. selector: "id",
  2926. fn: function (){
  2927. var self=this;
  2928. return smalltalk.withContext(function($ctx1) {
  2929. return "WhatIsJtalk";
  2930. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.WhatIsJtalkSlide)})},
  2931. messageSends: []}),
  2932. smalltalk.WhatIsJtalkSlide);
  2933. smalltalk.addMethod(
  2934. smalltalk.method({
  2935. selector: "renderSlideOn:",
  2936. fn: function (html){
  2937. var self=this;
  2938. return smalltalk.withContext(function($ctx1) {
  2939. var $1,$3,$4,$2;
  2940. $1=_st(html)._div();
  2941. _st($1)._class_("section center");
  2942. $2=_st($1)._with_((function(){
  2943. return smalltalk.withContext(function($ctx2) {
  2944. _st(_st(html)._h1())._with_("Jtalk in a nutshell");
  2945. _st(_st(html)._h2())._with_("Jtalk is an implementation of Smalltalk");
  2946. _st(_st(html)._h2())._with_("Jtalk runs on top of the JavaScript runtime");
  2947. _st(_st(html)._h2())._with_("Jtalk is an opensource project (MIT)");
  2948. $3=_st(html)._h2();
  2949. _st($3)._class_("fancy");
  2950. $4=_st($3)._with_("Jtalk is cool!");
  2951. return $4;
  2952. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2953. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html},smalltalk.WhatIsJtalkSlide)})},
  2954. messageSends: ["class:", "div", "with:", "h1", "h2"]}),
  2955. smalltalk.WhatIsJtalkSlide);
  2956. smalltalk.addClass('WorkspaceSlide', smalltalk.Slide, [], 'Presentation');
  2957. smalltalk.addMethod(
  2958. smalltalk.method({
  2959. selector: "backgroundColor",
  2960. fn: function (){
  2961. var self=this;
  2962. return smalltalk.withContext(function($ctx1) {
  2963. return "#18bd7d";
  2964. }, function($ctx1) {$ctx1.fill(self,"backgroundColor",{},smalltalk.WorkspaceSlide)})},
  2965. messageSends: []}),
  2966. smalltalk.WorkspaceSlide);
  2967. smalltalk.addMethod(
  2968. smalltalk.method({
  2969. selector: "id",
  2970. fn: function (){
  2971. var self=this;
  2972. return smalltalk.withContext(function($ctx1) {
  2973. return "workspace";
  2974. }, function($ctx1) {$ctx1.fill(self,"id",{},smalltalk.WorkspaceSlide)})},
  2975. messageSends: []}),
  2976. smalltalk.WorkspaceSlide);
  2977. smalltalk.addMethod(
  2978. smalltalk.method({
  2979. selector: "renderSlideOn:",
  2980. fn: function (html){
  2981. var self=this;
  2982. var workspace;
  2983. function $SourceArea(){return smalltalk.SourceArea||(typeof SourceArea=="undefined"?nil:SourceArea)}
  2984. return smalltalk.withContext(function($ctx1) {
  2985. var $1,$3,$4,$5,$6,$7,$8,$2;
  2986. workspace=_st($SourceArea())._new();
  2987. $1=_st(html)._div();
  2988. _st($1)._class_("section center");
  2989. $2=_st($1)._with_((function(){
  2990. return smalltalk.withContext(function($ctx2) {
  2991. _st(_st(html)._h1())._with_("Give Jtalk a try!");
  2992. _st(workspace)._renderOn_(html);
  2993. return _st(_st(html)._div())._with_((function(){
  2994. return smalltalk.withContext(function($ctx3) {
  2995. $3=_st(html)._button();
  2996. _st($3)._with_("DoIt");
  2997. $4=_st($3)._onClick_((function(){
  2998. return smalltalk.withContext(function($ctx4) {
  2999. return _st(workspace)._doIt();
  3000. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  3001. $4;
  3002. $5=_st(html)._button();
  3003. _st($5)._with_("PrintIt");
  3004. $6=_st($5)._onClick_((function(){
  3005. return smalltalk.withContext(function($ctx4) {
  3006. return _st(workspace)._printIt();
  3007. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  3008. $6;
  3009. $7=_st(html)._button();
  3010. _st($7)._with_("InspectIt");
  3011. $8=_st($7)._onClick_((function(){
  3012. return smalltalk.withContext(function($ctx4) {
  3013. return _st(workspace)._inspectIt();
  3014. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  3015. return $8;
  3016. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3017. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3018. return self}, function($ctx1) {$ctx1.fill(self,"renderSlideOn:",{html:html,workspace:workspace},smalltalk.WorkspaceSlide)})},
  3019. messageSends: ["new", "class:", "div", "with:", "h1", "renderOn:", "button", "onClick:", "doIt", "printIt", "inspectIt"]}),
  3020. smalltalk.WorkspaceSlide);
  3021. })(global_smalltalk,global_nil,global__st);