-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
625 lines (522 loc) · 21.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=1024" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>impress.js | presentation tool based on the power of CSS3 transforms and transitions in modern browsers | by Bartek Szopka @bartaz</title>
<meta name="description" content="impress.js is a presentation tool based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com." />
<meta name="author" content="Bartek Szopka" />
<link href="css/ember-presentation.css" rel="stylesheet" />
<link rel="shortcut icon" href="favicon.png" />
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
</head>
<body class="impress-not-supported">
<div class="fallback-message">
<p>Your browser <b>doesn't support the features required</b> by impress.js, so you are presented with a simplified version of this presentation.</p>
<p>For the best experience please use the latest <b>Chrome</b>, <b>Safari</b> or <b>Firefox</b> browser.</p>
</div>
<!--
Now that's the core element used by impress.js.
That's the wrapper for your presentation steps. In this element all the impress.js magic happens.
It doesn't have to be a `<div>`. Only `id` is important here as that's how the script find it.
You probably won't need it now, but there are some configuration options that can be set on this element.
To change the duration of the transition between slides use `data-transition-duration="2000"` giving it
a number of ms. It defaults to 1000 (1s).
You can also control the perspective with `data-perspective="500"` giving it a number of pixels.
It defaults to 1000. You can set it to 0 if you don't want any 3D effects.
If you are willing to change this value make sure you understand how CSS perspective works:
https://developer.mozilla.org/en/CSS/perspective
But as I said, you won't need it for now, so don't worry - there are some simple but interesing things
right around the corner of this tag ;)
-->
<div id="impress">
<div class="step" id="title" data-x="0" data-y="0">
<h1>Ember.js</h1>
<h3>A Single Page Application Framework</h3>
<img src="images/emberjs-logo.png" />
</div>
<div class="step" id="contents" data-x="1200" data-y="0">
<h2>Contents</h2>
<ul>
<li>Intro</li>
<li>History of web pages</li>
<li>Problems writting SPAs/RIAs</li>
<li>Ember.js to the rescue</li>
<li>Problems with Ember.js</li>
<li>Conclusion</li>
<li>Resources</li>
<li>Questions</li>
</ul>
</div>
<div class="step" id="" data-x="1600" data-y="500" data-z="600" data-rotate-x="90">
<img src="images/breaking-bad.jpg" />
</div>
<div class="step intro" id="meddle-intro" data-x="2400" data-y="0">
<h3>Николай Цветинов - Meddle</h3>
<p>Web developer from the darker times of the web.</p>
<p>Used to like Java and all the surrounding ecosystem.</p>
<p>Now enlightened by Ruby and it's world.</p>
<p>Plays with Ember.js since August 2012.</p>
</div>
<div class="step intro" id="vesko-intro" data-x="0" data-y="1200">
<h3>Веселин Николов</h3>
<p>Front-end developer from the brighter times of the web.</p>
<p>All around a fan of JavaScript and it's surroundings.</p>
<p>Plays with Ember.js since August 2012 too.</p>
</div>
<div class="step" id="presentation-intro" data-x="0" data-y="2400">
<h3>What is the purpose of this presentation?</h3>
<img src="images/confused-monkey.jpg" />
</div>
<div class="step" id="history-title" data-x="1200" data-y="2400">
<h2>How we got here?</h2>
<img src="images/evolution-of-mario.gif" />
</div>
<div class="step" data-x="2400" data-y="2400">
<h3>The humble beginnings</h3>
<img src="images/first-web-page.jpg" />
</div>
<div class="step" data-x="0" data-y="3600">
<h3>Java Applets</h3>
<img src="images/java_applet.jpg" />
</div>
<div class="step" id="flash" data-x="0" data-y="4800">
<h3>Rise of the Flash</h3>
<img src="images/future-splash-animator-cd.jpg" />
</div>
<div class="step" data-x="1200" data-y="4800">
<img src="images/AJAX-logo.jpg" />
</div>
<div class="step" id="ajax-transform" data-x="2400" data-y="4800">
<h3>The AJAX transformation</h3>
<img src="images/before-and-after-ajax.png" />
</div>
<div class="step" id="ie-browser" data-x="5000" data-y="0">
<h3>Browsers of the time</h3>
<img src="images/ie5.jpg" />
</div>
<div class="step" id="netscape-browser" data-x="5400" data-y="0" data-z="-800" data-rotate-y="90">
<img src="images/netscape-404.png" />
</div>
<div class="step" id="mozilla-browser" data-x="5000" data-y="400" data-z="-800" data-rotate-x="90" data-rotate-y="180">
<img src="images/mozilla.gif" />
</div>
<div class="step" id="today" data-x="5000" data-y="1200">
<p>TODAY</p>
</div>
<div class="step" id="internet-of-things" data-x="5000" data-y="2400">
<img src="images/web-of-things.gif" />
</div>
<div class="step" id="spa-examples" data-x="5000" data-y="3600">
<h3>Single Page Application</h3>
<img src="images/gmail.png">
<img src="images/soundcloud.jpg">
<img src="images/trello.jpg">
<img src="images/google-maps-views-big.jpg">
</div>
<div class="step" id="spa-ajax" data-x="5000" data-y="4800">
<h3>How SPAs use AJAX</h3>
<img src="images/spa-ajax.png" />
</div>
<div class="step" id="writting-spa" data-x="6200" data-y="1800">
<h3>Writting SPAs</h3>
<img src="images/frustrated-guy-clarkk.jpg" />
</div>
<div class="step" id="before-after" data-x="7400" data-y="3000">
<img src="images/before-and-after.jpg" />
</div>
<div class="step" id="spa-frameworks" data-x="8600" data-y="1800">
<h3>SPA frameworks and libraries</h3>
<img src="images/emberjs-logo.png" />
<img src="images/angularjs.jpeg" />
<img src="images/backbone.png" />
<img src="images/can.png" />
<img src="images/ko-logo.png" />
<img src="images/batmanjs.png" />
</div>
<div class="step" id="ember-title" data-x="9800" data-y="0">
<img src="images/emberjs-logo.png" />
<h3>A framework for creating <span class="bold">ambitious</span> web applications.</h3>
</div>
<div class="step" data-x="9800" data-y="1200">
<h2>Features:</h2>
<ul>
<li>Two-way data bindings</li>
<li>Routing</li>
<li>Custom web components</li>
<li>Convention over configuration</li>
<li>Object model</li>
</ul>
</div>
<div class="step" id="ember-team" data-x="9800" data-y="2400">
<h3>The people behind Ember</h3>
<p>Yehuda Katz: contributes to jQuery, Rails. Author of Handlebars.</p>
<p>Tom Dale, Peter Wagenet, Trek Glowacki & many more</p>
</div>
<div class="step" id="object-model-title" data-x="9800" data-y="3600">
<h3>Ember Object model</h3>
<img src="images/building-blocks.jpg" />
</div>
<div class="step" data-x="9800" data-y="4800">
<h3>Creating custom classes:</h3>
<pre class="prettyprint"><code class="language-javascript">Man = Ember.Object.extend({
hobbies: [],
dislikes: [],
firstName: '',
familyName: '',
sayCatchPhrase: function () { }
});</code></pre>
</div>
<div class="step" data-x="12000" data-y="0">
<h3>Extending custom classes</h3>
<pre class="prettyprint"><code class="language-javascript">AverageJoe = Man.extend({
hobbies: ['lying around'],
dislikes: ['working'],
sayCatchPhrase: function () {
console.log("Let's go to the coffee shop?");
}
});</code></pre>
</div>
<div class="step" data-x="13400" data-y="0">
<h3>Creating instances</h3>
<pre class="prettyprint"><code class="language-javascript">var arnold = Man.create({
firstName: 'Arnold',
familyName: 'Schwarzenegger'
hobbies: ['kicking asses', 'shooting with his shotgun',
'being BACK!'],
dislikes: ['someone else eating his cookies'],
sayCatchPhrase: function () {
console.log('I WILL BE BACK!!!');
}
});</code></pre>
</div>
<div class="step" id="arnold" data-x="14600" data-y="1200">
<img src="images/arnold-glass.jpg" />
</div>
<div class="step" data-x="12000" data-y="1200">
<h3>Using mixins(1)</h3>
<pre class="prettyprint"><code class="language-javascript">SuperPowers = Ember.Mixin.create({
powers: []
});
SuperHero = Man.extend(SuperPowers, {
});</code></pre>
</div>
<div class="step" data-x="12000" data-y="2400">
<h3>Using mixins(2)</h3>
<pre class="prettyprint"><code class="language-javascript">var superMario = SuperHero.create({
firstName: 'Mario',
hobbies: ['saving the princess', 'eating shrooms',
'stomping goombas'],
dislikes: ['turtles', 'goombas'],
powers: ['jumping', 'breaking bricks', 'going into pipes',
'fire flower!'],
sayCatchPhrase: function() {
console.log("Ita sa mii Mario!!!");
}
});</code></pre>
</div>
<div class="step" data-x="13400" data-y="2400">
<h3>Computed properties(1)</h3>
<pre class="prettyprint"><code class="language-javascript">Bulgarian = AverageJoe.extend({
nickname: '',
sayCatchPhrase: function() {
console.log("Let's drink some Beer/Rakia/Rum/Antifreeze!?");
},
fullName: function() {
var firstName = this.get('firstName'),
familyName = this.get('familyName'),
nickname = this.get('nickname');
return "%@ %@ - %@".fmt(firstName, familyName, nickname);
}.property('firstName', 'familyName', 'nickname')
});</code></pre>
</div>
<div class="step" data-x="12000" data-y="3600">
<h3>Computed properties(2)</h3>
<pre class="prettyprint"><code class="language-javascript">var meddle = Bulgarian.create({
firstName: 'Nickolay',
familyName: 'Tzvetinov',
nickname: 'Meddle'
});
var misho = Bulgarian.create({
firstName: 'Mihail',
familyName: 'Mihailov',
nickname: 'Shamara'
});
meddle.fullName(); // "Nickolay Tzvetinov - Meddle"
misho.fullName(); // "Mihail Mihailov - Shamara"</code></pre>
</div>
<div class="step" id="goodies" data-x="12000" data-y="4800">
<h3>Lots of goodies</h3>
<img src="images/sugar-spice-everything-nice.jpg" />
</div>
<div class="step" id="ember-architecture" data-x="13400" data-y="4800">
<h3>Architecture</h3>
<img src="images/emberjs-architecture.png" />
</div>
<div class="step" id="define-app" data-x="14600" data-y="3600">
<h3>Defining an application</h3>
<pre class="prettyprint"><code class="language-javascript">window.TaskManagement = Ember.Application.create({
rootElement: '#ember_content'
});</code></pre>
</div>
<div class="step" id="define-router" data-x="17000" data-y="0">
<h3>Defining the router</h3>
<p>The router is responsible for displaying templates, loading data, and otherwise setting up application state.</p>
<pre class="prettyprint"><code class="language-javascript">TaskManagement.Router.map(function () {
this.resource('tasks', function () {
this.route('new');
this.resource('task', function () {
this.route('view', {
path: '/:task_id'
});
});
});
});</code></pre>
<pre class="urls">/tasks
/tasks/new
/tasks/task
/tasks/task/view/[id]</pre>
</div>
<div class="step" data-x="18200" data-y="0">
<h3>Route</h3>
<p>The route is a definition of a state of the application. It specifies how to get the data for the state.</p>
<pre class="prettyprint"><code class="language-javascript">TaskManagement.TasksRoute = Ember.Route.extend({
model: function() {
return TaskManagement.Task.find();
},
actions: {
destroyTask: function(task) {
task.delete();
}
}
});</code></pre>
</div>
<div class="step" data-x="19400" data-y="0">
<h3>Controller</h3>
<p>Controllers allow you to decorate your models with display logic. They keep the application state.</p>
<pre class="prettyprint"><code class="language-javascript">TaskManagement.TasksController = Ember.ArrayController.extend({
sortProperties: ['description'],
actions: {
sort: function(prop) {
return this.set('sortProperties', [prop]);
}
}
});</code></pre>
</div>
<div class="step" data-x="17000" data-y="1200">
<img src="images/hang-on.jpg" />
</div>
<div class="step" id="views-templates-1" data-x="17000" data-y="2400">
<h3>Views & Templates(1)</h3>
<pre class="prettyprint"><code class="language-javascript"><h1>Tasks</h1>
<p> {{#linkTo "tasks.new" class="btn"}}
<i class="icon-plus-sign"></i> New task
{{/linkTo}}
</p>
...</code></pre>
</div>
<div class="step" id="views-templates-2" data-x="18200" data-y="2400">
<h3>Views & Templates(2)</h3>
<pre class="prettyprint"><code class="language-javascript">...
<table>
<thead>
<tr>
<th> <a {{action sort "created_at"}}> Created: </a> </th>
<th> <a {{action sort "owner.email"}}> Assigner: </a> </th>
<th> <a {{action sort "performer.email"}}> Assignee: </a> </th>
<th> <a {{action sort "description"}}> Description: </a> </th>
<th> <a {{action sort "state"}}> Status: </a> </th>
<th> Options </th>
</tr>
</thead>
...</code></pre>
</div>
<div class="step" id="views-templates-3" data-x="19400" data-y="2400">
<h3>Views & Templates(3)</h3>
<pre class="prettyprint"><code class="language-javascript">...
<tbody>
{{#each task in controller.arrangedContent}}
<tr>
<td> {{task.created_at}} </td>
<td> {{task.owner.email}} </td>
<td> {{task.performer.email}} </td>
<td class="task-description"> {{task.description}} </td>
<td> {{task.state}} </td>
...</code></pre>
</div>
<div class="step" id="views-templates-4" data-x="17000" data-y="3600">
<h3>Views & Templates(4)</h3>
<pre class="prettyprint"><code class="language-javascript">...
<td> <div>
{{#linkTo "task.view" task}}
<i class="icon-eye-open"></i>
{{/linkTo}}
<a {{action destroyTask task}}>
<i class="icon-remove"></i>
</a>
</div> </td>
</tr>
{{/each}}
</tbody>
</table></code></pre>
</div>
<div class="step" data-x="17000" data-y="4800">
<img src="images/happy-minions.jpg" />
</div>
<div class="step" id="model" data-x="18200" data-y="4800">
<h3>Model</h3>
<img src="images/mario-objects.jpg" />
</div>
<div class="step" id="ember-data" data-x="19400" data-y="4800">
<h3>Ember Data</h3>
<img src="images/tomster-under-construction-sm.png" />
<ul>
<li>Adapters for different storages</li>
<li>CRUD methods</li>
<li>Model lifecycle</li>
<li>Relations between models</li>
<li><span class="bold">NOT</span> production ready</li>
</ul>
</div>
<div class="step" id="custom-adapters" data-x="22000" data-y="0">
<h3>Custom adapters</h3>
<div>
<img src="images/kompot-scaled.jpg" />
<img src="images/lutenica-scaled.jpg" />
<img src="images/rakia-buddies-scaled.jpg" />
<img src="images/turshiq-scaled.jpg" />
</div>
</div>
<div class="step" id="web-apps" data-x="23200" data-y="0">
<h3>Types of mobile applications</h3>
<img src="images/app-web-native.jpg" />
</div>
<div class="step" data-x="24400" data-y="1200">
<img src="images/livemargin-reader.jpg" />
</div>
<div class="step" data-x="22000" data-y="1200">
<h3>Testing</h3>
<img src="images/dummy.jpg" />
</div>
<div class="step" data-x="22000" data-y="2400">
<h3>Now you are playing with power</h3>
<img src="images/Super_Mario_Brothers_Fanart_by_living_oxymoron.jpg" />
</div>
<div class="step" data-x="23200" data-y="2400">
<h3>...not quite</h3>
<ul>
<li>Bad for SEO, not crawlable by default</li>
<li>Quite a steep learning curve</li>
<li>Used to be quite unstable</li>
<li>Handlebars template syntax</li>
<li>Not straightforward to implement lazy models</li>
</ul>
</div>
<div class="step" id="the-end" data-x="22000" data-y="3600">
<h3>In the end</h3>
<img src="images/mario-end.gif" />
</div>
<div id="ember-resources" class="step" data-x="23400" data-y="3800">
<h3>Resources:</h3>
<ul>
<li><a target="_blank" href="http://emberjs.com/">Ember.js official site</a></li>
<li><a target="_blank" href="http://discuss.emberjs.com/">Ember.js official discussion forum</a></li>
<li><a target="_blank" href="https://github.com/discourse/discourse">Discourse source code - next level forum written in Ember.js</a></li>
<li><a target="_blank" href="https://twitter.com/emberjsbulgaria">Ember.js Bulgaria twitter</a></li>
<li><a target="_blank" href="https://github.com/meddle0x53/tmangr">Taskmanager (examples in presentation) source code</a></li>
<li><a target="_blank" href=" https://github.com/veselinn/ember-openfest-presentation">Presentation source code</a></li>
</ul>
</div>
<div class="step" data-x="22000" data-y="4800">
<h3>Resources:</h3>
<ul>
<li><a target="_blank" href="http://meddle0x53.wordpress.com/">Meddle's blog</a></li>
<li><a target="_blank" href="http://www.manning.com/skeie/">Ember.js in Action book</a></li>
<li><a target="_blank" href="http://emberweekly.com/">Emberweekly - the latest Ember.js news, tips and code</a></li>
<li><a target="_blank" href="https://groups.google.com/forum/#!forum/ember-js-bulgaria">Ember.js Bulgaria google group</a></li>
</ul>
</div>
<div class="step" id="questions" data-x="24200" data-y="4800">
<h3>Questions?</h3>
<img src="images/monkey-thinking.jpg" />
</div>
<div id="overview" class="step" data-x="12000" data-y="2400" data-scale="22" data-rotate-z="-9">
</div>
</div>
<!--
Hint is not related to impress.js in any way.
But it can show you how to use impress.js features in creative way.
When the presentation step is shown (selected) its element gets the class of "active" and the body element
gets the class based on active step id `impress-on-ID` (where ID is the step's id)... It may not be
so clear because of all these "ids" in previous sentence, so for example when the first step (the one with
the id of `bored`) is active, body element gets a class of `impress-on-bored`.
This class is used by this hint below. Check CSS file to see how it's shown with delayed CSS animation when
the first step of presentation is visible for a couple of seconds.
...
And when it comes to this piece of JavaScript below ... kids, don't do this at home ;)
It's just a quick and dirty workaround to get different hint text for touch devices.
In a real world it should be at least placed in separate JS file ... and the touch content should be
probably just hidden somewhere in HTML - not hard-coded in the script.
Just sayin' ;)
-->
<div class="hint">
<p>Use a spacebar or arrow keys to navigate</p>
</div>
<script>
if ("ontouchstart" in document.documentElement) {
document.querySelector(".hint").innerHTML = "<p>Tap on the left or right to navigate</p>";
}
</script>
<!--
Last, but not least.
To make all described above really work, you need to include impress.js in the page.
I strongly encourage to minify it first.
In here I just include full source of the script to make it more readable.
You also need to call a `impress().init()` function to initialize impress.js presentation.
And you should do it in the end of your document. Not only because it's a good practice, but also
because it should be done when the whole document is ready.
Of course you can wrap it in any kind of "DOM ready" event, but I was too lazy to do so ;)
-->
<script src="js/google-code-prettify/run_prettify.js"></script>
<script src="js/impress.js"></script>
<script>
var impressApi = impress();
impressApi.init();
document.addEventListener("keyup", function ( event ) {
if ( event.keyCode === 65 ) {
// 'a'
impressApi.goto( 'ember-architecture' );
}
if ( event.keyCode === 66 ) {
// 'b'
window.history.back()
}
if ( event.keyCode === 67 ) {
// 'c'
impressApi.goto( 'contents' );
}
if ( event.keyCode === 69 ) {
// 'e'
impressApi.goto( 'ember-title' );
}
if ( event.keyCode === 72 ) {
// 'h'
impressApi.goto( 'history-title' );
}
if ( event.keyCode === 79 ) {
// 'o'
impressApi.goto( 'overview' );
}
if ( event.keyCode === 82 ) {
// 'r'
impressApi.goto( 'ember-resources' );
}
if ( event.keyCode === 84 ) {
// 't'
impressApi.goto( 'title' );
}
}, false);
</script>
</body>
</html>