-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.haml
299 lines (281 loc) · 8.95 KB
/
index.haml
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
<!doctype html>
%html
%head
%meta{:charset => "UTF-8"}
%meta{:content => "width=1200", :name => "viewport"}
%title HTML5
%link{:href => "css/base.css", :rel => "stylesheet", :type => "text/css"}
%link{:href => "css/desert.css", :rel => "stylesheet", :type => "text/css"}
%script{:src => "javascripts/jquery.min.js", :type => "text/javascript"}
%script{:src => "javascripts/fathom.min.js", :type => "text/javascript"}
%script{:src => "javascripts/prettify.js", :type => "text/javascript"}
%script{:src => "javascripts/application.js", :type => "text/javascript"}
:javascript
$(document).ready(function(){
$('#presentation').fathom({
displayMode: 'multi',
margin: 500
});
});
%body
// Force UTF-8 encoding by adding a unicode character. ♫
#presentation
.slide
%h1{:style => "text-align: center"}
HTML5
%p{:style => "text-align: center"}
%img{:src => "images/html5logo.png"}
%br
%br
%span{:style => "margin-left: 45px"}
Maximilian Walker
.slide
%h2 HTML
%section
%p HTML (<em>HyperText Markup Language</em>) is the core language of the <em>Web</em>.
%br
%ul
%li describes the semantic structure of documents
%li interpreted and displayed by <em>web browsers</em>
%li <em>open standard</em> in ongoing development
%li
newer versions also contain <em>JavaScript API's</em>, <em>network protocols</em> and
%br
Cascading Style Sheets (<em>CSS</em>)
.slide-number 1
.slide
%h2 History
%section
%table#timeline
%tr#timeline-specs
%td HTML
%td HTML 3
%td HTML 4
%td XHTML
%td
%td
%img{:src => "images/skull.png"}
%td
%td HTML 5
%tr#timeline-bar
%td
%td
%td
%td
%td.fight
%td.fight
%td.fight
%td
%tr#timeline-numbers
%td 1992
%td 1995
%td 1997
%td 2000
%td
%td
%td
%td 2007
%br
%section
%table#w3c-whatwg
%tr.caption
%td W3C
%td WHATWG
%tr.description
%td World Wide Web Consortium (<span class="year">1994</span>)
%td Web Hypertext Application Technology Working Group (<span class="year">2004</span>)
%tr
%td
%ul
%li Universities
%li Research Facilities
%li Business Companies
%td
%ul
%li Mozilla Foundation
%li Opera Software
%li Apple Inc.
.slide-number 2
.slide
%h2 Semantics
%section
%p
All HTML elements are defined to have a particular <em>meaning</em> (semantics).
%br
%ol.code-example
%li <ol>
%li <input type="search">
%br
%section
%p
For some content there were no meaningful HTML elements
→ „<em>Divitis</em>“
%ol.code-example
%li <div id="header">
%li <div class="navigation">
%li <div class="content">
%li <div id="footer">
%li <div …
.slide-number 3
.slide
%h2 Semantics
%section
%p
<em>New elements</em>
%br
%ol.code-example
%li <nav>
%li <article>
%li <header>
%li <footer>
%br
%section
%p
<em>Obsolete elements</em>
%br
%ol.code-example
%li <font>
%li <center>
.slide-number 4
.slide
%h2 Semantics
%section
%p
Who cares?
%br
%ol
%li <em> Visually impaired </em>
%li <em> Search engines </em>
.slide-number 5
.slide
%h2 Communication
%section
%p Today many of our actions in the Web involve some form of <em>communication</em> with others.
%br
%ul
%li Social networks
%li Collaborative working
%li Games
%br
%section
<em>Requirements</em> on data distribution:
%br
%br
%table#requirements.inverted
%tr
%td
many clients
%br
at the same time
%td
fast
%br
(preferably real-time)
%td
data efficient
.slide-number{:style => "margin-top: 10px"} 6
.slide
%h2 Communication
%section
%h3 <em>HTTP (Polling)</em>
%br
%ul
%li
%i half-duplex
%li
client continually sends HTTP requests to the server to ask for new data
%li
server sends HTTP response with message (or command to terminate the request)
%br
%section
%ol.minus-list
%li
many connections have to be handled for each client
%li
each HTTP header contains redundant data
.slide-number 7
.slide
%h2 Communication
%section
%h3 <em>Web Sockets Protocol (Push)</em>
%br
%ul
%li
%i full-duplex
%li
once a Web Socket connection has been established client and server can <i>push</i> data to each other
%br
%section
%ol.plus-list
%li one connection per client
%li no data overhead
.slide-number 8
.slide
%h2 Communication
%section
%p
<em>Demo</em>
%span{:style => "font-size: 36px; margin-left: 30px"}
%span{:style => "color: #ccc"}
http://
is.gd/websocket
.slide-number 9
%pre.prettyprint
:preserve
var ws = new WebSocket('ws://html5presentation.herokuapp.com/channel');
sendmsg = function(message) {
ws.send(message);
};
ws.onmessage = function (message) {
$('#output').prepend(message.text);
};
%br
%ol#output
%li Hello there!
.slide
%h2 Offline Storage
%section
%p
More and more web clients are steadily connected to the Internet.
%br
<em>So why do we need Offline functionality?</em>
%br
%section
%img{:src => "images/mobileusage.png", :style => "width: 80%"}
%br
.slide-number{:style => "margin-left: 10px; line-height: 42px;"} 10
%p.source
Global Mobile Data Traffic Forecast,
Source: Cisco VNI Mobile, 2012
.slide
%h2 Offline Storage
%section
%p
1. Mobile internet connections are frequently interrupted.
%br
2. Users visit web pages regulary.
%br
%br
<b>Locally stored data</b>
%br
%br
%ol
%li → allows <em>offline interaction</em>
%li → serves as a cache and results in <em>faster start-up and display times</em>
.slide-number 11
.slide
%h2 Web Storage
%section
%p
The <b>Web Storage</b> specification defines an interface for storing <em>key-value</em> data pairs in the <em>web client</em>.
.slide-number 12
%br
%section
%p
<em>Demo</em> localStorage
%pre.prettyprint
:preserve
// Save content in localStorage
window.localStorage.setItem('value', html_element.value);
// Get content from previous edit from localStorage
window.localStorage.getItem('value');