-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
761 lines (662 loc) · 23.6 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
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Web Components - Une révolution ?</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Hakim El Hattab">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/default.css" id="theme">
<link rel="stylesheet" href="css/custom.css">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- If the query includes 'print-pdf', include the PDF print sheet -->
<script>
if (window.location.search.match(/print-pdf/gi)) {
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'css/print/pdf.css';
document.getElementsByTagName('head')[0].appendChild(link);
}
</script>
<style>
my-element:unresolved {
color: red;
}
my-element{
color:green;
}
#elemt1 span{
color:limegreen;
}
#hostDiv::shadow span {
color: red;
}
</style>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<!--<a href="?#/themes">Default</a>
<a href="?theme=sky#/themes">Sky</a>
<a href="?theme=beige#/themes">Beige</a>
<a href="?theme=night#/themes">Night</a>
<a href="?theme=moon#/themes">Moon</a>
<a href="?theme=solarized#/themes">Solarized</a>
-->
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h2>Web Components</h2>
<h3>Une révolution ?</h3>
<img class="noBorder" width="512" height="512" src="img/logo_512x512.png" alt="webcomponents logo">
<p>
<small><a href="https://twitter.com/cbalit">@cbalit</a></small>
</p>
</section>
<section>
<h2>Pourquoi des composants?</h2>
<ul>
<li class="fragment" data-fragment-index="1">des widgets ? des frameworks ? des pluggins ?</li>
<li class="fragment" data-fragment-index="2">Réutilisable</li>
<li class="fragment" data-fragment-index="3">Encapsulable</li>
<li class="fragment" data-fragment-index="4">Etendable</li>
<li class="fragment" data-fragment-index="5">"Composable"</li>
</ul>
</section>
<section>
<h2>C'est quoi ?</h2>
<p class="fragment" data-fragment-index="0">
4 spécifications
<ol>
<li class="fragment" data-fragment-index="1">Html Import</li>
<li class="fragment" data-fragment-index="2">Shadow Dom</li>
<li class="fragment" data-fragment-index="3">Template</li>
<li class="fragment" data-fragment-index="4">Custom Element</li>
</ol>
</p>
</section>
<section>
<section>
<h2>Html Import</h2>
<img src="img/html-imports_256x256.png" alt="template logo">
</section>
<section>
<h2>C'est quoi ?</h2>
<p>Inclure un élément HTML à l'intérieur d'un autre</p>
</section>
<section>
<h2>Comment ?</h2>
<pre class="fragment fade-in" data-fragment-index="1"><code data-trim>
<link rel="import" href="/path/myfile.html">
</code></pre>
<ul>
<li class="fragment" data-fragment-index="2">CORS</li>
<li class="fragment" data-fragment-index="3">Chargé 1 seule fois dans l'ordre</li>
<li class="fragment" data-fragment-index="4">Ne bloque pas le parsing de la page</li>
</ul>
</section>
<section>
<h2>Accèder au contenu</h2>
<p class="fragment" data-fragment-index="0">
Les éléments HTML et CSS sont chargés mais non insérés (disponibles).
On y accede via la propriété <strong>import</strong>
</p>
<pre class="fragment fade-in"><code data-trim>
<link id="my-import"rel="import" href="myfile.html">
<script>
var link = document.querySelector('#my-import');
var content = link.import;
//I can now acees to my content
var el = content.querySelector('.mySelector');
document.body.appendChild(el.cloneNode(true));
</script>
</code></pre>
</section>
<section>
<h2>Le javascript</h2>
<ul>
<li class="fragment" data-fragment-index="2">Exécuté dans le contexte de la page</li>
<li class="fragment" data-fragment-index="3">Accès à son DOM ...</li>
<li class="fragment" data-fragment-index="4">... et à celui de la page</li>
</ul>
<pre class="fragment fade-in"><code data-trim>
<script>
var importDoc = document.currentScript.ownerDocument;
var mainDoc = document;
</script>
</code></pre>
</section>
<section>
<h2>Les events</h2>
<p>
Load et Error Event
</p>
<pre class="fragment fade-in"><code data-trim>
<script async>
function handleLoad(e) {
console.log('Loaded import: ' + e.target.href);
}
function handleError(e) {
console.log('Error loading import: ' + e.target.href);
}
</script>
<link rel="import" href="file.html"
onload="handleLoad(event)" onerror="handleError(event)">
</code></pre>
</section>
<section>
<h2>Support</h2>
<img class="noBorder" src="img/ImportStatus.png" alt="import current status">
</section>
</section>
<section>
<section>
<h2>Shadow Dom</h2>
<img src="img/shadow-dom_256x256.png" alt="template logo">
</section>
<section>
<h2>Vieux !!!!</h2>
<p>Les navigateurs l'utilisent déjà</p>
<pre><code data-trim>
<input type="range">
<input type="date">
<input type="hour">
</code></pre>
<input type="range">
<input type="date">
<input type="hour">
</section>
<section>
<h2>C'est quoi ?</h2>
<p class="fragment" data-fragment-index="1">
L'ENCAPSULATION
<img src="img/aquarium-03.png">
</p>
</section>
<section>
<h2>L'ENCAPSULATION</h2>
<ul>
<li class="fragment" data-fragment-index="1">Conteneur isolé</li>
<li class="fragment" data-fragment-index="2">Nouveau type de noeud</li>
<li class="fragment" data-fragment-index="3">shadow root</li>
<li class="fragment" data-fragment-index="4">shadow host</li>
</ul>
</section>
<section>
<h2>En Javascript</h2>
<ul>
<li class="fragment" data-fragment-index="1">createShadowRoot</li>
<li class="fragment" data-fragment-index="2">element.shadowRoot</li>
</ul>
<pre class="fragment fade-in"><code data-trim>
<button>Normal button!</button>
<button id="myBtn">Hello, world!</button>
<script>
var host = document.querySelector('#myBtn');
var root = host.createShadowRoot();
root.textContent = 'こんにちは、影の世界!';
</script>
</code></pre>
<div class="fragment fade-in">
<button>Normal button!</button>
<button id="btn1">Hello, world!</button>
<script>
var host = document.querySelector('#btn1');
var root = host.createShadowRoot();
root.textContent = 'こんにちは、影の世界!';
</script>
</div>
</section>
<section>
<h2>Shadow DOM versus Light DOM</h2>
<pre>
<code>
<my-element>
<span>Hello</span>
</my-element>
</code>
</pre>
<ul>
<li class="fragment" data-fragment-index="1">sous-arbre visible (childNodes, children, innerHTML ...)</li>
<li class="fragment" data-fragment-index="2">noeud <strong>interne</strong></li>
<li class="fragment" data-fragment-index="3">composed DOM: ce que le navigateur voit et rend</strong></li>
</ul>
</section>
<section>
<h2>Points d'insertions</h2>
<p>le content ...</p>
<ul>
<li class="fragment" data-fragment-index="1">Définir des zones de render dans le shadow Dom</li>
<li class="fragment" data-fragment-index="2">Pas de lien logique</li>
</ul>
<pre class="fragment fade-in">
<code data-trim>
<div id="host">
<span class="title">Hello too</span>
<span>Bla Bla Bla</span>
</div>
<script>
var shadow = document.querySelector('#host').createShadowRoot();
shadow.innerHTML = '<h1>In Shadow</h1>' +
'<h2><content select=".title"></content></h2>' +
'<section><content select="*"></content></section>';
</script>
</code>
</pre>
<div id="shadowHost" class="fragment fade-in aside">
<span class="title">Hello too</span>
<span>Bla Bla Bla</span>
</div>
</section>
<section>
<h2>Support</h2>
<img class="noBorder" src="img/ShadowStatus.png" alt="import current status">
</section>
</section>
<section>
<section>
<h2>Template</h2>
<img src="img/templates_256x256.png" alt="template logo">
</section>
<section>
<h2>C'est quoi ?</h2>
<p>Des modèles de DOM réutilisables</p>
</section>
<section>
<h2>Pas dans le document</h2>
<p>Pas d’effet de bord:</p>
<ul>
<li class="fragment" data-fragment-index="1">DOM non rendu</li>
<li class="fragment" data-fragment-index="2">script non interprété</li>
<li class="fragment" data-fragment-index="3">image non chargée</li>
</ul>
</section>
<section>
<h2>Utilisation</h2>
<ol>
<li class="fragment" data-fragment-index="1">Récupération par sélecteur</li>
<li class="fragment" data-fragment-index="2">accès au contenu: content </li>
<li class="fragment" data-fragment-index="3">clone: devient vivant</li>
<li class="fragment" data-fragment-index="4">insertion du clone</li>
</ol>
</section>
<section>
<h2>Exemple</h2>
<pre class="fragment fade-in"><code>
<template id="mytemplate">
<img src="" alt="great image">
<div id="comment"></div>
</template>
<script>
var t = document.querySelector('#mytemplate');
// Populate the src at runtime.
t.content.querySelector('img').src = 'img/templates_64x64.png';
t.content.querySelector('#comment').innerHTML = 'My new comment';
var clone = document.importNode(t.content, true);
document.body.appendChild(clone);
</script>
</code></pre>
<template id="mytemplate1">
<img src="" alt="great image">
<div id="comment"></div>
</template>
<div id="forTemplate1" class="fragment fade-in"></div>
</section>
<section>
<h2>Support</h2>
<img class="noBorder" src="img/TemplateStatus.png" alt="import current status">
</section>
</section>
<section>
<section>
<h2>Custom element</h2>
<img src="img/custom-elements_256x256.png" alt="template logo">
</section>
<section>
<h2>C'est quoi ?</h2>
<ul>
<li class="fragment" data-fragment-index="1">Définir de nouveaux types d’élément HTML</li>
<li class="fragment" data-fragment-index="2">Étendre des éléments existants</li>
<li class="fragment" data-fragment-index="3">Regrouper au sein d'une "balise" une fonctionnalité</li>
</ul>
</section>
<section>
<h2>Comment ?</h2>
<ul>
<li class="fragment" data-fragment-index="1">registerElement</li>
<li class="fragment" data-fragment-index="2">un nom (avec un -)</li>
<li class="fragment" data-fragment-index="3">un proto (HTMLElement par defaut)</li>
</ul>
<pre class="fragment fade-in">
<code data-trim>
<script>
var myElt = document.registerElement('my-elt',HTMLElement.prototype);
</script>
<my-elt></my-elt>
</code>
</pre>
</section>
<section>
<h2>étendre des éléments existants</h2>
<pre class="fragment fade-in">
<code data-trim>
<script>
var myButton = document.registerElement('my-button', {
prototype: Object.create(HTMLButtonElement.prototype),
extends: 'button'
});
</script>
<button is=”my-button”></button>
</code>
</pre>
</section>
<section>
<h2>Attention aux balises</h2>
<p><pre><code><tabs></code></pre></p>
<p class="fragment" data-fragment-index="1">HTMLUnknownElement</p>
<p><pre><code><my-tabs></code></pre></p>
<p class="fragment" data-fragment-index="2">HTMLElement</p>
</section>
<section>
<h2>Cycle de vie</h2>
<p>Déclaration vs enregistrement
<ul>
<li class="fragment" data-fragment-index="1">considéré comme <strong>unresolved</strong></p></li>
<li class="fragment" data-fragment-index="2">pseudo-selector :unresolved</li>
</ul>
<pre class="fragment fade-in">
<code>
<style>
*:unresolved {
color: red;
}
</style>
<my-element>register</my-element>
<button onclick="document.registerElement('my-element')">Register</button>
</code>
</pre>
<div class="fragment fade-in">
<my-element>i'm unresolved</my-element>
<button onclick="document.registerElement('my-element')">Register</button>
</div>
</section>
<section>
<h2>Callback</h2>
<ul>
<li class="fragment" data-fragment-index="1">createdCallback</li>
<li class="fragment" data-fragment-index="2">attachedCallback</li>
<li class="fragment" data-fragment-index="3">detachedCallback</li>
<li class="fragment" data-fragment-index="4">attributeChangedCallback</li>
</ul>
<pre class="fragment fade-in">
<code>
var myElemtProto = Object.create(HTMLElement.prototype);
myElemtProto.createdCallback = function() {};
var myElemt = document.registerElement('my-element', myElemtProto);
</code>
</pre>
</section>
<section>
<h2>Ajouter du contenu</h2>
<img src="img/html.jpg" alt="template logo">
</section>
<section>
<h2>innerHTML</h2>
<pre class="fragment fade-in">
<code>
myEltProto.createdCallback = function() {
this.innerHTML = "<b>un peu de contenu!</b>";
};
</code>
</pre>
</section>
<section>
<h2>shadowDom</h2>
<pre class="fragment fade-in">
<code>
myEltProto.createdCallback = function() {
var shadow = this.createShadowRoot();
shadow.innerHTML = "<b>un peu de contenu!</b>";
};
</code>
</pre>
</section>
<section>
<h2>Template</h2>
<pre class="fragment fade-in">
<code>
<template id="sdtemplate">
</template>
myEltProto.createdCallback = function() {
var t = document.querySelector('#sdtemplate');
var clone = document.importNode(t.content, true);
this.createShadowRoot().appendChild(clone);
};
</code>
</pre>
</section>
<section>
<h2>Ajouter du code</h2>
<img class="noBorder" src="img/js.jpg">
</section>
<section>
<h2>Le prototype</h2>
<pre class="fragment fade-in">
<code>
myEltProto.myFctn=function(){...}
Object.defineProperty(myEltProto, "bar", {value: 5});
</code>
</pre>
</section>
<section>
<h2>Support</h2>
<img class="noBorder" src="img/CustomStatus.png" alt="import current status">
</section>
</section>
<section>
<section>
<h2>Styling custom elements</h2>
<img class="noBorder" src="img/css.png" alt="import current status">
</section>
<section>
<h2>Custom element</h2>
<p>Peuvent être séléctionnés</p>
<pre class="fragment fade-in">
<code>
my-element{
color:green;
}
</code>
</pre>
</section>
<section>
<h2>FOUC</h2>
<p class="fragment" data-fragment-index="1">Flash Of Unstyled Content</p>
<ul>
<li class="fragment" data-fragment-index="2">élément affiché avant qu’il soit enregistré</li>
<li class="fragment" data-fragment-index="3">:unresolved</li>
</ul>
</section>
<section>
<h2>Style du light dom</h2>
<ul>
<li class="fragment" data-fragment-index="1">in and out</li>
<li class="fragment" data-fragment-index="2">::content</li>
</ul>
<pre class="fragment fade-in"><code>
#elemt span{
color:limegreen;
}
<div id="elemt"">
<span>Hello</span>
</div>
Shadow dom:
<style>
::content span{text-decoration: underline;}
</style>
<h3>Shadow DOM</h3>
<content></content>
</code></pre>
<div id="elemt1" class="fragment fade-in aside">
<span>Hello</span>
</div>
<script>
var elmt=document.querySelector('#elemt1');
var root = elmt.createShadowRoot();
root.innerHTML = '<style>::content span{text-decoration: underline;}</style>\
<h3>Shadow DOM</h3>\
<content></content>';
</script>
</section>
<section>
<h2>Dans le shadow dom</h2>
<p>Des sélecteurs</p>
<ul>
<li class="fragment" data-fragment-index="1">:host</li>
<li class="fragment" data-fragment-index="2">:host(selector)</li>
<li class="fragment" data-fragment-index="3">:host(pseudo-class)</li>
<li class="fragment" data-fragment-index="4">:host-context(selector)</li>
</ul>
<pre class="fragment fade-in"><code>
<button>My Button</button>
<style>
:host {
opacity: 0.4;
transition: opacity 420ms ease-in-out;
}
:host(.red) {
color:red;
}
:host(:hover) {
opacity: 1;
}
</style>
</code></pre>
<div class="fragment faded-in aside">
<button id="hostButton" class="red">My Button</button>
</div>
</section>
<section>
<h2>En dehors du shadow dom</h2>
<ul>
<li class="fragment" data-fragment-index="1">::shadow</li>
<li class="fragment" data-fragment-index="2">/deep/</li>
</ul>
<pre class="fragment fade-in"><code>
<style>
#host::shadow span {
color: red;
}
</style>
<div id="host"></div>
<script>
var host = document.querySelector('#hostDiv');
var root = host.createShadowRoot();
root.innerHTML = "<span>Shadow DOM</span>";
</script>
</code></pre>
<div class="fragment fade-in" id="hostDiv"></div>
</section>
</section>
<section>
<section>
<h2>Bref</h2>
<img class="noBorder" src="img/bref.jpg" alt="import current status">
</section>
<section>
<h2>Des spécifications prometteuses </h2>
<p class="fragment" data-fragment-index="1">utilisables indépendamment</p>
<p class="fragment" data-fragment-index="2">MAIS .. UN SUPPORT TROP FAIBLE</p>
<p class="fragment" data-fragment-index="3">Alors que fait on ?</p>
</section>
<section>
<h2>POLYMER</h2>
<img class="noBorder logo" src="img/polymer.jpg">
<img class="noBorder logo fragment" data-fragment-index="1" src="img/google.jpg">
<ul>
<li class="fragment" data-fragment-index="2">polyfills (platform.js)</li>
<li class="fragment" data-fragment-index="3">components (core-elements, paper-elements)</li>
<li class="fragment" data-fragment-index="4">sugaring (polymer.js)</li>
</ul>
</section>
<section>
<h2>X-TAG</h2>
<img class="noBorder logo" src="img/xTag.jpg">
<img class="noBorder logo fragment" data-fragment-index="1" src="img/firefox.jpg">
<ul>
<li class="fragment" data-fragment-index="2">Web Components Polyfills (custom element et HTMLImports)</li>
<li class="fragment" data-fragment-index="3">X-Tag Custom Elements</li>
<li class="fragment" data-fragment-index="4">X-Tag Core Library</li>
</ul>
</section>
</section>
<section>
<h1>Ressources</h1>
<ul>
<li ><a href="http://www.html5rocks.com/en/tutorials/webcomponents/imports/">Import</a></li>
<li ><a href="http://www.html5rocks.com/en/tutorials/webcomponents/shadowdom/">Shadow Dom</a></li>
<li ><a href="http://www.html5rocks.com/en/tutorials/webcomponents/shadowdom-201/">Styling Shadow Dom</a></li>
<li ><a href="http://www.html5rocks.com/en/tutorials/webcomponents/template/">Template</a></li>
<li ><a href="http://www.html5rocks.com/en/tutorials/webcomponents/customelements/">Custom Elements</a></li>
<li ><a href="https://speakerdeck.com/robdodson/the-web-component-ecosystem">The Web Component Ecosystem</a></li>
<li ><a href="http://www.polymer-project.org/">Polymer</a></li>
<li ><a href="http://x-tags.org/">X-Tag</a></li>
</ul>
<p class="space"> Credits: <a href="https://twitter.com/ebidel">Eric Bidelman</a>,<a href="https://twitter.com/rob_dodson">Rob Dodson</a>,<a href="https://twitter.com/coonsta">Dominic Cooney</a></p>
</section>
<section>
<h1>Merci !!!</h1>
<h3>Cyril Balit</h3>
<a href="https://twitter.com/cbalit" class="twt">cbalit</a>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
slideNumber: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'concave', // default/cube/page/concave/zoom/linear/fade/none
// Parallax scrolling
//parallaxBackgroundImage: 'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg',
//parallaxBackgroundSize: '2100px 900px',
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'lib/js/classList.js', condition: function () {
return !document.body.classList;
} },
{ src: 'plugin/markdown/marked.js', condition: function () {
return !!document.querySelector('[data-markdown]');
} },
{ src: 'plugin/markdown/markdown.js', condition: function () {
return !!document.querySelector('[data-markdown]');
} },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function () {
hljs.initHighlightingOnLoad();
} },
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function () {
return !!document.body.classList;
} },
{ src: 'plugin/notes/notes.js', async: true, condition: function () {
return !!document.body.classList;
} }
]
});
</script>
<script src="js/test.js"></script>
</body>
</html>