-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
307 lines (261 loc) · 9.56 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Applause - HTML presentations powered by AngularJS</title>
<meta name="description" content="HTML presentations powered by Angular JS">
<meta name="viewport" content="width=device-width">
<!-- build:css assets/styles/applause.css -->
<link rel="stylesheet" href="assets/styles/main.css">
<!-- endbuild -->
<link rel="stylesheet" href="assets/theme/default.css">
<!-- Chrome print bug. Credits to @hakimel http://goo.gl/rGoUvj -->
<script>
if( window.location.search.match(/pdf/gi) ) {
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'assets/styles/pdf.css';
document.getElementsByTagName('head')[0].appendChild(link);
}
</script>
</head>
<body ng-app="applauseApp" ng-keyup="keyup($event)">
<div id="presentation" ng-controller="DeckCtrl" ng-cloak>
<goto class="ph"></goto>
<div class="container">
<!-- =========== SLIDE =========== -->
<slide class="vert-align blue-bg cover" bg-img="polymer.svg">
<h1><span>POLYMER HACK UP</span><br>31/01/2015</h1>
</slide>
<slide class="grey-lego">
<h2>~ whoami</h2>
<h3>Maurizio Mangione<br>@granze</h3>
<table class="center who">
<tr>
<td class="logo"><img src="assets/theme/images/gild.svg" height="200"></td>
<td class="logo"><img src="assets/theme/images/mijs2.jpg" height="200"></td>
</tr>
<tr>
<td valign="top"><h4>Lead Frontend Developer</h4></td>
<td valign="top"><h4>Milano JS<br>Founder</h4></td>
</tr>
</table>
</slide>
<slide class="vert-align blue-bg">
<h2>Web components?</h2>
</slide>
<slide class="vert-align grey-lego">
<div class="abs-center">
<ul class="wcomps">
<li><img src="assets/theme/images/icon-customelements.png">Custom Elements</li>
<li><img src="assets/theme/images/icon-htmlimports.png">HTML imports</li>
<li><img src="assets/theme/images/icon-shadowdom.png">Shadow DOM</li>
<li><img src="assets/theme/images/icon-templates.png">Templates</li>
</ul>
</div>
</slide>
<slide>
<h2 class="spec ce">Custom elements</h2>
<h3 class="abs-center">Create new HTML elements</h3>
</slide>
<slide>
<h2 class="spec ce">Custom elements</h2>
<div prism class="language-markup">
<tabs>
<tab>tab 1</tab>
<tab>tab 2</tab>
<tab>tab 3</tab>
</tabs>
</div>
</slide>
<slide>
<h2 class="spec hi">HTML imports</h2>
<h3 class="abs-center">Load custom element definitions and resources</h3>
</slide>
<slide>
<h2 class="spec hi">HTML imports</h2>
<div prism class="language-markup">
<link rel="import" href="custom.html">
</div>
</slide>
<slide>
<h2 class="spec sd">Shadow DOM</h2>
<h3 class="abs-center">Scoped CSS + encapsulated markup</h3>
</slide>
<slide>
<h2 class="spec sd">Shadow DOM</h2>
<img class="box-curl" src="assets/theme/images/shadowdom-code.png" style="width: 100%;">
</slide>
<slide>
<h2 class="spec ht">Templates</h2>
<h3 class="abs-center">Native templating in the browser</h3>
</slide>
<slide>
<h2 class="spec ht">Templates</h2>
<div prism class="language-markup">
<template>
<h1>Hey there!</h1>
<img src="xxx.jpg" />
<script>
alert('whoooo!');
</script>
</template>
</div>
</slide>
<slide class="vert-align blue-bg">
<h2>Special features</h2>
</slide>
<slide>
<h2>Data binding</h2>
<div prism class="language-markup">
<polymer-element name="user-group">
<template>
This is the {{technology} } user group.
</template>
<script>
Polymer('user-group', {
ready: function() {
this.technology = 'Javascript';
}
});
</script>
</polymer-element>
</div>
</slide>
<slide>
<h2>Declarative event mapping</h2>
<div prism class="language-markup">
<polymer-element name="g-cool">
<template>
<button on-click="{{buttonClick} }"></button>
</template>
<script>
Polymer({
buttonClick: function(event, detail, sender) { ... }
});
</script>
</polymer-element>
</div>
</slide>
<slide>
<h2>Extending other elements</h2>
<div prism class="language-markup">
<polymer-element name="my-label" noscript>
<template>
<span><content></content></span>
</template>
</polymer-element>
<polymer-element name="my-superlabel" extends="my-label" noscript>
<template>
<span>
<i>★</i><shadow></shadow>
</span>
</template>
</polymer-element>
<my-label>Hello!</my-label> // Hello!"
<my-superlabel>Hello!</my-superlabel> // "★ Hello!"
</div>
</slide>
<slide>
<h2>Observing properties</h2>
<div prism class="language-markup">
<polymer-element name="g-cool" attributes="better best">
<script>
Polymer({
better: '',
best: '',
betterChanged: function(oldValue, newValue) {
...
},
bestChanged: function(oldValue, newValue) {
...
}
});
</script>
</polymer-element>
</div>
</slide>
<slide class="vert-align blue-bg">
<h2>Tools</h2>
</slide>
<slide>
<h2>Yeoman</h2>
<img class="center" src="assets/theme/images/generator-polymer.png" alt=""/>
<code class="centered inline" style="width: 400px;">npm install -g generator-polymer</code>
</slide>
<slide>
<h2>Bower</h2>
<img class="center" src="assets/theme/images/bower.png" width="300px" alt=""/>
<code class="centered inline" style="width: 400px;">bower install Polymer/core-ajax</code>
</slide>
<slide>
<h2>Vulcanize</h2>
<table class="tools-logo">
<tr>
<td>
<img class="center" src="assets/theme/images/npm.png" alt=""/>
</td>
<td>
<img class="center" src="assets/theme/images/gulp.png" alt=""/>
</td>
<td>
<img class="center" src="assets/theme/images/grunt.png" alt=""/>
</td>
</tr>
<tr>
<td>
<code class="centered inline">npm install -g vulcanize</code>
</td>
<td>
<code class="centered inline">npm install -D gulp-vulcanize</code>
</td>
<td>
<code class="centered inline">npm install -D grunt-vulcanize</code>
</td>
</tr>
</table>
</slide>
<slide class="vert-align blue-bg">
<h2>Useful components</h2>
</slide>
<slide>
<ul class="abs-center big-list">
<li>Google web components</li>
<li>Paper elements</li>
<li>Core elements</li>
</ul>
</slide>
<slide class="vert-align blue-bg">
<h2>Have fun!</h2>
</slide>
<!-- =========== /SLIDE =========== -->
</div>
<flip-clock></flip-clock>
<progress-bar class="ph" ng-show="{{isProgressBarVisible}}"></progress-bar>
</div>
<!-- build:js assets/scripts/applause.js -->
<script src="assets/scripts/vendor/prism.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/json3/lib/json3.js"></script>
<script src="bower_components/angular-animate/angular-animate.js"></script>
<script src="bower_components/showdown/src/showdown.js"></script>
<script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
<script src="bower_components/ngstorage/ngStorage.js"></script>
<script src="bower_components/moment/moment.js"></script>
<script src="assets/scripts/app.js"></script>
<script src="config.js"></script>
<script src="assets/scripts/controllers/deck.js"></script>
<script src="assets/scripts/directives/slide.js"></script>
<script src="assets/scripts/directives/fit.js"></script>
<script src="assets/scripts/directives/progressbar.js"></script>
<script src="assets/scripts/services/appdata.js"></script>
<script src="assets/scripts/directives/markdown.js"></script>
<script src="assets/scripts/directives/bg-img.js"></script>
<script src="assets/scripts/directives/goto.js"></script>
<script src="assets/scripts/directives/flip-clock.js"></script>
<script src="assets/scripts/directives/prism.js"></script>
<!-- endbuild -->
</body>
</html>