-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtest.html5rocks_a.html
462 lines (398 loc) · 16.1 KB
/
test.html5rocks_a.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML5 Presentation</title>
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans+Mono">
<link rel="stylesheet" href="src/prettify/prettify.css" id="prettify-link" disabled>
<link rel="stylesheet" href="styles/fonts.css" media="screen">
<link rel="stylesheet" href="styles/presentation.css" media="screen">
<link rel="stylesheet" href="styles/common.css" media="screen">
<!-- todo: check - is media="screen" needed? what is the "default"? -->
<link rel="stylesheet" href="styles/default.css" class="theme" media="screen">
<link rel="stylesheet" href="styles/moon.css" class="theme" media="screen">
<link rel="stylesheet" href="styles/sand.css" class="theme" media="screen">
<link rel="stylesheet" href="styles/sea_wave.css" class="theme" media="screen">
</head>
<body>
<div id="flex-container">
<nav id="helpers">
<button title="Previous slide" id="nav-prev" class="nav-prev">⇽</button>
<button title="Jump to a random slide" id="slide-no">5</button>
<button title="Next slide" id="nav-next" class="nav-next">⇾</button>
<menu>
<button type="checkbox" data-command="toc" title="Table of Contents" class="toc">TOC</button>
<!-- <button type="checkbox" data-command="resources" title="View Related Resources">☆</button> -->
<button type="checkbox" data-command="notes" title="View Slide Notes">✏</button>
<button type="checkbox" data-command="source" title="View slide source">↻</button>
<button type="checkbox" data-command="help" title="View Help">?</button>
</menu>
</nav>
<div class="slides">
<div id="presentation-counter">Loading...</div>
<div class="slide" id="landing-slide">
<section class="middle">
<p>This presentation is an HTML5 website</p>
<p>Press <span id="left-init-key" class="key">→</span> key to advance.</p>
</section>
<aside class="note">
<section>
Welcome! (This field is for speaker notes and commentary.)
</section>
</aside>
</div>
<div class="slide" id="controls-slide">
<header>Slides controls</header>
<section>
<ul>
<li><span class="key">←</span> and <span class="key">→</span> to move around.</li>
<li><span class="key">Ctrl/Command</span> and <span class="key">+</span> or <span class="key">-</span> to zoom in and out if slides don’t fit.</li>
<li><span class="key">S</span> to view page source.</li>
<li><span class="key">T</span> to change the theme.</li>
<li><span class="key">H</span> to toggle syntax highlight.</li>
<li><span class="key">N</span> to toggle speaker notes.</li>
<li><span class="key">3</span> to toggle 3D effect.</li>
<li><span class="key">0</span> to toggle help.</li>
</ul>
</section>
</div>
<div class="slide" id="title-slide">
<section class="middle">
<hgroup>
<h1>
HTML5*
</h1>
<h2>
Web Development to the next level
</h2>
</hgroup>
<p>*Including other next generation technologies of the Web Development stack</p>
</section>
</div>
<div class="slide" id="timeline-slide">
<header>Rough Timeline of Web Technologies</header>
<section>
<ul id="timeline">
<li data-auto><span class="year">1991</span> <span class="html">HTML</span></li>
<li data-auto><span class="year">1994</span> <span class="html">HTML 2</span></li>
<li data-auto><span class="year">1996</span> <span class="css">CSS 1</span> + <span class="js">JavaScript</span></li>
<li data-auto><span class="year">1997</span> <span class="html">HTML 4</span></li>
<li data-auto><span class="year">1998</span> <span class="css">CSS 2</span></li>
<li data-auto><span class="year">2000</span> <span class="html">XHTML 1</span></li>
<li><span class="year"><em class="stroke">2002</em></span> <span class="css">Tableless Web Design</span></li>
<li><span class="year"><em class="stroke">2005</em></span> <span class="js">AJAX</span></li>
<li><span class="year"><em class="stroke">2009</em></span> <span class="html">HTML 5</span></li>
</ul>
</section>
</div>
<div class="slide" id="formula-intro-slide">
<section class="middle formula" data-build>
HTML5 ~=
<span class="html">HTML</span>
+
<span class="css">CSS</span>
+
<span class="js">JS</span>
</section>
</div>
<div class="slide" id="table-of-contents">
<header><h1>Today, we will cover...</h1></header>
<section>
<ul id="toc-list">
</ul>
</section>
</div>
<div class="slide transitionSlide" id="offline-storage-title">
<section class="middle">
<h2>Offline / Storage</h2>
<p>Expect the unexpected</p>
<img src="http://www.html5rocks.com/static/images/identity/classes_64/HTML5_Offline_Storage_64.png" title="HTML5 Offline & Storage" alt="HTML5 Offline & Storage">
</section>
</div>
<div class="slide offline-storage" id="web-storage">
<header><span class="js">JS</span> <h1>Web Storage</h1></header>
<section>
<pre>
// use localStorage for persistent storage
// use sessionStorage for per tab storage
saveButton.addEventListener('click', function () {
window.<b>localStorage</b>.<b>setItem</b>('value', area.value);
window.<b>localStorage</b>.<b>setItem</b>('timestamp', (new Date()).getTime());
}, false);
textarea.value = window.<b>localStorage</b>.<b>getItem</b>('value');
</pre>
</section>
</div>
<div class="slide transitionSlide" id="realtime-title">
<section class="middle">
<h2>Realtime / Communication</h2>
<p>Stay connected</p>
<img src="http://www.html5rocks.com/static/images/identity/classes_64/HTML5_Connectivity_64.png" title="HTML5 Realtime & Communication" alt="HTML5 Realtime & Communication">
</section>
</div>
<div class="slide realtime-communication" id="web-workers">
<header><span class="js">JS</span> <h1>Web Workers</h1></header>
<section>
main.js:
<pre>
var worker = new <b>Worker</b>('task.js');
worker.<b>onmessage</b> = function(event) { alert(event.data); };
worker.<b>postMessage</b>('data');
</pre>
task.js:
<pre>
self.<b>onmessage</b> = function(event) {
// Do some work.
self.<b>postMessage</b>("recv'd: " + event.data);
};
</pre>
</section>
</div>
<div class="slide transitionSlide" id="hardware-access-title">
<section class="middle">
<h2>File / Hardware Access</h2>
<p>Deeper integration with the Operating System</p>
<img src="http://www.html5rocks.com/static/images/identity/classes_64/HTML5_Device_Access_64.png" title="HTML5 Device Access" alt="HTML5 Device Access">
</section>
</div>
<div class="slide device-access" id="native-drag-and-drop">
<header><span class="js">JS</span> <h1>Native Drag & Drop</h1></header>
<section id="dnd-section">
<pre>document.addEventListener(<em>'dragstart'</em>, function(event) {
event.<b>dataTransfer.setData</b>('text', 'Customized text');
event.<b>dataTransfer.effectAllowed</b> = 'copy';
}, false);
</pre>
</section>
</div>
<div class="slide transitionSlide" id="semantics-markup-title">
<section class="middle">
<h2>Semantics & Markup</h2>
<p>More meaningful elements</p>
<img src="http://www.html5rocks.com/static/images/identity/classes_64/HTML5_Semantics_64.png" title="HTML5 Semantics & Markup" alt="HTML5 Semantics & Markup">
</section>
</div>
<div class="slide semantics" id="semantic-tags-1">
<header><span class="html">HTML</span> <h1>Better semantic tags</h1></header>
<section>
<pre class="two-column"><body>
<<b>header</b>>
<<b>hgroup</b>>
<h1>Page title</h1>
<h2>Page subtitle</h2>
</hgroup>
</header>
<<b>nav</b>>
<ul>
Navigation...
</ul>
</nav>
<<b>section</b>>
<<b>article</b>>
<<b>header</b>>
<h1>Title</h1>
</header>
<section>
Content...
</section>
</article>
<article>
<header>
<h1>Title</h1>
</header>
<section>
Content...
</section>
</article>
</section>
<<b>aside</b>>
Top links...
</aside>
<<b>figure</b>>
<img src="..."/>
<<b>figcaption</b>>Chart 1.1</figcaption>
</figure>
<<b>footer</b>>
Copyright ©<br> <<b>time</b> <b>datetime</b>="2010-11-08">2010</time>.
</footer>
</body>
</pre>
</section>
</div>
<div class="slide transitionSlide" id="graphics-multimedia-title">
<section class="middle">
<h2>Graphics / Multimedia</h2>
<p>2D & 3D</p>
<img src="http://www.html5rocks.com/static/images/identity/classes_64/HTML5_3D_Effects_64.png" title="HTML5 3D & Effects" alt="HTML5 3D & Effects">
<img src="http://www.html5rocks.com/static/images/identity/classes_64/HTML5_Multimedia_64.png" title="HTML5 Multimedia" alt="HTML5 Multimedia">
</section>
</div>
<div class="slide multimedia" id="video-audio">
<header><span class="html">HTML</span> <span class="js">JS</span> <h1>Audio + Video</h1></header>
<section>
<pre><<b>audio</b> id="audio" src="sound.mp3" <b>controls</b>></audio>
document.getElementById("audio").<b>muted</b> = false;
</pre>
<pre>
<<b>video</b> id="video" src="movie.webm" <b>autoplay</b> <b>controls</b>></video>
document.getElementById("video").<b>play</b>();
</pre>
</section>
</div>
<div class="slide transitionSlide" id="css3-title">
<section class="middle">
<h2>CSS3</h2>
<p>Presentation & Styling</p>
<img src="http://www.html5rocks.com/static/images/identity/classes_64/HTML5_Styling_64.png" title="HTML5 Styling" alt="HTML5 Styling">
</section>
</div>
<div class="slide styling" id="css-selectors">
<header><span class="css">CSS</span> <h1>CSS Selectors</h1></header>
<section class="left">
<h2>Selectors</h2>
<pre>.row:<b>nth-child(even)</b> {
background: #dde;
}
.row:<b>nth-child(odd)</b> {
background: white;
}
</pre>
<h2>Image-like display</h2>
<pre>div {
display: <b>inline-block</b>;
}
</pre>
</section>
<section class="right">
<h2>Specific attributes</h2>
<pre>input<b>[type="text"]</b> {
background: #eee;
}</pre>
<h2>Negation</h2>
<pre><b>:not</b>(.box) {
color: #00c;
}
<b>:not</b>(span) {
display: block;
}
</pre>
<h2>More specific targetting</h2>
<pre>h2:<b>first-child</b> { ... }
div.text <b>></b> div { ... }
h2 <b>+</b> header { ... }
</pre>
</section>
<footer><a href="http://www.w3.org/TR/CSS2/selector.html#pattern-matching">CSS2 selectors</a> and <a href="http://www.w3.org/TR/css3-selectors/#selectors">CSS3 selectors</a> introduced some of the ones demonstrated here.</footer>
</div>
<div class="slide transitionSlide" id="nuts-bolts-title">
<section class="middle">
<h2>Nuts & Bolts</h2>
<p>Improvements to the core platform</p>
<img src="http://www.html5rocks.com/static/images/identity/classes_64/HTML5_Performance_64.png" title="HTML5 Performance & Integration" alt="HTML5 Performance & Integration">
</section>
</div>
<div class="slide performance" id="new-selectors">
<header><span class="js">JS</span> <h1>New Selectors</h1></header>
<section>
<h2>Finding elements by class (DOM API)</h2>
<pre>var el = document.getElementById('section1');
el.focus();
var els = document.getElementsByTagName('div');
els[0].focus();
var els = document.<b>getElementsByClassName</b>('section');
els[0].focus();</pre>
<h2>Finding elements by CSS syntax (Selectors API)</h2>
<pre>var els = document.<b>querySelectorAll</b>("ul li:nth-child(odd)");
var tds = document.<b>querySelectorAll</b>("table.test > tr > td");
var el = document.<b>querySelector</b>("table.test > tr > td"); // el == tds[0]
</pre>
</section>
</div>
<div class="slide" id="browser-support">
<header><h1>See it today?</h1></header>
<section>
<ul class="bullets">
<li>Modern Browsers</li>
<li>Mobile Browsers</li>
<li>Chrome extensions/Firefox Jetpack/Safari extensions</li>
</ul>
</section>
</div>
<div class="slide" id="chrome-frame">
<header><h1>Chrome Frame</h1></header>
<section>
<ul class="bullets">
<li>Minimal effort for bringing IE6, 7 and 8 up to the latest HTML5 technologies</li>
<li>Two ways to get your websites ready for Chrome Frame:</li>
</ul>
<p>Client side:</p>
<pre><meta http-equiv="X-UA-Compatible" content="chrome=1"></pre>
<p>Server side:</p>
<pre>X-UA-Compatible: chrome=1</pre>
<p style="font-size: 30px">
Try to load this presentation in IE!
</p>
</section>
</div>
<div class="slide" id="formula-outro-slide">
<section class="middle formula">
HTML5 ~=
<span class="html">HTML</span>
+
<span class="css">CSS</span>
+
<span class="js">JS</span>
<p>
HTML5 <em class="stroke">=</em> Next Generation Features for Modern Web Development
</p>
<p class="resource-link">
<a href="http://slides.html5rocks.com">http://slides.html5rocks.com</a>
<a href="http://www.html5rocks.com">http://www.html5rocks.com</a>
</p>
</section>
</div>
<div id="speaker-note" class="invisible" style="display: none;"></div>
<aside id="help" class="sidebar invisible" style="display: none;">
<table>
<caption>Help</caption>
<tbody>
<tr>
<th>Move Around</th>
<td>← →</td>
</tr>
<tr>
<th>Source File</th>
<td>s</td>
</tr>
<tr>
<th>Change Theme</th>
<td>t</td>
</tr>
<tr>
<th>Syntax Highlight</th>
<td>h</td>
</tr>
<tr>
<th>Speaker Notes</th>
<td>n</td>
</tr>
<tr>
<th>Toggle 3D</th>
<td>3</td>
</tr>
<tr>
<th>Help</th>
<td>0</td>
</tr>
</tbody>
</table>
</aside>
</div> <!-- slides -->
</div>
<script src="src/prettify/prettify.js" onload="prettyPrint();" defer></script>
<script src="js/utils.js"></script>
<script src="js/slide.js"></script>
<script src="js/slideshow.js"></script>
<script src="js/start.js"></script>
</body>
</html>