forked from girldevelopit/gdi-featured-html-css-intermediate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclass1.html
543 lines (498 loc) · 26.3 KB
/
class1.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Girl Develop It - Intermediate HTML + CSS, Class 1</title>
<meta name="description" content="Girl Develop It's Intermediate HTML and CSS course, customized by Liz Shaw">
<meta name="author" content="Liz Shaw">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/simple.css" id="theme">
<!-- For syntax highlighting -->
<!-- light editor<link rel="stylesheet" href="lib/css/light.css">-->
<!-- dark editor-->
<link rel="stylesheet" href="lib/css/dark.css">
<link rel="stylesheet" href="lib/css/zenburn.css">
<link rel="stylesheet" href="plugin/accessibility-helper/css/accessibility-helper.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>
<!-- If use the PDF print sheet so students can print slides-->
<link rel="stylesheet" href="css/print/pdf.css" type="text/css" media="print">
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<div class="slides">
<!-- Code Your Own Website -->
<section>
<h2>Code Your Own Website</h2>
<img src="img/circle-gdi-logo.png" alt="GDI Logo" />
<h3>Intermediate HTML + CSS</h3>
<p>
<small>Class 1</small>
</p>
</section>
<!-- Welcome! -->
<section class="hide-pdf">
<h2>Welcome!</h2>
<p>Girl Develop It is here to provide affordable and accessible programs to learn software through mentorship and hands-on instruction.</p>
<p> </p>
<p class="green">Some "rules"</p>
<ul>
<li>We are here for you!</li>
<li>Every question is important</li>
<li>Help each other</li>
<li>Have fun</li>
</ul>
</section>
<!-- First Things First -->
<section class="hide-pdf">
<h2>First Things First</h2>
<p class="blue">Tell us about yourself.</p>
<ul>
<li>Who are you?</li>
<li>What do you hope to get out of the class?</li>
<li>Who is your hero, and why?</li>
</ul>
</section>
<section>
<h2>First Things First</h2>
<p> </p>
<p><strong>Thank you to our wonderful TAs!</strong></p>
<p> </p>
<p>Course website: <a href="http://anything.codes" target="_blank">http://anything.codes</a></p>
<p>Instructor contact info: <a href="mailto:[email protected]">[email protected]</a></p>
</section>
<!-- Today's Project -->
<section>
<h3>Today's Project</h3>
<p>We'll be jumping into HTML/CSS right where the beginner class left off</p>
<p class="fragment"><img src="images/gdi-profile-layout.png" alt="today's project" /></p>
</section>
<!-- CSS Reset -->
<section>
<h3>CSS Reset</h3>
<p class="fragment">A block of CSS rules that <span class="green">reset all default styles</span></p>
<p class="fragment blue"><br />Why?</p>
<ul>
<li class="fragment">Some HTML elements have default styles</li>
<li class="fragment">Sometimes these default styles interfere with how we'd like our pages to look</li>
<li class="fragment">Different browsers have different default styles</li>
<li class="fragment">A reset gets rid of these inconsistencies, and <span class="green">zeroes</span> the styles</li>
</ul>
<p class="fragment"><br />A reset lets us start from <span class="green">a clean slate</span></p>
</section>
<section>
<h3>CSS Reset</h3>
<p class="blue">Example</p>
<p data-height="190" data-theme-id="0" data-slug-hash="Mazgox" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/Mazgox/'>CSS Reset - Before</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
<script async src="//assets.codepen.io/assets/embed/ei.js"></script>
</section>
<section>
<h3>CSS Reset</h3>
<p class="blue">How to use a CSS reset</p>
<ol>
<li class="fragment">Find one online (<a href="http://meyerweb.com/eric/tools/css/reset/" target="_blank">Example »</a>) and copy the CSS reset</li>
<li class="fragment">Paste the CSS reset <span class="green">at the top of your CSS file</span></li>
<li class="fragment">Do this <span class="orange">before starting</span> any project from now on <span class="green" style="font-size:150%">☺</span></li>
</ol>
</section>
<!-- Let's Develop It! -->
<section>
<h3>Get Started: Folder Structure</h3>
<div>
<div class="left" style="width:50%;">
<p class="left-align">Go ahead and create your folders</p>
<p class="left-align">Ignore the HTML and CSS files for now</p>
</div>
<div class="right">
<img src="img/folderstructure-intermediate.png" alt="The project folder structure" />
</div>
</div>
</section>
<section>
<h3>Get Started: Images</h3>
<img src="img/folderstructure-intermediate-images.png" alt="The project folder structure" />
<ol>
<li>Go to <a href="http://tinyurl.com/gdiimages">http://tinyurl.com/gdiimages</a> to download images.zip<!--http://anything.codes/gdi-intro-html-css/images.zip--></li>
<li>Open images.zip<ul><li>If you're using Windows, 'Extract' images.zip</li></ul></li>
<li>Place the unzipped images in the 'intermediate/images' folder you just created</li>
</ol>
</section>
<section>
<h3>Get Started: Files</h3>
<ol>
<li>Open your text editor and create a new file.</li>
<li>Save it as index.html in the 'intermediate' folder you created earlier.</li>
<li>Add the fundamental structure (a doctype, head, title and body).</li>
<li>Create a new file in your text editor. Save it as styles.css in the 'intermediate/css' folder you created earlier.
<ul>
<li>Now let's add a CSS reset to styles.css!</li>
</ul>
</li>
</ol>
<img src="img/folderstructure-intermediate.png" alt="Folder Structure" />
</section>
<!-- HTML5 -->
<section>
<h3>HTML5</h3>
<p class="fragment">HTML5 is the latest version (version 5) of HTML</p>
<p class="fragment">All modern browsers support HTML5</p>
</section>
<section>
<h3>HTML5 Benefits</h3>
<p class="fragment">HTML5 elements are <span class="green">more semantic</span> since they describe an element's content (compared to <div>)</p>
<p class="fragment">
<img src="img/divided-page.jpg" alt="A page divided up into sections">
</p>
<ul style="font-size:70%">
<li class="fragment"><em class="blue"><header></em> for a header</li>
<li class="fragment"><em class="blue"><footer></em> for a footer</li>
<li class="fragment"><em class="blue"><main></em> for the main content area</li>
<li class="fragment"><em class="blue"><section></em> for a section</li>
<li class="fragment"><em class="blue"><aside></em> for supplemental content, such as a sidebar</li>
<li class="fragment">... and more!</li>
</ul>
</section>
<section>
<h3>HTML5 Benefits</h3>
<p class="blue">Semantic Elements</p>
<p class="fragment">Using semantic HTML5 elements makes it much <span class="orange">easier to read, write, and understand your code</span></p>
<p class="fragment">It's also great for <span class="orange">Search Engine Optimization</span> (a.k.a. <span class="orange">SEO</span>) and <span class="orange">accessibility reasons</span> (e.g. visually-impaired people using screen readers)</p>
</section>
<section>
<h3>HTML5 Benefits</h3>
<p class="fragment">HTML5 has a lot of new interactive elements, including <span class="green"><canvas></span>, <span class="green"><svg></span>, and <span class="green"><video></span> (<a href="https://www.paypal.com/home" target="_blank"><video> Example »</a>)</p>
<p class="fragment">These new features replace the need for Flash videos, which Apple devices don't support</p>
<p class="fragment"><img src="img/flash-apple.jpg" alt="Playing Flash on an Apple device" /></p>
</section>
<!-- Let's Develop It! -->
<section>
<h2>Let's Develop It!</h2>
<p>Let's use block-level HTML5 elements to layout our header and banner (a.k.a. <span class="orange">hero</span>)<br /><img src="images/gdi-profile-layout.png" alt="today's project" /></p>
</section>
<!-- Image Replacement -->
<section>
<h3>CSS Image Replacement</h3>
<p class="fragment"><span class="green">CSS image replacement</span> is a technique of replacing a <span class="orange">text element</span> (usually a heading) with an <span class="orange">image</span></p>
<p class="fragment">For example, you may want to use a <h1> for <span class="green">accessibility</span> and <span class="green">SEO</span> benefits, but want to show a logo instead of text</p>
<pre class="css fragment"><code>
selector {
background-image: url('images/yourimage.png');
width: 300px; /* the width of your image */
height: 300px; /* the height of your image */
white-space: nowrap;
text-indent: 100%;
overflow: hidden;
}
</code></pre>
</section>
<section>
<h3>CSS Image Replacement</h3>
<p data-height="84" data-theme-id="0" data-slug-hash="LpXYrm" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/LpXYrm/'>CSS Image Replacement - Before</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</section>
<!-- Let's Develop It! -->
<section>
<h2>Let's Develop It!</h2>
<p>Let's use CSS image replacement on our <h1> to show our logo instead of text<br /><img src="images/gdi-profile-layout.png" alt="today's project" /></p>
</section>
<!-- Positioning Recap -->
<section data-background="#f05b62">
<h1 style="color: #fafafa;">Positioning Recap</h1>
</section>
<section>
<h3><em>position: relative;</em></h3>
<div class="fragment">
<p data-height="185" data-theme-id="0" data-slug-hash="QjQPVj" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/QjQPVj/'>Relative Positioning</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
<p>
<a href="http://codepen.io/anythingcodes/pen/yYjMvL" target="_blank">View result of above CodePen »</a>
</p>
</div>
</section>
<section>
<h3><em>position: absolute;</em></h3>
<div class="fragment">
<p data-height="284" data-theme-id="0" data-slug-hash="epVoXR" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/epVoXR/'>Absolute Positioning</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
<p>
<a href="http://codepen.io/anythingcodes/pen/xwjqYq" target="_blank">View result of above CodePen »</a>
</p>
</div>
</section>
<section>
<h3>Corraling an absolute element inside any non-static (e.g. <span class="blue">relative</span>) element</h3>
<p class="fragment"><img src="img/positioning-banner-concept.png" alt="Limiting the scope" /></p>
<div class="fragment">
<p data-height="351" data-theme-id="0" data-slug-hash="KdowRV" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/KdowRV/'>Limiting an Absolute Element's Scope</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
<p class="fragment"><a href="http://codepen.io/anythingcodes/pen/meLWXK" target="_blank">View result of above CodePen »</a></p>
</section>
<section>
<h3>Property: <em>float</em></h3>
<p class="fragment">When an element is floated, <span class="orange">subsequent elements wrap around it</span><br /><img src="img/floating.png" style="max-height:250px;" alt="A floating example"></p>
<div class="fragment">
<p data-height="192" data-theme-id="0" data-slug-hash="vNROXq" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/vNROXq/'>Float - Before</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</div>
</section>
<!-- Aw snap, more! -->
<section data-background="#f05b62">
<h1 style="color: #fafafa;">But wait, there's more!</h1>
</section>
<!-- Fixed positioning -->
<section>
<h3>Fixed Positioning</h3>
<pre class="fragment"><code class="css">
selector {
position: fixed;
}
</code></pre>
<p class="fragment">To make an element scroll with the browser window (a.k.a. the <span class="orange">viewport</span>), use <span class="green">fixed positioning</span></p>
<p class="fragment">Unlike static elements, a fixed element can <span class="green">overlap other elements</span></p>
</section>
<section>
<h3>Fixed Positioning</h3>
<p class="fragment">Fixed positioning is often applied to a page's header</p>
<p class="blue fragment"><br />Examples:</p>
<ul class="fragment">
<li><a href="http://eehealth.org" target="_blank">Edward-Elmhurst Health</a></li>
<li><a href="http://www.hornallanderson.com/" target="_blank">Hornall Anderson</a></li>
<li><a href="http://www.kitchensinkstudios.com/" target="_blank">Kitchen Sink Studios</a></li>
<li><a href="https://getbootstrap.com/examples/navbar-fixed-top/" target="_blank">Bootstrap</a></li>
</ul>
</section>
<section>
<h3>Fixed Positioning</h3>
<p class="blue">Setting the Location</p>
<p class="fragment">Use the <span class="orange">top</span>, <span class="orange">bottom</span>, <span class="orange">right</span>, and <span class="orange">left</span> properties to set the location</p>
<p class="fragment">These values position the element <span class="green">relative to the viewport</span> so that it scrolls with the page</p>
</section>
<section>
<h3>Fixed Positioning</h3>
<p data-height="268" data-theme-id="0" data-slug-hash="OyaJya" data-default-tab="result" data-user="anythingcodes" class='codepen'>See the Pen <a href='http://codepen.io/anythingcodes/pen/OyaJya/'>Fixed Positioning - Before</a> by Liz Shaw (<a href='http://codepen.io/anythingcodes'>@anythingcodes</a>) on <a href='http://codepen.io'>CodePen</a>.</p>
</section>
<!-- Let's Develop It! -->
<section>
<h2>Let's Develop It!</h2>
<p>Let's use fixed positioning to style our header, and style our navigation menu while we're at it<br /><img src="images/gdi-profile-layout.png" alt="today's project" /></p>
</section>
<!-- Another banner tactic -->
<section>
<h3>The Banner (a.k.a. Hero) Section</h3>
<p class="fragment">A large banner image, prominently placed on a page, generally in front and center</p>
<p class="fragment">Use three CSS properties — <span class="green">background-image</span>, <span class="green">background-size</span>, and <span class="green">height</span> — together to make a scalable responsive banner</p>
<p class="fragment">Use <span class="orange">background-size: cover;</span> to scale the image to the largest size such that both its width and its height can fit inside the content area</p>
</section>
<!-- Let's Develop It! -->
<section>
<h2>Let's Develop It!</h2>
<p>Let's start styling our banner section<br /><img src="images/gdi-profile-layout.png" alt="today's project" /></p>
</section>
<!-- Border Radius -->
<section>
<h3>Property: <em>border-radius</em></h3>
<p><span class="green">border-radius</span> rounds the corners of an element</p>
<p class="fragment">No image editing required! The <em>border-radius</em> property is part of <span class="blue">CSS3</span> (the latest version of CSS)</p>
</section>
<section>
<h3><em>border-radius</em> with Four Values</h3>
<p>Clockwise from the top left</p>
<pre class="css"><code>
selector {
border-radius: topLeft topRight bottomRight bottomLeft;
}
</code></pre><p></p>
<div class="fragment">
<pre class="css"><code>
img {
border-radius: 10px 30px 60px 150px;
}
</code></pre>
<p class="fragment"><img style="box-shadow:none;" src="img/border-radius-kitten.png" /><small><br />becomes</small><img style="box-shadow:none;border-radius:10px 30px 60px 150px" src="img/border-radius-kitten.png" class="fragment" /></p>
</div>
</section>
<section>
<h3><em>border-radius</em> with Two Values</h3>
<pre class="css"><code>
selector {
border-radius: topLeftAndBottomRight topRightAndBottomLeft;
}
</code></pre>
<p></p>
<pre class="css fragment"><code>
img {
border-radius: 10px 150px;
}
</code></pre>
<p class="fragment"><img style="box-shadow:none;border-radius:10px 150px" src="img/border-radius-kitten.png" /></p>
</section>
<section>
<h3><em>border-radius</em> with One Value</h3>
<pre class="css"><code>
selector {
border-radius: all;
}
</code></pre>
<p></p>
<pre class="fragment css"><code>
img {
border-radius: 40px;
}
</code></pre>
<p class="fragment"><img style="box-shadow:none;border-radius:40px" src="img/border-radius-kitten.png" /></p>
</section>
<section>
<h3>Using <em>border-radius</em> to Make an Element into a Circle</h3>
<pre class="css"><code>
selector {
border-radius: 50%;
}
</code></pre>
<p></p>
<pre class="css fragment"><code>
img {
border-radius: 50%;
}
</code></pre>
<p class="fragment"><img style="box-shadow:none;border-radius:50%" src="img/border-radius-kitten.png" /></p>
</section>
<!-- Let's Develop It! -->
<section>
<h2>Let's Develop It!</h2>
<p>Let's make our profile image into a circle<br /><img src="images/gdi-profile-layout.png" alt="today's project" /></p>
</section>
<section data-background="#f05b62">
<h1 style="color: #fafafa;">Custom Fonts</h1>
<h3 style="color: #fafafa;">Beyond Times News Roman</h3>
</section>
<section>
<h3>Meet Google Web Fonts</h3>
<p class="fragment">Google has hundreds of free, open-source fonts that have been optimized for the web, and ready for us to use!</p>
<p class="fragment">The service runs on Google's servers which are fast, reliable and tested. Google provides this service free of charge.</p>
<p class="fragment">Check it out at <a href="http://google.com/fonts" target="_blank">http://google.com/fonts »</a></p>
<p class="fragment"><small>There are also other great font services, such as <a href="http://www.fontsquirrel.com/" target="_blank">Font Squirrel</a></small></p>
</section>
<!-- Fonts-->
<section>
<h3>Custom Fonts</h3>
<p class="fragment">In our design, we've used Lato for the body and Bree Serif for the headlines</p>
<p class="fragment">You can use any font you'd like!</p>
<div class="fragment">
<img src="images/lato.png" alt="lato" style="width: 40%; float: left;" />
<img src="images/bree.png" alt="bree" style="width: 40%; float: right;" />
</div>
</section>
<section>
<h3>How To Use Google Fonts</h3>
<ol>
<li class="fragment"><a href="http://google.com/fonts" target="_blank">Search the hundreds of font families</a>, then add some to your collection</li>
<li class="fragment">Compare and refine the collection — think about what styles you <strong>need</strong></li>
<li class="fragment">Grab the CSS that Google prepares for you and add it to the top of your CSS file!<br /><pre class="css"><code>@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic|Bree+Serif);</code></pre></li>
</ol>
</section>
<section>
<h3>How to Use Google Fonts</h3>
<ol start="4">
<li>Use <span class="orange">font-family</span> to reference the Google fonts (Google will give you code for this, as well)</li>
</ol>
<pre><code class = "html">
body{
font-family: 'Lato', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Bree Serif', serif;
}
</code></pre>
</section>
<!-- Let's Develop It! -->
<section>
<h2>Let's Develop It!</h2>
<p>Pick some fonts for your site using Google Fonts.</p>
<p>Adjust the <code>font-size</code> and <code>line-height</code> to refine your fonts<br /><img src="images/gdi-profile-layout.png" alt="today's project" /></p>
</section>
<!-- Next Week -->
<section class="hide-pdf">
<h2>Next Week</h2>
<p class="blue">Beyond Layouts — CSS Animations, SVGs, & More Advanced CSS Goodness</p>
<p> </p>
<p>If you haven't already, try to use each of the CSS properties discussed today. Next week we'll learn some more cool CSS tricks, and start talking about responsive development!</p>
</section>
<section class="hide-pdf">
<h3>Questions?</h3>
<div style="font-size:1200%; height:100%; margin-top:20%" class="blue">?
<div class="clear"></div>
</div>
<aside class="notes">Can always email me!</aside>
</section>
</div>
<footer>
<div class="copyright">
Intermediate HTML & CSS | Boston Chapter |
<a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc/3.0/80x15.png" />
</a>
</div>
</footer>
</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,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
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,
condition: function() {
return !!document.querySelector('pre code');
},
callback: function() {
hljs.initHighlightingOnLoad();
}
}, {
src: 'plugin/zoom-js/zoom.js',
async: true
}, {
src: 'plugin/notes/notes.js',
async: true
}, {
src: 'plugin/accessibility-helper/js/accessibility-helper.js',
async: true,
condition: function() {
return !!document.body.classList;
}
}]
});
</script>
</body>
</html>