-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
890 lines (736 loc) · 23.2 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
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Gizra</title>
<meta name="description" content="DrupalCon Nola">
<meta name="author" content="Amitai Burstein (amitaibu)">
<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, minimal-ui">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/black.css" id="theme">
<link href="//fonts.googleapis.com/css?family=Abril+Fatface" rel="stylesheet" type="text/css">
<!-- Code syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
My wife's great tip on how I should open my presentation is to tell you more about
myself, because according to her, it helps create interest
in the presentation, which again according to her, is way too technical,
and super boring, and she hardly thinks anyone will come, let alone
enjoy it.
<aside class="notes" data-markdown>
* What do you mean?
* I don't know. Like, tell them your name, your age and how many kids you have
</aside>
</section>
<!-- Elm app -->
<section data-background-iframe="http://gfycat.com/ifr/OfficialNeighboringGalapagoshawk">
<aside class="notes" data-markdown>
* Created a webapp in Elm
* Idiot, you are only 37
* Eventhough biographically incorrect, proceed
</aside>
</section>
<!-- About -->
<section data-background="https://cloud.githubusercontent.com/assets/125707/12092123/dd49649a-b303-11e5-9355-e49a3881f5bd.png">
<span style="background-color: black; opacity: 0.85; padding: 20px 40px;">
<span style="font-family: Abril Fatface; color: #e27058; font-size: 50px;">
gizra
</span>
<span>// @amitaibu</span>
</span>
<aside class="notes" data-markdown>
* Intro
* Since beggining of 2016, official US office
* Please tweet, makes me feel important
</aside>
</section>
<section data-background="https://cloud.githubusercontent.com/assets/125707/15116391/bcacda50-15c8-11e6-828c-c7922362df7f.jpg">
<div style="background-color: black; opacity: 0.75; padding: 20px;">
<h2>Elm</h2>
A different approach to frontend webapps
</div>
<aside class="notes" data-markdown>
* Let's understand what it solves
* Agree or disagree, all JS frameworks have in common use JS
* If JS ninja ok
* Pragmatic approach: Quickest, cheapest, solid, and keep devs moral
* Bash Angular 1. Elm provides better tools to deal
</aside>
</section>
<section>
<small>Counter.elm</small>
<pre style="width: 100%;"><code data-trim>
module Counter where
import Html exposing (..)
import Html.Events exposing (onClick)
-- MODEL
type alias Model = Int
init : Int -> Model
init count = count
-- UPDATE
type Action = Increment | Decrement
update : Action -> Model -> Model
update action model =
case action of
Increment -> model + 1
Decrement -> model - 1
-- VIEW
view : Signal.Address Action -> Model -> Html
view address model =
div []
[ button [ onClick address Decrement ] [ text "-" ]
, div [] [ text (toString model) ]
, button [ onClick address Increment ] [ text "+" ]
]
</code></pre>
<aside class="notes" data-markdown>
* Functional programming language. If you know - good for you
* Functions don't have state and data is immutable
* It's a language. Similarity to Haskell. Compiled to JS, HTML, CSS
(you can use Bootstrap/ Semantic UI)
</aside>
</section>
<section>
<h3>Elm Architecture</h3>
<aside class="notes" data-markdown>
* Set of best practices
* How to structure your application
* How to connect components
* Model -> Update -> View
* Consists of a few prinicpels
</aside>
</section>
<section>
<div>
<h3>Principle 1: Single source of truth</h3>
<small>The state of your whole application is stored in a record tree</small>
</div>
<aside class="notes" data-markdown>
* Saw first time it resonated
* Angular 1 - where is your state? Router. Services.
* Async nature of JS
* Condition of your webapp
* In case of bugs, hard to reproduce
* Maybe counter intiutive (seperation of concerns) - control webapp
</aside>
</section>
<section>
<div>
<h3>Principle 2: State is read-only</h3>
<small>The only way to mutate the state is to emit an action describing what happened</small>
</div>
<aside class="notes" data-markdown>
* It's 2016. The root of all evil in this world. heart worming, positive, non-cynical,
world - 2 way data binding
* Angular 1 site - Save me so many jQuery lines
* What made us love it, is what we now hate
* If view changes model, chain of actions. Can't control state
</aside>
</section>
<!-- Elm app -->
<section data-background-iframe="http://gfycat.com/ifr/OfficialNeighboringGalapagoshawk">
<aside class="notes" data-markdown>
* Back to our award winning webapp
* It's a glorified counter example
* How to think elm
* Learning curve, but things just make sense
</aside>
</section>
<section>
<pre>
<code class="elm" data-trim>
module Person where
import Effects exposing (Effects)
import Html exposing (button, div, pre, text, Html)
import Html.Events exposing (onClick)
-- MODEL
type alias Model =
{ age : Int
, kids : Int
, name : String
}
initialModel : Model
initialModel =
{ age = 38
, kids = 3
, name = "Amitai"
}
init : (Model, Effects Action)
init =
( initialModel
, Effects.none
)
-- UPDATE
type Action = Decrement | Increment
update : Action -> Model -> (Model, Effects Action)
update action model =
case action of
Decrement ->
( { model | kids = model.kids - 1 }
, Effects.none
)
Increment ->
( { model | kids = model.kids + 1 }
, Effects.none
)
</code>
</pre>
<aside class="notes" data-markdown>
* Boiler code
* Show the essence
* What actions/ operations can you do
* When I click the button nothing will happen
* Update is the brain of webapp, here we have logic
* Next: View
</aside>
</section>
<section>
<pre>
<code class="elm" data-trim>
view : Signal.Address Action -> Model -> Html
view address model =
div []
[ div [] [ text <| "Name: " ++ model.name ]
, div [] [ text <| "Age: " ++ (toString model.age) ]
, div [] [ text <| "Kids num: " ++ (toString model.kids) ]
, button [ onClick address Decrement ] [ text "-" ]
, button [ onClick address Increment ] [ text "+" ]
, pre [] [ text (toString model) ]
]
--
</code>
</pre>
<aside class="notes" data-markdown>
* Not HTML, but still quite convoluted
* Next: Clenup the View
</aside>
</section>
<section>
<pre>
<code class="elm" data-trim>
view : Signal.Address Action -> Model -> Html
view address model =
div []
[ viewName model.name
, viewAge model.age
, viewKids model.age
, button [ onClick address Decrement ] [ text "-" ]
, button [ onClick address Increment ] [ text "+" ]
, pre [] [ text (toString model) ]
]
viewName : String -> Html
viewName name =
div [] [ text <| "Name: " ++ name ]
viewAge : Int -> Html
viewAge age =
div [] [ text <| "Age: " ++ (toString age) ]
viewKids : Int -> Html
viewKids kids =
div [] [ text <| "Kids num: " ++ (toString kids) ]
</code>
</pre>
<aside class="notes" data-markdown>
Everything in Elm is a function
</aside>
</section>
<!-- Age instead of kids -->
<section>
<img src="https://cloud.githubusercontent.com/assets/125707/13567524/6834a4ca-e464-11e5-971e-27e825b67aff.jpg" alt="" />
<aside class="notes" data-markdown>
* Oh no! how embarrasing! and infront of such a talented audience
* Kids is wrong (show code)
* Debug shows model is right
</aside>
</section>
<section>
<h3>Compile Error Vs Runtime Mistakes</h3>
<aside class="notes" data-markdown>
* No Runtime errors in Elm
* Shift as much runtime mistakes to compile time error
* To do that, need to understand types
</aside>
</section>
<section>
<h2>Types 101</h2>
</section>
<!-- Bool type -->
<section>
<pre>
<code class="elm" data-trim>
type Bool = False | True
</code>
</pre>
</section>
<!-- Vehicle type -->
<section>
<pre>
<code class="elm" data-trim>
type Vehicle = Boat | Plane | Car Int
type alias Model =
{ name : String
, vehicle : Vehicle
}
</code>
</pre>
<aside class="notes" data-markdown>
* So rich
* Multiple cars
* Int wrapped with a Car type
</aside>
</section>
<section>
<h2>Type Safety</h2>
<aside class="notes" data-markdown>
* Have types in place, helping the compiler in helping us
* Preventing mistakes
</aside>
</section>
<!-- Kids & Name both Int -->
<section>
<pre>
<code class="elm" data-trim>
--
type alias Model =
{ age : Int
, kids : Int
, name : String
}
initialModel : Model
initialModel =
{ age = 38
, kids = 3
, name = "Amitai"
}
</code>
</pre>
<aside class="notes" data-markdown>
(scroll down)
</aside>
</section>
<!-- Kids type -->
<section>
<pre>
<code class="elm" data-trim>
type Kids = Kids Int
type alias Model =
{ age : Int
, kids : Kids
, name : String
}
initialModel : Model
initialModel =
{ age = 38
, kids = Kids 3
, name = "Amitai"
}
</code>
</pre>
</section>
<!-- Kids type view before change -->
<section>
<pre>
<code class="elm" data-trim>
viewKids : Int -> Html
viewKids kids =
div [] [ text <| "Kids num: " ++ (toString kids) ]
--
</code>
</pre>
<aside class="notes" data-markdown>
View before change
</aside>
</section>
<section>
<pre>
<code class="elm" data-trim>
viewKids : Kids -> Html
viewKids kids =
let
(Kids val) = kids
in
div [] [ text <| "Kids num: " ++ (toString val) ]
</code>
</pre>
<aside class="notes" data-markdown>
* btw, inferred types
* Easier to read
</aside>
</section>
<section>
<pre>
<code class="elm" data-trim>
viewKids : Kids -> Html
viewKids (Kids kids) =
div [] [ text <| "Kids num: " ++ (toString val) ]
--
</code>
</pre>
<aside class="notes" data-markdown>
* we can shorten it back
</aside>
</section>
<!-- Error in Atom -->
<section>
<img src="https://cloud.githubusercontent.com/assets/125707/13567992/4b8b10f4-e467-11e5-8403-2eed4c375d18.jpg" class="stretch" />
<aside class="notes" data-markdown>
* Not pushing bad logic to production
* Next: Kids in update func
</aside>
</section>
<!-- Update before change -->
<section>
<pre>
<code class="elm" data-trim>
update : Action -> Model -> (Model, Effects Action)
update action model =
case action of
Decrement ->
( { model | kids = model.kids - 1 }
, Effects.none
)
Increment ->
( { model | kids = model.kids + 1 }
, Effects.none
)
--
</code>
</pre>
<aside class="notes" data-markdown>
* Some code needs to change
* Kids is no longer holding just an Int
</aside>
</section>
<!-- Update after change -->
<section>
<pre>
<code class="elm" data-trim>
update : Action -> Model -> (Model, Effects Action)
update action model =
case action of
Decrement ->
let
(Kids val) = model.kids
kids' = Kids (val - 1)
in
( { model | kids = kids' }
, Effects.none
)
Increment ->
let
(Kids val) = model.kids
kids' = Kids (val + 1)
in
( { model | kids = kids' }
, Effects.none
)
</code>
</pre>
<aside class="notes" data-markdown>
* Unwrap
* appostrophy
* Update - The only place for Business logic and change our data
* Easier for bugs
* more complicated requiremenets, to put it in context
so it won't sound to harsh
</aside>
</section>
<!-- 40 seconds of my life -->
<section>
<h4>40 seconds of my life</h4>
<iframe width="853" height="480" src="https://www.youtube.com/embed/liBroOdK1wA?rel=0&controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
<aside class="notes" data-markdown>
* Try to notice the sound of the piano in the end, that's one of my favorite parts
* I think it's evident what the requiremenet is
</aside>
</section>
<section>
<h2>Put a limit on Kids</h2>
<aside class="notes" data-markdown>
* Aya - the name of the crying girl, was throwing a fit over the fact the yellow potato head glasses didn't
fit her better
</aside>
</section>
<!-- Limit on kids -->
<section data-background-iframe="http://gfycat.com/ifr/BossyExemplaryIndianpalmsquirrel">
<aside class="notes" data-markdown>
* Can't go below zero, can go beyond a certain number
* How would you do on Angular1?
* Disable html HTML?
* Subscribe to model changing and undo it?
* Unidirectional, we don't have 2 way binding problems - view sends to update, that
decides what should change
</aside>
</section>
<!-- Before limit update change -->
<section>
<pre>
<code class="elm" data-trim>
update : Action -> Model -> (Model, Effects Action)
update action model =
case action of
Decrement ->
let
(Kids val) = model.kids
kids' = Kids (val - 1)
in
( { model | kids = kids' }
, Effects.none
)
Increment ->
let
(Kids val) = model.kids
kids' = Kids (val + 1)
in
( { model | kids = kids' }
, Effects.none
)
</code>
</pre>
<aside class="notes" data-markdown>
* Before change
</aside>
</section>
<!-- After limit update change -->
<section>
<pre>
<code class="elm" data-trim>
update : Action -> Model -> (Model, Effects Action)
update action model =
case action of
Decrement ->
let
(Kids val) = model.kids
kids' = if val < 1 then Kids 0 else Kids (val - 1)
in
( { model | kids = kids' }
, Effects.none
)
Increment ->
let
(Kids val) = model.kids
kids' = if val > 4 then Kids 5 else Kids (val + 1)
in
( { model | kids = kids' }
, Effects.none
)
</code>
</pre>
</section>
<section>
<h3>Buisness Logic requires Testing</h3>
<aside class="notes" data-markdown>
* Who writes unit tests in JS?
* Who enjoys it?
* For the viewers at home, very few raised there hands, can't blame them
* Probably the same amount of joy and happiness those guys in the back of
Kim Jung Un must be feeling.
</aside>
</section>
<!-- Kim Jung Un 1 -->
<section data-background="https://cloud.githubusercontent.com/assets/125707/14984664/8020228e-114c-11e6-9db9-e986cc9f8398.jpg">
<aside class="notes" data-markdown>
* Probably the same amount of joy and happiness those guys in the back of
Kim Jung Un must be feeling.
</aside>
</section>
<!-- Kim Jung Un 2 -->
<section data-background="https://cloud.githubusercontent.com/assets/125707/14984664/8020228e-114c-11e6-9db9-e986cc9f8398.jpg">
<h2 style="background-color: black; opacity: 0.85; padding: 20px; ">
Unit tests
</h2>
<aside class="notes" data-markdown>
* To understand What makes unit tests easy Elm Time to talk about "Pure functions and side effects"
</aside>
</section>
<!-- Side Effects -->
<section>
<h2>Pure Functions & Side Effects</h2>
<aside class="notes" data-markdown>
* Elm is a black box with no connection to outside world
* Http request
* Reading URL from address bar
* Getting time and date from the browser
* These are all effects (or side effects)
</aside>
</section>
<section>
<pre style="width: 100%;"><code data-trim>
-- MODEL
type alias Model = Int
-- UPDATE
type Action
= GetDataFromServer
| UpdateDataFromServer Result
</code></pre>
<aside class="notes" data-markdown>
* Simple counter example, data from server
* Action - nothing happens by itself
* Code not compiled, for simplicity and brevity
</aside>
</section>
<section>
<pre style="width: 100%;"><code data-trim>
GetDataFromServer ->
( model, Http.get "https://example.com/api/data" |> Task.map UpdateDataFromServer )
UpdateDataFromServer result ->
case result of
Ok val ->
( { model = val } , Effects.none )
Err msg ->
( model , Effects.none )
</code></pre>
<aside class="notes" data-markdown>
* Just a todo for the Elm runtime
* Writing todo: Bourbon Street in New Orleans
* No need to mock the entire world, catch HTTP
* Encourages us to be better developers
</aside>
</section>
<!-- Headless Drupal -->
<section data-background="https://cloud.githubusercontent.com/assets/125707/15009257/1d279dae-11ee-11e6-9f6b-0f1e75820dd3.jpg">
<h2 style="background-color: black; opacity: 0.85; padding: 20px; ">
Headless Drupal
</h2>
<aside class="notes" data-markdown>
* Users, permissions, content modeling, entity reference, RESTful
* next: Timewatch
</aside>
</section>
<!-- Timewatch -->
<section data-background-video="http://zippy.gfycat.com/ClassicSplendidDikkops.webm" data-background-video-loop>
<aside class="notes" data-markdown>
* Office timewatch
* Israeli law
</aside>
</section>
<!-- Hedley -->
<section>
<small>https://github.com/amitaibu/elm-hedley</small>
<div>
<img src="https://cloud.githubusercontent.com/assets/125707/11417413/ae2f2d96-941f-11e5-8482-d68a936ad083.jpg" />
</div>
<aside class="notes" data-markdown>
* What helps us decide to transition from Angular, jump over react to Elm.
* Hedley - scaffold Drupal, Angular1, Behat, Travis, Migrate - best practices
* Typical webapp, login, github
</aside>
</section>
<section data-background-video="http://zippy.gfycat.com/FickleTangibleAntlion.webm" data-background-video-loop>
<aside class="notes" data-markdown>
* Router
* Maps
* User interactions to filter events
</aside>
</section>
<section data-background-video="http://zippy.gfycat.com/RegularWelltodoEider.webm" data-background-video-loop>
<aside class="notes" data-markdown>
* Uploading files with drag and drop
* This can be your own Drupal site
* Can by hybrid
</aside>
</section>
<section>
<h2>Yeoman Generator</h2>
<small>https://github.com/Gizra/generator-elmlang</small>
<div>
<ul>
<li>Gulp</li>
<li>browserSync</li>
<li>Auto-compile</li>
<li>Sass</li>
<li>Bundle and Deploy to gh-pages</li>
</ul>
</div>
<aside class="notes" data-markdown>
* Read elm-lang.org
* Generator
</aside>
</section>
<section>
<img src="https://cloud.githubusercontent.com/assets/125707/11408428/a63eb646-93c1-11e5-8e6d-b5dd54070018.jpg" />
<aside class="notes" data-markdown>
* Structured app
* A few tests
* Travis
</aside>
</section>
<section>
<img src="http://www.gizra.com/assets/images/posts/elm-i18n/image1.gif" alt="" />
<aside class="notes" data-markdown>
* Read more one elm-lang and our blog posts
</aside>
</section>
<section>
<h4>My functional programming journey</h4>
<small>What about NodeJs?</small>
<aside class="notes" data-markdown>
* I started with Elm
* Looked at Symfony as holy grail (decoupled, composition)
* Objects mutable, might have state
* Developer brain gets a kick, you start looking differently
</aside>
</section>
<!-- Yesod -->
<section>
<img src="https://cloud.githubusercontent.com/assets/125707/15009836/78fd76e6-11f1-11e6-9d3a-355b7098ba22.jpg" alt="" class="stretch"/>
<aside class="notes" data-markdown>
* For more complex sites with have Drupal and NodeJs as proxy server
* No longer enjoy, I know there is something better
* Huge learning curve, but you see completely different approach
</aside>
</section>
<!-- Last slide -->
<section data-background="https://cloud.githubusercontent.com/assets/125707/11408842/6abc3708-93c4-11e5-8515-bf92a59cf8ea.jpg">
<div style="background-color: black; opacity: 0.85; padding: 20px;">
<span style="font-family: Abril Fatface; color: #e27058; font-size: 50px;">
gizra
</span>
| We now have a US office. Seriously.
</div>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: false,
progress: false,
history: true,
center: true,
transition: 'none', // 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, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'socket.io/socket.io.js', async: true },
{ src: 'plugin/notes-server/client.js', async: true }
]
});
</script>
</body>
</html>