From f64b81fed9702c41af4cec14d91f38ce5ad3384e Mon Sep 17 00:00:00 2001
From: Trygve Laugstøl
Date: Tue, 24 Apr 2018 09:23:08 +0200
Subject: o Moving everything under slides.
---
slides/Makefile | 83 +
slides/README.md | 5 +
slides/bower.json | 18 +
slides/bower_components/headjs/bower.json | 31 +
.../headjs/dist/1.0.0/changelog.txt | 96 +
.../headjs/dist/1.0.0/head.core.js | 312 ++
.../headjs/dist/1.0.0/head.core.min.js | 5 +
.../headjs/dist/1.0.0/head.core.min.js.map | 8 +
.../headjs/dist/1.0.0/head.css3.js | 477 ++
.../headjs/dist/1.0.0/head.css3.min.js | 7 +
.../headjs/dist/1.0.0/head.css3.min.js.map | 8 +
slides/bower_components/headjs/dist/1.0.0/head.js | 1184 +++++
.../headjs/dist/1.0.0/head.load.js | 707 +++
.../headjs/dist/1.0.0/head.load.min.js | 5 +
.../headjs/dist/1.0.0/head.load.min.js.map | 8 +
.../bower_components/headjs/dist/1.0.0/head.min.js | 9 +
.../headjs/dist/1.0.0/head.min.js.map | 8 +
slides/bower_components/reveal.js/CONTRIBUTING.md | 23 +
slides/bower_components/reveal.js/Gruntfile.js | 192 +
slides/bower_components/reveal.js/LICENSE | 19 +
slides/bower_components/reveal.js/README.md | 1238 +++++
slides/bower_components/reveal.js/bower.json | 27 +
.../bower_components/reveal.js/css/print/paper.css | 203 +
.../bower_components/reveal.js/css/print/pdf.css | 178 +
slides/bower_components/reveal.js/css/reveal.css | 1555 ++++++
slides/bower_components/reveal.js/css/reveal.scss | 1717 +++++++
.../bower_components/reveal.js/css/theme/README.md | 21 +
.../bower_components/reveal.js/css/theme/beige.css | 268 +
.../bower_components/reveal.js/css/theme/black.css | 264 +
.../bower_components/reveal.js/css/theme/blood.css | 287 ++
.../reveal.js/css/theme/league.css | 270 +
.../bower_components/reveal.js/css/theme/moon.css | 268 +
.../bower_components/reveal.js/css/theme/night.css | 262 +
.../bower_components/reveal.js/css/theme/serif.css | 264 +
.../reveal.js/css/theme/simple.css | 267 +
.../bower_components/reveal.js/css/theme/sky.css | 271 +
.../reveal.js/css/theme/solarized.css | 268 +
.../reveal.js/css/theme/source/beige.scss | 39 +
.../reveal.js/css/theme/source/black.scss | 49 +
.../reveal.js/css/theme/source/blood.scss | 78 +
.../reveal.js/css/theme/source/league.scss | 34 +
.../reveal.js/css/theme/source/moon.scss | 57 +
.../reveal.js/css/theme/source/night.scss | 34 +
.../reveal.js/css/theme/source/serif.scss | 35 +
.../reveal.js/css/theme/source/simple.scss | 43 +
.../reveal.js/css/theme/source/sky.scss | 46 +
.../reveal.js/css/theme/source/solarized.scss | 63 +
.../reveal.js/css/theme/source/white.scss | 49 +
.../reveal.js/css/theme/template/mixins.scss | 29 +
.../reveal.js/css/theme/template/settings.scss | 43 +
.../reveal.js/css/theme/template/theme.scss | 316 ++
.../bower_components/reveal.js/css/theme/white.css | 264 +
slides/bower_components/reveal.js/demo.html | 410 ++
slides/bower_components/reveal.js/index.html | 49 +
slides/bower_components/reveal.js/js/reveal.js | 5239 ++++++++++++++++++++
.../bower_components/reveal.js/lib/css/zenburn.css | 80 +
.../reveal.js/lib/font/league-gothic/LICENSE | 2 +
.../lib/font/league-gothic/league-gothic.css | 10 +
.../lib/font/league-gothic/league-gothic.eot | Bin 0 -> 25696 bytes
.../lib/font/league-gothic/league-gothic.ttf | Bin 0 -> 64256 bytes
.../lib/font/league-gothic/league-gothic.woff | Bin 0 -> 30764 bytes
.../reveal.js/lib/font/source-sans-pro/LICENSE | 45 +
.../source-sans-pro/source-sans-pro-italic.eot | Bin 0 -> 75720 bytes
.../source-sans-pro/source-sans-pro-italic.ttf | Bin 0 -> 238084 bytes
.../source-sans-pro/source-sans-pro-italic.woff | Bin 0 -> 98556 bytes
.../source-sans-pro/source-sans-pro-regular.eot | Bin 0 -> 88070 bytes
.../source-sans-pro/source-sans-pro-regular.ttf | Bin 0 -> 288008 bytes
.../source-sans-pro/source-sans-pro-regular.woff | Bin 0 -> 114324 bytes
.../source-sans-pro/source-sans-pro-semibold.eot | Bin 0 -> 89897 bytes
.../source-sans-pro/source-sans-pro-semibold.ttf | Bin 0 -> 284640 bytes
.../source-sans-pro/source-sans-pro-semibold.woff | Bin 0 -> 115648 bytes
.../source-sans-pro-semibolditalic.eot | Bin 0 -> 75706 bytes
.../source-sans-pro-semibolditalic.ttf | Bin 0 -> 240944 bytes
.../source-sans-pro-semibolditalic.woff | Bin 0 -> 98816 bytes
.../lib/font/source-sans-pro/source-sans-pro.css | 39 +
.../bower_components/reveal.js/lib/js/classList.js | 2 +
.../bower_components/reveal.js/lib/js/head.min.js | 9 +
.../bower_components/reveal.js/lib/js/html5shiv.js | 7 +
slides/bower_components/reveal.js/package.json | 43 +
.../reveal.js/plugin/highlight/highlight.js | 77 +
.../reveal.js/plugin/markdown/example.html | 129 +
.../reveal.js/plugin/markdown/example.md | 31 +
.../reveal.js/plugin/markdown/markdown.js | 412 ++
.../reveal.js/plugin/markdown/marked.js | 6 +
.../bower_components/reveal.js/plugin/math/math.js | 67 +
.../reveal.js/plugin/multiplex/client.js | 13 +
.../reveal.js/plugin/multiplex/index.js | 64 +
.../reveal.js/plugin/multiplex/master.js | 34 +
.../reveal.js/plugin/multiplex/package.json | 19 +
.../reveal.js/plugin/notes-server/client.js | 65 +
.../reveal.js/plugin/notes-server/index.js | 69 +
.../reveal.js/plugin/notes-server/notes.html | 585 +++
.../reveal.js/plugin/notes/notes.html | 759 +++
.../reveal.js/plugin/notes/notes.js | 155 +
.../reveal.js/plugin/print-pdf/print-pdf.js | 69 +
.../reveal.js/plugin/search/search.js | 206 +
.../reveal.js/plugin/zoom-js/zoom.js | 272 +
slides/dictionary.txt | 33 +
slides/images/IP-Header_eng.pdf | Bin 0 -> 11359 bytes
slides/images/IP-Header_eng.tex | 47 +
slides/images/esp+arduino-sdks.pgf | 36 +
slides/images/esp32-block-diagram.pdf | Bin 0 -> 183301 bytes
slides/images/esp32_datasheet_en.pdf | Bin 0 -> 892800 bytes
slides/images/esp8266ex-block-diagram.pdf | Bin 0 -> 19611 bytes
slides/images/esp8266ex_datasheet_en.pdf | Bin 0 -> 642062 bytes
slides/images/ip-header.pdf | Bin 0 -> 17867 bytes
slides/images/ip-header.svg | 2 +
slides/images/ip-header.xml | 1 +
slides/images/pp-template | 28 +
slides/images/qtikz-template.pgs | 33 +
slides/presentation-reveal.html | 172 +
slides/refresh | 18 +
slides/toc.md | 40 +
slides/what-is-iot-reveal.html | 555 +++
slides/what-is-iot-slides.pdf | Bin 0 -> 70985 bytes
slides/what-is-iot-slides.tex | 851 ++++
slides/what-is-iot-text.pdf | Bin 0 -> 84649 bytes
slides/what-is-iot.md | 491 ++
118 files changed, 23286 insertions(+)
create mode 100644 slides/Makefile
create mode 100644 slides/README.md
create mode 100644 slides/bower.json
create mode 100644 slides/bower_components/headjs/bower.json
create mode 100644 slides/bower_components/headjs/dist/1.0.0/changelog.txt
create mode 100644 slides/bower_components/headjs/dist/1.0.0/head.core.js
create mode 100644 slides/bower_components/headjs/dist/1.0.0/head.core.min.js
create mode 100644 slides/bower_components/headjs/dist/1.0.0/head.core.min.js.map
create mode 100644 slides/bower_components/headjs/dist/1.0.0/head.css3.js
create mode 100644 slides/bower_components/headjs/dist/1.0.0/head.css3.min.js
create mode 100644 slides/bower_components/headjs/dist/1.0.0/head.css3.min.js.map
create mode 100644 slides/bower_components/headjs/dist/1.0.0/head.js
create mode 100644 slides/bower_components/headjs/dist/1.0.0/head.load.js
create mode 100644 slides/bower_components/headjs/dist/1.0.0/head.load.min.js
create mode 100644 slides/bower_components/headjs/dist/1.0.0/head.load.min.js.map
create mode 100644 slides/bower_components/headjs/dist/1.0.0/head.min.js
create mode 100644 slides/bower_components/headjs/dist/1.0.0/head.min.js.map
create mode 100644 slides/bower_components/reveal.js/CONTRIBUTING.md
create mode 100644 slides/bower_components/reveal.js/Gruntfile.js
create mode 100644 slides/bower_components/reveal.js/LICENSE
create mode 100644 slides/bower_components/reveal.js/README.md
create mode 100644 slides/bower_components/reveal.js/bower.json
create mode 100644 slides/bower_components/reveal.js/css/print/paper.css
create mode 100644 slides/bower_components/reveal.js/css/print/pdf.css
create mode 100644 slides/bower_components/reveal.js/css/reveal.css
create mode 100644 slides/bower_components/reveal.js/css/reveal.scss
create mode 100644 slides/bower_components/reveal.js/css/theme/README.md
create mode 100644 slides/bower_components/reveal.js/css/theme/beige.css
create mode 100644 slides/bower_components/reveal.js/css/theme/black.css
create mode 100644 slides/bower_components/reveal.js/css/theme/blood.css
create mode 100644 slides/bower_components/reveal.js/css/theme/league.css
create mode 100644 slides/bower_components/reveal.js/css/theme/moon.css
create mode 100644 slides/bower_components/reveal.js/css/theme/night.css
create mode 100644 slides/bower_components/reveal.js/css/theme/serif.css
create mode 100644 slides/bower_components/reveal.js/css/theme/simple.css
create mode 100644 slides/bower_components/reveal.js/css/theme/sky.css
create mode 100644 slides/bower_components/reveal.js/css/theme/solarized.css
create mode 100644 slides/bower_components/reveal.js/css/theme/source/beige.scss
create mode 100644 slides/bower_components/reveal.js/css/theme/source/black.scss
create mode 100644 slides/bower_components/reveal.js/css/theme/source/blood.scss
create mode 100644 slides/bower_components/reveal.js/css/theme/source/league.scss
create mode 100644 slides/bower_components/reveal.js/css/theme/source/moon.scss
create mode 100644 slides/bower_components/reveal.js/css/theme/source/night.scss
create mode 100644 slides/bower_components/reveal.js/css/theme/source/serif.scss
create mode 100644 slides/bower_components/reveal.js/css/theme/source/simple.scss
create mode 100644 slides/bower_components/reveal.js/css/theme/source/sky.scss
create mode 100644 slides/bower_components/reveal.js/css/theme/source/solarized.scss
create mode 100644 slides/bower_components/reveal.js/css/theme/source/white.scss
create mode 100644 slides/bower_components/reveal.js/css/theme/template/mixins.scss
create mode 100644 slides/bower_components/reveal.js/css/theme/template/settings.scss
create mode 100644 slides/bower_components/reveal.js/css/theme/template/theme.scss
create mode 100644 slides/bower_components/reveal.js/css/theme/white.css
create mode 100644 slides/bower_components/reveal.js/demo.html
create mode 100644 slides/bower_components/reveal.js/index.html
create mode 100644 slides/bower_components/reveal.js/js/reveal.js
create mode 100644 slides/bower_components/reveal.js/lib/css/zenburn.css
create mode 100644 slides/bower_components/reveal.js/lib/font/league-gothic/LICENSE
create mode 100644 slides/bower_components/reveal.js/lib/font/league-gothic/league-gothic.css
create mode 100755 slides/bower_components/reveal.js/lib/font/league-gothic/league-gothic.eot
create mode 100755 slides/bower_components/reveal.js/lib/font/league-gothic/league-gothic.ttf
create mode 100755 slides/bower_components/reveal.js/lib/font/league-gothic/league-gothic.woff
create mode 100644 slides/bower_components/reveal.js/lib/font/source-sans-pro/LICENSE
create mode 100755 slides/bower_components/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.eot
create mode 100755 slides/bower_components/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.ttf
create mode 100755 slides/bower_components/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.woff
create mode 100755 slides/bower_components/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.eot
create mode 100755 slides/bower_components/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.ttf
create mode 100755 slides/bower_components/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.woff
create mode 100755 slides/bower_components/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.eot
create mode 100755 slides/bower_components/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.ttf
create mode 100755 slides/bower_components/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.woff
create mode 100755 slides/bower_components/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot
create mode 100755 slides/bower_components/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf
create mode 100755 slides/bower_components/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff
create mode 100644 slides/bower_components/reveal.js/lib/font/source-sans-pro/source-sans-pro.css
create mode 100644 slides/bower_components/reveal.js/lib/js/classList.js
create mode 100644 slides/bower_components/reveal.js/lib/js/head.min.js
create mode 100644 slides/bower_components/reveal.js/lib/js/html5shiv.js
create mode 100644 slides/bower_components/reveal.js/package.json
create mode 100644 slides/bower_components/reveal.js/plugin/highlight/highlight.js
create mode 100644 slides/bower_components/reveal.js/plugin/markdown/example.html
create mode 100644 slides/bower_components/reveal.js/plugin/markdown/example.md
create mode 100755 slides/bower_components/reveal.js/plugin/markdown/markdown.js
create mode 100644 slides/bower_components/reveal.js/plugin/markdown/marked.js
create mode 100755 slides/bower_components/reveal.js/plugin/math/math.js
create mode 100644 slides/bower_components/reveal.js/plugin/multiplex/client.js
create mode 100644 slides/bower_components/reveal.js/plugin/multiplex/index.js
create mode 100644 slides/bower_components/reveal.js/plugin/multiplex/master.js
create mode 100644 slides/bower_components/reveal.js/plugin/multiplex/package.json
create mode 100644 slides/bower_components/reveal.js/plugin/notes-server/client.js
create mode 100644 slides/bower_components/reveal.js/plugin/notes-server/index.js
create mode 100644 slides/bower_components/reveal.js/plugin/notes-server/notes.html
create mode 100644 slides/bower_components/reveal.js/plugin/notes/notes.html
create mode 100644 slides/bower_components/reveal.js/plugin/notes/notes.js
create mode 100644 slides/bower_components/reveal.js/plugin/print-pdf/print-pdf.js
create mode 100644 slides/bower_components/reveal.js/plugin/search/search.js
create mode 100644 slides/bower_components/reveal.js/plugin/zoom-js/zoom.js
create mode 100644 slides/dictionary.txt
create mode 100644 slides/images/IP-Header_eng.pdf
create mode 100644 slides/images/IP-Header_eng.tex
create mode 100644 slides/images/esp+arduino-sdks.pgf
create mode 100644 slides/images/esp32-block-diagram.pdf
create mode 100644 slides/images/esp32_datasheet_en.pdf
create mode 100644 slides/images/esp8266ex-block-diagram.pdf
create mode 100644 slides/images/esp8266ex_datasheet_en.pdf
create mode 100644 slides/images/ip-header.pdf
create mode 100644 slides/images/ip-header.svg
create mode 100644 slides/images/ip-header.xml
create mode 100755 slides/images/pp-template
create mode 100644 slides/images/qtikz-template.pgs
create mode 100644 slides/presentation-reveal.html
create mode 100755 slides/refresh
create mode 100644 slides/toc.md
create mode 100644 slides/what-is-iot-reveal.html
create mode 100644 slides/what-is-iot-slides.pdf
create mode 100644 slides/what-is-iot-slides.tex
create mode 100644 slides/what-is-iot-text.pdf
create mode 100644 slides/what-is-iot.md
(limited to 'slides')
diff --git a/slides/Makefile b/slides/Makefile
new file mode 100644
index 0000000..5761bbb
--- /dev/null
+++ b/slides/Makefile
@@ -0,0 +1,83 @@
+P=what-is-iot
+# Madrid Pittsburgh boxes
+SLIDE_THEME?=boxes
+PDFS=$(P)-text.pdf $(P)-slides.pdf
+HTMLS=$(P)-reveal.html
+
+ifeq (1,$(QUICK))
+PP_DEFS+=QUICK
+PDF_ENGINE = pdflatex
+PANDOC_ARGS += --no-highlight
+else
+PDF_ENGINE = xelatex
+PANDOC_ARGS += --highlight-style=pygments
+endif
+
+RUN_PP_BEAMER=pp -DBEAMER $(patsubst %,-D%,$(PP_DEFS))
+RUN_PP_REVEALJS=pp -DREVEALJS $(patsubst %,-D%,$(PP_DEFS))
+RUN_PANDOC_BEAMER=pandoc -f markdown -t beamer $(PANDOC_ARGS) -V theme:$(SLIDE_THEME) \
+ --pdf-engine=$(PDF_ENGINE)
+RUN_PANDOC_REVEALJS=pandoc -f markdown -t revealjs -s -V revealjs-url=./bower_components/reveal.js
+RUN_PANDOC_TEXT=pandoc -f markdown --pdf-engine=$(PDF_ENGINE)
+
+all: toc.md $(PDFS) $(HTMLS)
+
+slides: $(P)-slides.tex $(P)-slides.pdf
+html: $(P)-reveal.html
+.PHONY: html slides
+
+clean:
+ rm -f $(PDFS) $(HTMLS)
+
+toc.md: $(P).md
+ grep '^#' $< | sed -e 's,^# ,* ,' -e 's,^## , * ,' > $@
+
+spell: .$(P).md.spell
+
+.$(P).md.spell: $(P).md
+
+.%.spell: %
+ aspell --home-dir=. --personal=dictionary.txt --lang=en_US check $<
+ touch $@
+
+$(P).md: Makefile
+ @touch $@
+
+%.beamer.md: %.md
+ $(RUN_PP_BEAMER) < $< > $@
+
+%-text.pdf: %.beamer.md
+ $(RUN_PANDOC_TEXT) -o $@ $<
+
+%-slides.pdf: %.beamer.md .var/SLIDE_THEME
+ $(RUN_PANDOC_BEAMER) -o $@ $<
+
+%-slides.tex: %.beamer.md .var/SLIDE_THEME
+ $(RUN_PANDOC_BEAMER) -o $@ $<
+
+%.revealjs.md: %.md
+ $(RUN_PP_REVEALJS) < $< > $@
+
+%-reveal.html: %.revealjs.md
+ $(RUN_PANDOC_REVEALJS) -o $@ $<
+
+images/%.pdf: images/%.tex | images/pp-template Makefile
+ images/pp-template < $< > $(patsubst %.tex,%-full.tex,$<)
+ xelatex -output-directory=images $(patsubst %.tex,%-full.tex,$<)
+ mv $(patsubst %.pdf,%-full.pdf,$@) $@
+
+
+VARS=SLIDE_THEME
+
+define refresh =
+.var/$(1)::
+ @mkdir -p .var
+ @./refresh $$@ $(1) $($(1))
+endef
+
+$(foreach var,$(VARS),$(eval $(call refresh,$(var))))
+
+# Dependencies
+$(P).md: images/IP-Header_eng.tex
+$(P).md: images/ip-header.pdf
+$(P).md: images/ip-header.svg
diff --git a/slides/README.md b/slides/README.md
new file mode 100644
index 0000000..912b907
--- /dev/null
+++ b/slides/README.md
@@ -0,0 +1,5 @@
+# Credits
+
+* Some TikZ diagrams where taken from:
+ https://github.com/tabascoeye/TikZ-diagrams/tree/master/networking
+ (Beerwarae licensed)
diff --git a/slides/bower.json b/slides/bower.json
new file mode 100644
index 0000000..475d012
--- /dev/null
+++ b/slides/bower.json
@@ -0,0 +1,18 @@
+{
+ "name": "iot-workshop",
+ "authors": [
+ "Trygve Laugstøl "
+ ],
+ "description": "",
+ "main": "",
+ "license": "MIT",
+ "homepage": "",
+ "private": true,
+ "ignore": [
+ "**/.*",
+ "node_modules",
+ "bower_components",
+ "test",
+ "tests"
+ ]
+}
diff --git a/slides/bower_components/headjs/bower.json b/slides/bower_components/headjs/bower.json
new file mode 100644
index 0000000..404edf4
--- /dev/null
+++ b/slides/bower_components/headjs/bower.json
@@ -0,0 +1,31 @@
+{
+ "name": "headjs",
+ "description": "HeadJS: Responsive Design, Feature Detections & Asset Loading. The only script in your ",
+ "version": "1.0.3",
+ "license" : "MIT",
+ "authors": [
+ {"name": "Tero Piirainen"},
+ {"name": "Robert Hoffmann"}
+ ],
+ "homepage " : "http://headjs.com",
+ "main" : ["./dist/1.0.0/head.min.js","./dist/1.0.0/head.min.js.map","./dist/1.0.0/changelog.txt"],
+ "ignore": [
+ "**",
+ "!/dist/1.0.0/*.js",
+ "!/dist/1.0.0/*.map",
+ "!/dist/1.0.0/*.txt"
+ ],
+ "directory": "public/scripts",
+ "repository": {
+ "type": "git", "url": "git://github.com/headjs/headjs.git"
+ },
+ "keywords": [
+ "loader",
+ "require",
+ "polyfill",
+ "html5",
+ "css3",
+ "feature",
+ "responsive"
+ ]
+}
\ No newline at end of file
diff --git a/slides/bower_components/headjs/dist/1.0.0/changelog.txt b/slides/bower_components/headjs/dist/1.0.0/changelog.txt
new file mode 100644
index 0000000..0feb318
--- /dev/null
+++ b/slides/bower_components/headjs/dist/1.0.0/changelog.txt
@@ -0,0 +1,96 @@
+1.0.3 (2013-11-22)
+ - New: Timeout added to resource loading
+ - New: CSS callbacks now executed for all browsers
+ - https://github.com/headjs/headjs/pull/273
+ - New: Changed how file extensions are parsed for detecting css files
+ - in the future, we will need to add a way to supply a filetype when loading resources via scripts like: style.aspx, style.php
+ - Fix: Array loading & trigger not functioning correctly on old browsers
+ - https://github.com/headjs/headjs/issues/274
+ - Fix: ready() sometimes does not trigger if assets are loaded too fast
+ - https://github.com/headjs/headjs/issues/271
+
+1.0.2 (2013-11-13)
+ - Fix: no-js class not being removed
+ - https://github.com/headjs/headjs/issues/270
+
+1.0.1 (2013-11-05)
+ - Fix: Old IE's can trigger ready too soon
+ - https://github.com/headjs/headjs/issues/203
+
+1.0.0 (2013-11-04)
+ - New: Detect Windows 8 Mobile (Surface RT/Pro), IE11, Kindle, and other Android devices
+ - New: Add Browser & Version CSS no matter what browser breakpoints are configured
+ - Example: .ff .ff20
+ - There is no need to cycle through all browser versions in 90% of cases
+ - Makes it possible to work without any breakpoints at all
+ - New: Improved CSS Router
+ - https://github.com/headjs/headjs/issues/227
+ - New: Added "main" HTML5 element to shim
+ - https://github.com/headjs/headjs/pull/230
+ - New: Enable/Disable HTML5 Shim in head_conf
+ - New: Load files from Array of Files or Array of Labels
+ - head.load(["file1", "file2"], callBack);
+ - head.load([{ label1: "file1" }, { label2: "file2" }], callBack);
+ - https://github.com/headjs/headjs/issues/139
+ - New: Possibility to wait for multiple labels or files
+ - head.ready(["label1", "label2"], callBack);
+ - head.ready(["file1.js", "file2.js"], callBack);
+ - https://github.com/headjs/headjs/pull/212
+ - New: Load file via data attribute on HeadJS script tag
+ - data-headjs-load="configuration.js"
+ - https://github.com/headjs/headjs/pull/213
+ - New: Source map files have been added for all minified JS files
+ - Fix: Prevent loading empty strings
+ - https://github.com/headjs/headjs/pull/184
+ - Fix: CSS classes getting bigger on successive resizes under Chrome
+ - https://github.com/headjs/headjs/issues/226
+ - Fix: Invalid regular expression for CSS detection
+ - https://github.com/headjs/headjs/issues/255
+ - Fix: callback failing to trigger under certain cirumstances
+ - https://github.com/headjs/headjs/issues/262
+ - Divers: Changed window.frameElement detection
+ - https://github.com/headjs/headjs/pull/257
+ - Divers: Cleaned up a bunch of syntaxt to conform to JSHint
+ - Now using a very strict .jshintrc
+ - Divers: Added missing .gitattributes
+
+0.99 (2012-11-15)
+ - Load: Fixed regression in IE6, caused by IE10 fix
+ - Load: CSS loading seems to work in all browsers.
+ - However a few will not trigger the callback. Over 90% do.
+ - Either don't use it, or only load css in situations when you don't need the callback triggered.
+ - Load: Conditional loading with head.test() now in evaluation phase
+ - try it, but don't rely on it yet
+ - head.test(bool, "ok.js", "failed.js", callback)
+ - All: CDN is now availiable thanks to: http://cloudflare.com
+ - Info in download section on main site
+ - Unit Tests
+ - Integrated with main site so that everyone can participate
+ - They have also been hooked up to automatically report stats back to http://browserscope.org
+
+0.98 (2012-11-09)
+- Load: Fixed loading bug in IE10
+- Load: Corrected some issues with loading from inside <head>
+- Load: Rewrite of large parts of code base
+ - Started to massively document the sourcecode :)
+- Css3: moved "touch" detection from core to here
+- Css3: added "retina" detection
+- Css3: replaced "font-face" detection that was using "Conditional Comments" with simplisitc browser version detection
+- Core: Added gt, gte, lte, eq classes to width detection (lt existed already)
+- Core: Added gt, gte, lt, lte, eq classes for browser vendor & version detection
+- By default only lt/gt classes are activated
+ - You can of course configure to your likings via head_conf
+
+0.97a (2012-10-20)
+- Updated QUnit & got unit tests running again
+- Swictched to "use strict"
+- Fixed up some variable usage
+- Added browser detections other than just for ie-lt
+- updated browser regexes (firefox, safari, opera, ios, android, webkit)
+- detect if browser is: desktop, mobile, touch enabled
+- detect portrait/landscape mode
+- html5 shim now only triggers on ie-lt9
+- added a throttle to onResize, since some browsers fire tons of events/sec
+- added corrected height/width measurements, but only exposed via new object: head.screen
+ - contains height/width, innerHeight/innerWidth, outerHeight/outerWidth
+- force all css router names to lowercase just in case ppl try typing in names with wierd casings
\ No newline at end of file
diff --git a/slides/bower_components/headjs/dist/1.0.0/head.core.js b/slides/bower_components/headjs/dist/1.0.0/head.core.js
new file mode 100644
index 0000000..b0c5038
--- /dev/null
+++ b/slides/bower_components/headjs/dist/1.0.0/head.core.js
@@ -0,0 +1,312 @@
+///#source 1 1 /src/1.0.0/core.js
+/*! head.core - v1.0.2 */
+/*
+ * HeadJS The only script in your
+ * Author Tero Piirainen (tipiirai)
+ * Maintainer Robert Hoffmann (itechnology)
+ * License MIT / http://bit.ly/mit-license
+ * WebSite http://headjs.com
+ */
+(function(win, undefined) {
+ "use strict";
+
+ // gt, gte, lt, lte, eq breakpoints would have been more simple to write as ['gt','gte','lt','lte','eq']
+ // but then we would have had to loop over the collection on each resize() event,
+ // a simple object with a direct access to true/false is therefore much more efficient
+ var doc = win.document,
+ nav = win.navigator,
+ loc = win.location,
+ html = doc.documentElement,
+ klass = [],
+ conf = {
+ screens : [240, 320, 480, 640, 768, 800, 1024, 1280, 1440, 1680, 1920],
+ screensCss: { "gt": true, "gte": false, "lt": true, "lte": false, "eq": false },
+ browsers : [
+ { ie: { min: 6, max: 11 } }
+ //,{ chrome : { min: 8, max: 33 } }
+ //,{ ff : { min: 3, max: 26 } }
+ //,{ ios : { min: 3, max: 7 } }
+ //,{ android: { min: 2, max: 4 } }
+ //,{ webkit : { min: 9, max: 12 } }
+ //,{ opera : { min: 9, max: 12 } }
+ ],
+ browserCss: { "gt": true, "gte": false, "lt": true, "lte": false, "eq": true },
+ html5 : true,
+ page : "-page",
+ section : "-section",
+ head : "head"
+ };
+
+ if (win.head_conf) {
+ for (var item in win.head_conf) {
+ if (win.head_conf[item] !== undefined) {
+ conf[item] = win.head_conf[item];
+ }
+ }
+ }
+
+ function pushClass(name) {
+ klass[klass.length] = name;
+ }
+
+ function removeClass(name) {
+ // need to test for both space and no space
+ // https://github.com/headjs/headjs/issues/270
+ // https://github.com/headjs/headjs/issues/226
+ var re = new RegExp(" ?\\b" + name + "\\b");
+ html.className = html.className.replace(re, "");
+ }
+
+ function each(arr, fn) {
+ for (var i = 0, l = arr.length; i < l; i++) {
+ fn.call(arr, arr[i], i);
+ }
+ }
+
+ // API
+ var api = win[conf.head] = function() {
+ api.ready.apply(null, arguments);
+ };
+
+ api.feature = function(key, enabled, queue) {
+
+ // internal: apply all classes
+ if (!key) {
+ html.className += " " + klass.join(" ");
+ klass = [];
+
+ return api;
+ }
+
+ if (Object.prototype.toString.call(enabled) === "[object Function]") {
+ enabled = enabled.call();
+ }
+
+ pushClass((enabled ? "" : "no-") + key);
+ api[key] = !!enabled;
+
+ // apply class to HTML element
+ if (!queue) {
+ removeClass("no-" + key);
+ removeClass(key);
+ api.feature();
+ }
+
+ return api;
+ };
+
+ // no queue here, so we can remove any eventual pre-existing no-js class
+ api.feature("js", true);
+
+ // browser type & version
+ var ua = nav.userAgent.toLowerCase(),
+ mobile = /mobile|android|kindle|silk|midp|phone|(windows .+arm|touch)/.test(ua);
+
+ // useful for enabling/disabling feature (we can consider a desktop navigator to have more cpu/gpu power)
+ api.feature("mobile" , mobile , true);
+ api.feature("desktop", !mobile, true);
+
+ // http://www.zytrax.com/tech/web/browser_ids.htm
+ // http://www.zytrax.com/tech/web/mobile_ids.html
+ ua = /(chrome|firefox)[ \/]([\w.]+)/.exec(ua) || // Chrome & Firefox
+ /(iphone|ipad|ipod)(?:.*version)?[ \/]([\w.]+)/.exec(ua) || // Mobile IOS
+ /(android)(?:.*version)?[ \/]([\w.]+)/.exec(ua) || // Mobile Webkit
+ /(webkit|opera)(?:.*version)?[ \/]([\w.]+)/.exec(ua) || // Safari & Opera
+ /(msie) ([\w.]+)/.exec(ua) ||
+ /(trident).+rv:(\w.)+/.exec(ua) || [];
+
+ var browser = ua[1],
+ version = parseFloat(ua[2]);
+
+ switch (browser) {
+ case "msie":
+ case "trident":
+ browser = "ie";
+ version = doc.documentMode || version;
+ break;
+
+ case "firefox":
+ browser = "ff";
+ break;
+
+ case "ipod":
+ case "ipad":
+ case "iphone":
+ browser = "ios";
+ break;
+
+ case "webkit":
+ browser = "safari";
+ break;
+ }
+
+ // Browser vendor and version
+ api.browser = {
+ name: browser,
+ version: version
+ };
+ api.browser[browser] = true;
+
+ for (var i = 0, l = conf.browsers.length; i < l; i++) {
+ for (var key in conf.browsers[i]) {
+ if (browser === key) {
+ pushClass(key);
+
+ var min = conf.browsers[i][key].min;
+ var max = conf.browsers[i][key].max;
+
+ for (var v = min; v <= max; v++) {
+ if (version > v) {
+ if (conf.browserCss.gt) {
+ pushClass("gt-" + key + v);
+ }
+
+ if (conf.browserCss.gte) {
+ pushClass("gte-" + key + v);
+ }
+ } else if (version < v) {
+ if (conf.browserCss.lt) {
+ pushClass("lt-" + key + v);
+ }
+
+ if (conf.browserCss.lte) {
+ pushClass("lte-" + key + v);
+ }
+ } else if (version === v) {
+ if (conf.browserCss.lte) {
+ pushClass("lte-" + key + v);
+ }
+
+ if (conf.browserCss.eq) {
+ pushClass("eq-" + key + v);
+ }
+
+ if (conf.browserCss.gte) {
+ pushClass("gte-" + key + v);
+ }
+ }
+ }
+ } else {
+ pushClass("no-" + key);
+ }
+ }
+ }
+
+ pushClass(browser);
+ pushClass(browser + parseInt(version, 10));
+
+ // IE lt9 specific
+ if (conf.html5 && browser === "ie" && version < 9) {
+ // HTML5 support : you still need to add html5 css initialization styles to your site
+ // See: assets/html5.css
+ each("abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|progress|section|summary|time|video".split("|"), function(el) {
+ doc.createElement(el);
+ });
+ }
+
+ // CSS "router"
+ each(loc.pathname.split("/"), function(el, i) {
+ if (this.length > 2 && this[i + 1] !== undefined) {
+ if (i) {
+ pushClass(this.slice(i, i + 1).join("-").toLowerCase() + conf.section);
+ }
+ } else {
+ // pageId
+ var id = el || "index", index = id.indexOf(".");
+ if (index > 0) {
+ id = id.substring(0, index);
+ }
+
+ html.id = id.toLowerCase() + conf.page;
+
+ // on root?
+ if (!i) {
+ pushClass("root" + conf.section);
+ }
+ }
+ });
+
+ // basic screen info
+ api.screen = {
+ height: win.screen.height,
+ width : win.screen.width
+ };
+
+ // viewport resolutions: w-100, lt-480, lt-1024 ...
+ function screenSize() {
+ // remove earlier sizes
+ html.className = html.className.replace(/ (w-|eq-|gt-|gte-|lt-|lte-|portrait|no-portrait|landscape|no-landscape)\d+/g, "");
+
+ // Viewport width
+ var iw = win.innerWidth || html.clientWidth,
+ ow = win.outerWidth || win.screen.width;
+
+ api.screen.innerWidth = iw;
+ api.screen.outerWidth = ow;
+
+ // for debugging purposes, not really useful for anything else
+ pushClass("w-" + iw);
+
+ each(conf.screens, function(width) {
+ if (iw > width) {
+ if (conf.screensCss.gt) {
+ pushClass("gt-" + width);
+ }
+
+ if (conf.screensCss.gte) {
+ pushClass("gte-" + width);
+ }
+ } else if (iw < width) {
+ if (conf.screensCss.lt) {
+ pushClass("lt-" + width);
+ }
+
+ if (conf.screensCss.lte) {
+ pushClass("lte-" + width);
+ }
+ } else if (iw === width) {
+ if (conf.screensCss.lte) {
+ pushClass("lte-" + width);
+ }
+
+ if (conf.screensCss.eq) {
+ pushClass("e-q" + width);
+ }
+
+ if (conf.screensCss.gte) {
+ pushClass("gte-" + width);
+ }
+ }
+ });
+
+ // Viewport height
+ var ih = win.innerHeight || html.clientHeight,
+ oh = win.outerHeight || win.screen.height;
+
+ api.screen.innerHeight = ih;
+ api.screen.outerHeight = oh;
+
+ // no need for onChange event to detect this
+ api.feature("portrait" , (ih > iw));
+ api.feature("landscape", (ih < iw));
+ }
+
+ screenSize();
+
+ // Throttle navigators from triggering too many resize events
+ var resizeId = 0;
+
+ function onResize() {
+ win.clearTimeout(resizeId);
+ resizeId = win.setTimeout(screenSize, 50);
+ }
+
+ // Manually attach, as to not overwrite existing handler
+ if (win.addEventListener) {
+ win.addEventListener("resize", onResize, false);
+
+ } else {
+ // IE8 and less
+ win.attachEvent("onresize", onResize);
+ }
+}(window));
diff --git a/slides/bower_components/headjs/dist/1.0.0/head.core.min.js b/slides/bower_components/headjs/dist/1.0.0/head.core.min.js
new file mode 100644
index 0000000..474be07
--- /dev/null
+++ b/slides/bower_components/headjs/dist/1.0.0/head.core.min.js
@@ -0,0 +1,5 @@
+/*! head.core - v1.0.2 */
+(function(n,t){"use strict";function r(n){a[a.length]=n}function k(n){var t=new RegExp(" ?\\b"+n+"\\b");c.className=c.className.replace(t,"")}function p(n,t){for(var i=0,r=n.length;in?(i.screensCss.gt&&r("gt-"+n),i.screensCss.gte&&r("gte-"+n)):tt);u.feature("landscape",fe?(i.browserCss.gt&&r("gt-"+f+e),i.browserCss.gte&&r("gte-"+f+e)):h2&&this[u+1]!==t)u&&r(this.slice(u,u+1).join("-").toLowerCase()+i.section);else{var f=n||"index",e=f.indexOf(".");e>0&&(f=f.substring(0,e));c.id=f.toLowerCase()+i.page;u||r("root"+i.section)}});u.screen={height:n.screen.height,width:n.screen.width};tt();b=0;n.addEventListener?n.addEventListener("resize",it,!1):n.attachEvent("onresize",it)})(window);
+/*
+//# sourceMappingURL=head.core.min.js.map
+*/
\ No newline at end of file
diff --git a/slides/bower_components/headjs/dist/1.0.0/head.core.min.js.map b/slides/bower_components/headjs/dist/1.0.0/head.core.min.js.map
new file mode 100644
index 0000000..2a3a4aa
--- /dev/null
+++ b/slides/bower_components/headjs/dist/1.0.0/head.core.min.js.map
@@ -0,0 +1,8 @@
+{
+"version":3,
+"file":"head.core.min.js",
+"lineCount":2,
+"mappings":";CAQC,QAAQ,CAACA,CAAG,CAAEC,CAAN,CAAiB,CACtB,Y,CAqCAC,SAASA,CAAS,CAACC,CAAD,CAAO,CACrBC,CAAM,CAAAA,CAAKC,OAAL,CAAc,CAAEF,CADD,CAIzBG,SAASA,CAAW,CAACH,CAAD,CAAO,CAIvB,IAAII,EAAK,IAAIC,MAAM,CAAC,OAAQ,CAAEL,CAAK,CAAE,KAAlB,CAAwB,CAC3CM,CAAIC,UAAW,CAAED,CAAIC,UAAUC,QAAQ,CAACJ,CAAE,CAAE,EAAL,CALhB,CAQ3BK,SAASA,CAAI,CAACC,CAAG,CAAEC,CAAN,CAAU,CACnB,IAAK,IAAIC,EAAI,EAAGC,EAAIH,CAAGR,OAAO,CAAEU,CAAE,CAAEC,CAAC,CAAED,CAAC,EAAxC,CACID,CAAEG,KAAK,CAACJ,CAAG,CAAEA,CAAI,CAAAE,CAAA,CAAE,CAAEA,CAAd,CAFQ,CAgLvBG,SAASA,EAAU,CAAA,CAAG,CAKlB,IAAIC,EACAC,EAyCAC,EACAC,CA1CuC,CAJ3Cb,CAAIC,UAAW,CAAED,CAAIC,UAAUC,QAAQ,CAA8E,6EAAA,CAAE,EAAhF,CAAmF,CAGtHQ,CAAG,CAAEnB,CAAGuB,WAAY,EAAGd,CAAIe,Y,CAC3BJ,CAAG,CAAEpB,CAAGyB,WAAY,EAAGzB,CAAG0B,OAAOC,M,CAErCC,CAAGF,OAAOH,WAAY,CAAEJ,CAAE,CAC1BS,CAAGF,OAAOD,WAAY,CAAEL,CAAE,CAG1BlB,CAAS,CAAC,IAAK,CAAEiB,CAAR,CAAW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C,CAAI4D,QAApD,CAA6D,CAE5E,IAAK,CAEH,IAAIC,EAAKL,CAAG,EAAG,QAASM,EAAQD,CAAEE,QAAQ,CAAC,GAAD,CAAK,CAC3CD,CAAM,CAAE,C,GACRD,CAAG,CAAEA,CAAEG,UAAU,CAAC,CAAC,CAAEF,CAAJ,EAAU,CAG/BlF,CAAIiF,GAAI,CAAEA,CAAEf,YAAY,CAAA,CAAG,CAAE9C,CAAIiE,KAAK,CAGjC/E,C,EACDb,CAAS,CAAC,MAAO,CAAE2B,CAAI4D,QAAd,CAXV,CALmC,CAA1C,CAmBF,CAGF7D,CAAGF,OAAQ,CAAE,CACT,MAAM,CAAE1B,CAAG0B,OAAOc,OAAO,CACzB,KAAM,CAAExC,CAAG0B,OAAOC,MAFT,CAGZ,CA6DDT,EAAU,CAAA,CAAE,CAGR0B,CAAS,CAAE,C,CAQX5C,CAAG+F,iBAAP,CACI/F,CAAG+F,iBAAiB,CAAC,QAAQ,CAAErD,EAAQ,CAAE,CAAA,CAArB,CADxB,CAKI1C,CAAGgG,YAAY,CAAC,UAAU,CAAEtD,EAAb,CA5SG,EA8SzB,CAACuD,MAAD,C",
+"sources":["/src/1.0.0/core.js"],
+"names":["win","undefined","pushClass","name","klass","length","removeClass","re","RegExp","html","className","replace","each","arr","fn","i","l","call","screenSize","iw","ow","ih","oh","innerWidth","clientWidth","outerWidth","screen","width","api","conf","screens","screensCss","gt","gte","lt","lte","eq","innerHeight","clientHeight","outerHeight","height","feature","onResize","clearTimeout","resizeId","setTimeout","doc","document","nav","navigator","loc","location","documentElement","item","ua","mobile","browser","version","key","min","max","v","head_conf","head","ready","apply","arguments","api.feature","enabled","queue","Object","prototype","toString","join","userAgent","toLowerCase","test","exec","parseFloat","documentMode","browsers","browserCss","parseInt","html5","split","el","createElement","pathname","slice","section","id","index","indexOf","substring","page","addEventListener","attachEvent","window"]
+}
diff --git a/slides/bower_components/headjs/dist/1.0.0/head.css3.js b/slides/bower_components/headjs/dist/1.0.0/head.css3.js
new file mode 100644
index 0000000..2d9ce9f
--- /dev/null
+++ b/slides/bower_components/headjs/dist/1.0.0/head.css3.js
@@ -0,0 +1,477 @@
+///#source 1 1 /src/1.0.0/core.js
+/*! head.core - v1.0.2 */
+/*
+ * HeadJS The only script in your
+ * Author Tero Piirainen (tipiirai)
+ * Maintainer Robert Hoffmann (itechnology)
+ * License MIT / http://bit.ly/mit-license
+ * WebSite http://headjs.com
+ */
+(function(win, undefined) {
+ "use strict";
+
+ // gt, gte, lt, lte, eq breakpoints would have been more simple to write as ['gt','gte','lt','lte','eq']
+ // but then we would have had to loop over the collection on each resize() event,
+ // a simple object with a direct access to true/false is therefore much more efficient
+ var doc = win.document,
+ nav = win.navigator,
+ loc = win.location,
+ html = doc.documentElement,
+ klass = [],
+ conf = {
+ screens : [240, 320, 480, 640, 768, 800, 1024, 1280, 1440, 1680, 1920],
+ screensCss: { "gt": true, "gte": false, "lt": true, "lte": false, "eq": false },
+ browsers : [
+ { ie: { min: 6, max: 11 } }
+ //,{ chrome : { min: 8, max: 33 } }
+ //,{ ff : { min: 3, max: 26 } }
+ //,{ ios : { min: 3, max: 7 } }
+ //,{ android: { min: 2, max: 4 } }
+ //,{ webkit : { min: 9, max: 12 } }
+ //,{ opera : { min: 9, max: 12 } }
+ ],
+ browserCss: { "gt": true, "gte": false, "lt": true, "lte": false, "eq": true },
+ html5 : true,
+ page : "-page",
+ section : "-section",
+ head : "head"
+ };
+
+ if (win.head_conf) {
+ for (var item in win.head_conf) {
+ if (win.head_conf[item] !== undefined) {
+ conf[item] = win.head_conf[item];
+ }
+ }
+ }
+
+ function pushClass(name) {
+ klass[klass.length] = name;
+ }
+
+ function removeClass(name) {
+ // need to test for both space and no space
+ // https://github.com/headjs/headjs/issues/270
+ // https://github.com/headjs/headjs/issues/226
+ var re = new RegExp(" ?\\b" + name + "\\b");
+ html.className = html.className.replace(re, "");
+ }
+
+ function each(arr, fn) {
+ for (var i = 0, l = arr.length; i < l; i++) {
+ fn.call(arr, arr[i], i);
+ }
+ }
+
+ // API
+ var api = win[conf.head] = function() {
+ api.ready.apply(null, arguments);
+ };
+
+ api.feature = function(key, enabled, queue) {
+
+ // internal: apply all classes
+ if (!key) {
+ html.className += " " + klass.join(" ");
+ klass = [];
+
+ return api;
+ }
+
+ if (Object.prototype.toString.call(enabled) === "[object Function]") {
+ enabled = enabled.call();
+ }
+
+ pushClass((enabled ? "" : "no-") + key);
+ api[key] = !!enabled;
+
+ // apply class to HTML element
+ if (!queue) {
+ removeClass("no-" + key);
+ removeClass(key);
+ api.feature();
+ }
+
+ return api;
+ };
+
+ // no queue here, so we can remove any eventual pre-existing no-js class
+ api.feature("js", true);
+
+ // browser type & version
+ var ua = nav.userAgent.toLowerCase(),
+ mobile = /mobile|android|kindle|silk|midp|phone|(windows .+arm|touch)/.test(ua);
+
+ // useful for enabling/disabling feature (we can consider a desktop navigator to have more cpu/gpu power)
+ api.feature("mobile" , mobile , true);
+ api.feature("desktop", !mobile, true);
+
+ // http://www.zytrax.com/tech/web/browser_ids.htm
+ // http://www.zytrax.com/tech/web/mobile_ids.html
+ ua = /(chrome|firefox)[ \/]([\w.]+)/.exec(ua) || // Chrome & Firefox
+ /(iphone|ipad|ipod)(?:.*version)?[ \/]([\w.]+)/.exec(ua) || // Mobile IOS
+ /(android)(?:.*version)?[ \/]([\w.]+)/.exec(ua) || // Mobile Webkit
+ /(webkit|opera)(?:.*version)?[ \/]([\w.]+)/.exec(ua) || // Safari & Opera
+ /(msie) ([\w.]+)/.exec(ua) ||
+ /(trident).+rv:(\w.)+/.exec(ua) || [];
+
+ var browser = ua[1],
+ version = parseFloat(ua[2]);
+
+ switch (browser) {
+ case "msie":
+ case "trident":
+ browser = "ie";
+ version = doc.documentMode || version;
+ break;
+
+ case "firefox":
+ browser = "ff";
+ break;
+
+ case "ipod":
+ case "ipad":
+ case "iphone":
+ browser = "ios";
+ break;
+
+ case "webkit":
+ browser = "safari";
+ break;
+ }
+
+ // Browser vendor and version
+ api.browser = {
+ name: browser,
+ version: version
+ };
+ api.browser[browser] = true;
+
+ for (var i = 0, l = conf.browsers.length; i < l; i++) {
+ for (var key in conf.browsers[i]) {
+ if (browser === key) {
+ pushClass(key);
+
+ var min = conf.browsers[i][key].min;
+ var max = conf.browsers[i][key].max;
+
+ for (var v = min; v <= max; v++) {
+ if (version > v) {
+ if (conf.browserCss.gt) {
+ pushClass("gt-" + key + v);
+ }
+
+ if (conf.browserCss.gte) {
+ pushClass("gte-" + key + v);
+ }
+ } else if (version < v) {
+ if (conf.browserCss.lt) {
+ pushClass("lt-" + key + v);
+ }
+
+ if (conf.browserCss.lte) {
+ pushClass("lte-" + key + v);
+ }
+ } else if (version === v) {
+ if (conf.browserCss.lte) {
+ pushClass("lte-" + key + v);
+ }
+
+ if (conf.browserCss.eq) {
+ pushClass("eq-" + key + v);
+ }
+
+ if (conf.browserCss.gte) {
+ pushClass("gte-" + key + v);
+ }
+ }
+ }
+ } else {
+ pushClass("no-" + key);
+ }
+ }
+ }
+
+ pushClass(browser);
+ pushClass(browser + parseInt(version, 10));
+
+ // IE lt9 specific
+ if (conf.html5 && browser === "ie" && version < 9) {
+ // HTML5 support : you still need to add html5 css initialization styles to your site
+ // See: assets/html5.css
+ each("abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|progress|section|summary|time|video".split("|"), function(el) {
+ doc.createElement(el);
+ });
+ }
+
+ // CSS "router"
+ each(loc.pathname.split("/"), function(el, i) {
+ if (this.length > 2 && this[i + 1] !== undefined) {
+ if (i) {
+ pushClass(this.slice(i, i + 1).join("-").toLowerCase() + conf.section);
+ }
+ } else {
+ // pageId
+ var id = el || "index", index = id.indexOf(".");
+ if (index > 0) {
+ id = id.substring(0, index);
+ }
+
+ html.id = id.toLowerCase() + conf.page;
+
+ // on root?
+ if (!i) {
+ pushClass("root" + conf.section);
+ }
+ }
+ });
+
+ // basic screen info
+ api.screen = {
+ height: win.screen.height,
+ width : win.screen.width
+ };
+
+ // viewport resolutions: w-100, lt-480, lt-1024 ...
+ function screenSize() {
+ // remove earlier sizes
+ html.className = html.className.replace(/ (w-|eq-|gt-|gte-|lt-|lte-|portrait|no-portrait|landscape|no-landscape)\d+/g, "");
+
+ // Viewport width
+ var iw = win.innerWidth || html.clientWidth,
+ ow = win.outerWidth || win.screen.width;
+
+ api.screen.innerWidth = iw;
+ api.screen.outerWidth = ow;
+
+ // for debugging purposes, not really useful for anything else
+ pushClass("w-" + iw);
+
+ each(conf.screens, function(width) {
+ if (iw > width) {
+ if (conf.screensCss.gt) {
+ pushClass("gt-" + width);
+ }
+
+ if (conf.screensCss.gte) {
+ pushClass("gte-" + width);
+ }
+ } else if (iw < width) {
+ if (conf.screensCss.lt) {
+ pushClass("lt-" + width);
+ }
+
+ if (conf.screensCss.lte) {
+ pushClass("lte-" + width);
+ }
+ } else if (iw === width) {
+ if (conf.screensCss.lte) {
+ pushClass("lte-" + width);
+ }
+
+ if (conf.screensCss.eq) {
+ pushClass("e-q" + width);
+ }
+
+ if (conf.screensCss.gte) {
+ pushClass("gte-" + width);
+ }
+ }
+ });
+
+ // Viewport height
+ var ih = win.innerHeight || html.clientHeight,
+ oh = win.outerHeight || win.screen.height;
+
+ api.screen.innerHeight = ih;
+ api.screen.outerHeight = oh;
+
+ // no need for onChange event to detect this
+ api.feature("portrait" , (ih > iw));
+ api.feature("landscape", (ih < iw));
+ }
+
+ screenSize();
+
+ // Throttle navigators from triggering too many resize events
+ var resizeId = 0;
+
+ function onResize() {
+ win.clearTimeout(resizeId);
+ resizeId = win.setTimeout(screenSize, 50);
+ }
+
+ // Manually attach, as to not overwrite existing handler
+ if (win.addEventListener) {
+ win.addEventListener("resize", onResize, false);
+
+ } else {
+ // IE8 and less
+ win.attachEvent("onresize", onResize);
+ }
+}(window));
+///#source 1 1 /src/1.0.0/css3.js
+/*! head.css3 - v1.0.0 */
+/*
+ * HeadJS The only script in your
+ * Author Tero Piirainen (tipiirai)
+ * Maintainer Robert Hoffmann (itechnology)
+ * License MIT / http://bit.ly/mit-license
+ * WebSite http://headjs.com
+ */
+(function (win, undefined) {
+ "use strict";
+
+ var doc = win.document,
+ /*
+ To add a new test:
+
+ head.feature("video", function() {
+ var tag = document.createElement('video');
+ return !!tag.canPlayType;
+ });
+
+ Good place to grab more tests
+
+ https://github.com/Modernizr/Modernizr/blob/master/modernizr.js
+ */
+
+ /* CSS modernizer */
+ el = doc.createElement("i"),
+ style = el.style,
+ prefs = " -o- -moz- -ms- -webkit- -khtml- ".split(" "),
+ domPrefs = "Webkit Moz O ms Khtml".split(" "),
+ headVar = win.head_conf && win.head_conf.head || "head",
+ api = win[headVar];
+
+ // Thanks Paul Irish!
+
+ function testProps(props) {
+ for (var i in props) {
+ if (style[props[i]] !== undefined) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+
+ function testAll(prop) {
+ var camel = prop.charAt(0).toUpperCase() + prop.substr(1),
+ props = (prop + " " + domPrefs.join(camel + " ") + camel).split(" ");
+
+ return !!testProps(props);
+ }
+
+ var tests = {
+ // should we seperate linear/radial ?
+ // seems like some browsers need a test for prefix http://caniuse.com/#feat=css-gradients
+ gradient: function () {
+ var s1 = "background-image:",
+ s2 = "gradient(linear,left top,right bottom,from(#9f9),to(#fff));",
+ s3 = "linear-gradient(left top,#eee,#fff);";
+
+ style.cssText = (s1 + prefs.join(s2 + s1) + prefs.join(s3 + s1)).slice(0, -s1.length);
+ return !!style.backgroundImage;
+ },
+
+ rgba: function () {
+ style.cssText = "background-color:rgba(0,0,0,0.5)";
+ return !!style.backgroundColor;
+ },
+
+ opacity: function () {
+ return el.style.opacity === "";
+ },
+
+ textshadow: function () {
+ return style.textShadow === "";
+ },
+
+ multiplebgs: function () {
+ style.cssText = "background:url(https://),url(https://),red url(https://)";
+
+ // If the UA supports multiple backgrounds, there should be three occurrences
+ // of the string "url(" in the return value for elemStyle.background
+ var result = (style.background || "").match(/url/g);
+
+ return Object.prototype.toString.call(result) === "[object Array]" && result.length === 3;
+ },
+
+ boxshadow: function () {
+ return testAll("boxShadow");
+ },
+
+ borderimage: function () {
+ return testAll("borderImage");
+ },
+
+ borderradius: function () {
+ return testAll("borderRadius");
+ },
+
+ cssreflections: function () {
+ return testAll("boxReflect");
+ },
+
+ csstransforms: function () {
+ return testAll("transform");
+ },
+
+ csstransitions: function () {
+ return testAll("transition");
+ },
+ touch: function () {
+ return "ontouchstart" in win;
+ },
+ retina: function () {
+ return (win.devicePixelRatio > 1);
+ },
+
+ /*
+ font-face support. Uses browser sniffing but is synchronous.
+ http://paulirish.com/2009/font-face-feature-detection/
+ */
+ fontface: function () {
+ var browser = api.browser.name, version = api.browser.version;
+
+ switch (browser) {
+ case "ie":
+ return version >= 9;
+
+ case "chrome":
+ return version >= 13;
+
+ case "ff":
+ return version >= 6;
+
+ case "ios":
+ return version >= 5;
+
+ case "android":
+ return false;
+
+ case "webkit":
+ return version >= 5.1;
+
+ case "opera":
+ return version >= 10;
+
+ default:
+ return false;
+ }
+ }
+ };
+
+ // queue features
+ for (var key in tests) {
+ if (tests[key]) {
+ api.feature(key, tests[key].call(), true);
+ }
+ }
+
+ // enable features at once
+ api.feature();
+
+}(window));
diff --git a/slides/bower_components/headjs/dist/1.0.0/head.css3.min.js b/slides/bower_components/headjs/dist/1.0.0/head.css3.min.js
new file mode 100644
index 0000000..cff8bab
--- /dev/null
+++ b/slides/bower_components/headjs/dist/1.0.0/head.css3.min.js
@@ -0,0 +1,7 @@
+/*! head.core - v1.0.2 */
+(function(n,t){"use strict";function r(n){a[a.length]=n}function k(n){var t=new RegExp(" ?\\b"+n+"\\b");c.className=c.className.replace(t,"")}function p(n,t){for(var i=0,r=n.length;in?(i.screensCss.gt&&r("gt-"+n),i.screensCss.gte&&r("gte-"+n)):tt);u.feature("landscape",fe?(i.browserCss.gt&&r("gt-"+f+e),i.browserCss.gte&&r("gte-"+f+e)):h2&&this[u+1]!==t)u&&r(this.slice(u,u+1).join("-").toLowerCase()+i.section);else{var f=n||"index",e=f.indexOf(".");e>0&&(f=f.substring(0,e));c.id=f.toLowerCase()+i.page;u||r("root"+i.section)}});u.screen={height:n.screen.height,width:n.screen.width};tt();b=0;n.addEventListener?n.addEventListener("resize",it,!1):n.attachEvent("onresize",it)})(window);
+/*! head.css3 - v1.0.0 */
+(function(n,t){"use strict";function a(n){for(var r in n)if(i[n[r]]!==t)return!0;return!1}function r(n){var t=n.charAt(0).toUpperCase()+n.substr(1),i=(n+" "+c.join(t+" ")+t).split(" ");return!!a(i)}var h=n.document,o=h.createElement("i"),i=o.style,s=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),c="Webkit Moz O ms Khtml".split(" "),l=n.head_conf&&n.head_conf.head||"head",u=n[l],f={gradient:function(){var n="background-image:";return i.cssText=(n+s.join("gradient(linear,left top,right bottom,from(#9f9),to(#fff));"+n)+s.join("linear-gradient(left top,#eee,#fff);"+n)).slice(0,-n.length),!!i.backgroundImage},rgba:function(){return i.cssText="background-color:rgba(0,0,0,0.5)",!!i.backgroundColor},opacity:function(){return o.style.opacity===""},textshadow:function(){return i.textShadow===""},multiplebgs:function(){i.cssText="background:url(https://),url(https://),red url(https://)";var n=(i.background||"").match(/url/g);return Object.prototype.toString.call(n)==="[object Array]"&&n.length===3},boxshadow:function(){return r("boxShadow")},borderimage:function(){return r("borderImage")},borderradius:function(){return r("borderRadius")},cssreflections:function(){return r("boxReflect")},csstransforms:function(){return r("transform")},csstransitions:function(){return r("transition")},touch:function(){return"ontouchstart"in n},retina:function(){return n.devicePixelRatio>1},fontface:function(){var t=u.browser.name,n=u.browser.version;switch(t){case"ie":return n>=9;case"chrome":return n>=13;case"ff":return n>=6;case"ios":return n>=5;case"android":return!1;case"webkit":return n>=5.1;case"opera":return n>=10;default:return!1}}};for(var e in f)f[e]&&u.feature(e,f[e].call(),!0);u.feature()})(window);
+/*
+//# sourceMappingURL=head.css3.min.js.map
+*/
\ No newline at end of file
diff --git a/slides/bower_components/headjs/dist/1.0.0/head.css3.min.js.map b/slides/bower_components/headjs/dist/1.0.0/head.css3.min.js.map
new file mode 100644
index 0000000..12ca6c5
--- /dev/null
+++ b/slides/bower_components/headjs/dist/1.0.0/head.css3.min.js.map
@@ -0,0 +1,8 @@
+{
+"version":3,
+"file":"head.css3.min.js",
+"lineCount":4,
+"mappings":";CAQC,QAAQ,CAACA,CAAG,CAAEC,CAAN,CAAiB,CACtB,Y,CAqCAC,SAASA,CAAS,CAACC,CAAD,CAAO,CACrBC,CAAM,CAAAA,CAAKC,OAAL,CAAc,CAAEF,CADD,CAIzBG,SAASA,CAAW,CAACH,CAAD,CAAO,CAIvB,IAAII,EAAK,IAAIC,MAAM,CAAC,OAAQ,CAAEL,CAAK,CAAE,KAAlB,CAAwB,CAC3CM,CAAIC,UAAW,CAAED,CAAIC,UAAUC,QAAQ,CAACJ,CAAE,CAAE,EAAL,CALhB,CAQ3BK,SAASA,CAAI,CAACC,CAAG,CAAEC,CAAN,CAAU,CACnB,IAAK,IAAIC,EAAI,EAAGC,EAAIH,CAAGR,OAAO,CAAEU,CAAE,CAAEC,CAAC,CAAED,CAAC,EAAxC,CACID,CAAEG,KAAK,CAACJ,CAAG,CAAEA,CAAI,CAAAE,CAAA,CAAE,CAAEA,CAAd,CAFQ,CAgLvBG,SAASA,EAAU,CAAA,CAAG,CAKlB,IAAIC,EACAC,EAyCAC,EACAC,CA1CuC,CAJ3Cb,CAAIC,UAAW,CAAED,CAAIC,UAAUC,QAAQ,CAA8E,6EAAA,CAAE,EAAhF,CAAmF,CAGtHQ,CAAG,CAAEnB,CAAGuB,WAAY,EAAGd,CAAIe,Y,CAC3BJ,CAAG,CAAEpB,CAAGyB,WAAY,EAAGzB,CAAG0B,OAAOC,M,CAErCC,CAAGF,OAAOH,WAAY,CAAEJ,CAAE,CAC1BS,CAAGF,OAAOD,WAAY,CAAEL,CAAE,CAG1BlB,CAAS,CAAC,IAAK,CAAEiB,CAAR,CAAW,CAEpBP,CAAI,CAACiB,CAAIC,QAAQ,CAAE,QAAQ,CAACH,CAAD,CAAQ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Q,CAACiB,CAAG,CAAEoD,CAAM,CAAApD,CAAA,CAAIzC,KAAK,CAAA,CAAE,CAAE,CAAA,CAAzB,CAEnB,CAGAW,CAAGa,QAAQ,CAAA,CAzJY,EA2J1B,CAACwD,MAAD,C",
+"sources":["/src/1.0.0/core.js","/src/1.0.0/css3.js"],
+"names":["win","undefined","pushClass","name","klass","length","removeClass","re","RegExp","html","className","replace","each","arr","fn","i","l","call","screenSize","iw","ow","ih","oh","innerWidth","clientWidth","outerWidth","screen","width","api","conf","screens","screensCss","gt","gte","lt","lte","eq","innerHeight","clientHeight","outerHeight","height","feature","onResize","clearTimeout","resizeId","setTimeout","doc","document","nav","navigator","loc","location","documentElement","item","ua","mobile","browser","version","key","min","max","v","head_conf","head","ready","apply","arguments","api.feature","enabled","queue","Object","prototype","toString","join","userAgent","toLowerCase","test","exec","parseFloat","documentMode","browsers","browserCss","parseInt","html5","split","el","createElement","pathname","slice","section","id","index","indexOf","substring","page","addEventListener","attachEvent","window","testProps","props","style","testAll","prop","camel","charAt","toUpperCase","substr","domPrefs","prefs","headVar","tests","gradient","s1","cssText","backgroundImage","rgba","backgroundColor","opacity","textshadow","textShadow","multiplebgs","result","background","match","boxshadow","borderimage","borderradius","cssreflections","csstransforms","csstransitions","touch","retina","devicePixelRatio","fontface"]
+}
diff --git a/slides/bower_components/headjs/dist/1.0.0/head.js b/slides/bower_components/headjs/dist/1.0.0/head.js
new file mode 100644
index 0000000..961a4f6
--- /dev/null
+++ b/slides/bower_components/headjs/dist/1.0.0/head.js
@@ -0,0 +1,1184 @@
+///#source 1 1 /src/1.0.0/core.js
+/*! head.core - v1.0.2 */
+/*
+ * HeadJS The only script in your
+ * Author Tero Piirainen (tipiirai)
+ * Maintainer Robert Hoffmann (itechnology)
+ * License MIT / http://bit.ly/mit-license
+ * WebSite http://headjs.com
+ */
+(function(win, undefined) {
+ "use strict";
+
+ // gt, gte, lt, lte, eq breakpoints would have been more simple to write as ['gt','gte','lt','lte','eq']
+ // but then we would have had to loop over the collection on each resize() event,
+ // a simple object with a direct access to true/false is therefore much more efficient
+ var doc = win.document,
+ nav = win.navigator,
+ loc = win.location,
+ html = doc.documentElement,
+ klass = [],
+ conf = {
+ screens : [240, 320, 480, 640, 768, 800, 1024, 1280, 1440, 1680, 1920],
+ screensCss: { "gt": true, "gte": false, "lt": true, "lte": false, "eq": false },
+ browsers : [
+ { ie: { min: 6, max: 11 } }
+ //,{ chrome : { min: 8, max: 33 } }
+ //,{ ff : { min: 3, max: 26 } }
+ //,{ ios : { min: 3, max: 7 } }
+ //,{ android: { min: 2, max: 4 } }
+ //,{ webkit : { min: 9, max: 12 } }
+ //,{ opera : { min: 9, max: 12 } }
+ ],
+ browserCss: { "gt": true, "gte": false, "lt": true, "lte": false, "eq": true },
+ html5 : true,
+ page : "-page",
+ section : "-section",
+ head : "head"
+ };
+
+ if (win.head_conf) {
+ for (var item in win.head_conf) {
+ if (win.head_conf[item] !== undefined) {
+ conf[item] = win.head_conf[item];
+ }
+ }
+ }
+
+ function pushClass(name) {
+ klass[klass.length] = name;
+ }
+
+ function removeClass(name) {
+ // need to test for both space and no space
+ // https://github.com/headjs/headjs/issues/270
+ // https://github.com/headjs/headjs/issues/226
+ var re = new RegExp(" ?\\b" + name + "\\b");
+ html.className = html.className.replace(re, "");
+ }
+
+ function each(arr, fn) {
+ for (var i = 0, l = arr.length; i < l; i++) {
+ fn.call(arr, arr[i], i);
+ }
+ }
+
+ // API
+ var api = win[conf.head] = function() {
+ api.ready.apply(null, arguments);
+ };
+
+ api.feature = function(key, enabled, queue) {
+
+ // internal: apply all classes
+ if (!key) {
+ html.className += " " + klass.join(" ");
+ klass = [];
+
+ return api;
+ }
+
+ if (Object.prototype.toString.call(enabled) === "[object Function]") {
+ enabled = enabled.call();
+ }
+
+ pushClass((enabled ? "" : "no-") + key);
+ api[key] = !!enabled;
+
+ // apply class to HTML element
+ if (!queue) {
+ removeClass("no-" + key);
+ removeClass(key);
+ api.feature();
+ }
+
+ return api;
+ };
+
+ // no queue here, so we can remove any eventual pre-existing no-js class
+ api.feature("js", true);
+
+ // browser type & version
+ var ua = nav.userAgent.toLowerCase(),
+ mobile = /mobile|android|kindle|silk|midp|phone|(windows .+arm|touch)/.test(ua);
+
+ // useful for enabling/disabling feature (we can consider a desktop navigator to have more cpu/gpu power)
+ api.feature("mobile" , mobile , true);
+ api.feature("desktop", !mobile, true);
+
+ // http://www.zytrax.com/tech/web/browser_ids.htm
+ // http://www.zytrax.com/tech/web/mobile_ids.html
+ ua = /(chrome|firefox)[ \/]([\w.]+)/.exec(ua) || // Chrome & Firefox
+ /(iphone|ipad|ipod)(?:.*version)?[ \/]([\w.]+)/.exec(ua) || // Mobile IOS
+ /(android)(?:.*version)?[ \/]([\w.]+)/.exec(ua) || // Mobile Webkit
+ /(webkit|opera)(?:.*version)?[ \/]([\w.]+)/.exec(ua) || // Safari & Opera
+ /(msie) ([\w.]+)/.exec(ua) ||
+ /(trident).+rv:(\w.)+/.exec(ua) || [];
+
+ var browser = ua[1],
+ version = parseFloat(ua[2]);
+
+ switch (browser) {
+ case "msie":
+ case "trident":
+ browser = "ie";
+ version = doc.documentMode || version;
+ break;
+
+ case "firefox":
+ browser = "ff";
+ break;
+
+ case "ipod":
+ case "ipad":
+ case "iphone":
+ browser = "ios";
+ break;
+
+ case "webkit":
+ browser = "safari";
+ break;
+ }
+
+ // Browser vendor and version
+ api.browser = {
+ name: browser,
+ version: version
+ };
+ api.browser[browser] = true;
+
+ for (var i = 0, l = conf.browsers.length; i < l; i++) {
+ for (var key in conf.browsers[i]) {
+ if (browser === key) {
+ pushClass(key);
+
+ var min = conf.browsers[i][key].min;
+ var max = conf.browsers[i][key].max;
+
+ for (var v = min; v <= max; v++) {
+ if (version > v) {
+ if (conf.browserCss.gt) {
+ pushClass("gt-" + key + v);
+ }
+
+ if (conf.browserCss.gte) {
+ pushClass("gte-" + key + v);
+ }
+ } else if (version < v) {
+ if (conf.browserCss.lt) {
+ pushClass("lt-" + key + v);
+ }
+
+ if (conf.browserCss.lte) {
+ pushClass("lte-" + key + v);
+ }
+ } else if (version === v) {
+ if (conf.browserCss.lte) {
+ pushClass("lte-" + key + v);
+ }
+
+ if (conf.browserCss.eq) {
+ pushClass("eq-" + key + v);
+ }
+
+ if (conf.browserCss.gte) {
+ pushClass("gte-" + key + v);
+ }
+ }
+ }
+ } else {
+ pushClass("no-" + key);
+ }
+ }
+ }
+
+ pushClass(browser);
+ pushClass(browser + parseInt(version, 10));
+
+ // IE lt9 specific
+ if (conf.html5 && browser === "ie" && version < 9) {
+ // HTML5 support : you still need to add html5 css initialization styles to your site
+ // See: assets/html5.css
+ each("abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|progress|section|summary|time|video".split("|"), function(el) {
+ doc.createElement(el);
+ });
+ }
+
+ // CSS "router"
+ each(loc.pathname.split("/"), function(el, i) {
+ if (this.length > 2 && this[i + 1] !== undefined) {
+ if (i) {
+ pushClass(this.slice(i, i + 1).join("-").toLowerCase() + conf.section);
+ }
+ } else {
+ // pageId
+ var id = el || "index", index = id.indexOf(".");
+ if (index > 0) {
+ id = id.substring(0, index);
+ }
+
+ html.id = id.toLowerCase() + conf.page;
+
+ // on root?
+ if (!i) {
+ pushClass("root" + conf.section);
+ }
+ }
+ });
+
+ // basic screen info
+ api.screen = {
+ height: win.screen.height,
+ width : win.screen.width
+ };
+
+ // viewport resolutions: w-100, lt-480, lt-1024 ...
+ function screenSize() {
+ // remove earlier sizes
+ html.className = html.className.replace(/ (w-|eq-|gt-|gte-|lt-|lte-|portrait|no-portrait|landscape|no-landscape)\d+/g, "");
+
+ // Viewport width
+ var iw = win.innerWidth || html.clientWidth,
+ ow = win.outerWidth || win.screen.width;
+
+ api.screen.innerWidth = iw;
+ api.screen.outerWidth = ow;
+
+ // for debugging purposes, not really useful for anything else
+ pushClass("w-" + iw);
+
+ each(conf.screens, function(width) {
+ if (iw > width) {
+ if (conf.screensCss.gt) {
+ pushClass("gt-" + width);
+ }
+
+ if (conf.screensCss.gte) {
+ pushClass("gte-" + width);
+ }
+ } else if (iw < width) {
+ if (conf.screensCss.lt) {
+ pushClass("lt-" + width);
+ }
+
+ if (conf.screensCss.lte) {
+ pushClass("lte-" + width);
+ }
+ } else if (iw === width) {
+ if (conf.screensCss.lte) {
+ pushClass("lte-" + width);
+ }
+
+ if (conf.screensCss.eq) {
+ pushClass("e-q" + width);
+ }
+
+ if (conf.screensCss.gte) {
+ pushClass("gte-" + width);
+ }
+ }
+ });
+
+ // Viewport height
+ var ih = win.innerHeight || html.clientHeight,
+ oh = win.outerHeight || win.screen.height;
+
+ api.screen.innerHeight = ih;
+ api.screen.outerHeight = oh;
+
+ // no need for onChange event to detect this
+ api.feature("portrait" , (ih > iw));
+ api.feature("landscape", (ih < iw));
+ }
+
+ screenSize();
+
+ // Throttle navigators from triggering too many resize events
+ var resizeId = 0;
+
+ function onResize() {
+ win.clearTimeout(resizeId);
+ resizeId = win.setTimeout(screenSize, 50);
+ }
+
+ // Manually attach, as to not overwrite existing handler
+ if (win.addEventListener) {
+ win.addEventListener("resize", onResize, false);
+
+ } else {
+ // IE8 and less
+ win.attachEvent("onresize", onResize);
+ }
+}(window));
+///#source 1 1 /src/1.0.0/css3.js
+/*! head.css3 - v1.0.0 */
+/*
+ * HeadJS The only script in your
+ * Author Tero Piirainen (tipiirai)
+ * Maintainer Robert Hoffmann (itechnology)
+ * License MIT / http://bit.ly/mit-license
+ * WebSite http://headjs.com
+ */
+(function (win, undefined) {
+ "use strict";
+
+ var doc = win.document,
+ /*
+ To add a new test:
+
+ head.feature("video", function() {
+ var tag = document.createElement('video');
+ return !!tag.canPlayType;
+ });
+
+ Good place to grab more tests
+
+ https://github.com/Modernizr/Modernizr/blob/master/modernizr.js
+ */
+
+ /* CSS modernizer */
+ el = doc.createElement("i"),
+ style = el.style,
+ prefs = " -o- -moz- -ms- -webkit- -khtml- ".split(" "),
+ domPrefs = "Webkit Moz O ms Khtml".split(" "),
+ headVar = win.head_conf && win.head_conf.head || "head",
+ api = win[headVar];
+
+ // Thanks Paul Irish!
+
+ function testProps(props) {
+ for (var i in props) {
+ if (style[props[i]] !== undefined) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+
+ function testAll(prop) {
+ var camel = prop.charAt(0).toUpperCase() + prop.substr(1),
+ props = (prop + " " + domPrefs.join(camel + " ") + camel).split(" ");
+
+ return !!testProps(props);
+ }
+
+ var tests = {
+ // should we seperate linear/radial ?
+ // seems like some browsers need a test for prefix http://caniuse.com/#feat=css-gradients
+ gradient: function () {
+ var s1 = "background-image:",
+ s2 = "gradient(linear,left top,right bottom,from(#9f9),to(#fff));",
+ s3 = "linear-gradient(left top,#eee,#fff);";
+
+ style.cssText = (s1 + prefs.join(s2 + s1) + prefs.join(s3 + s1)).slice(0, -s1.length);
+ return !!style.backgroundImage;
+ },
+
+ rgba: function () {
+ style.cssText = "background-color:rgba(0,0,0,0.5)";
+ return !!style.backgroundColor;
+ },
+
+ opacity: function () {
+ return el.style.opacity === "";
+ },
+
+ textshadow: function () {
+ return style.textShadow === "";
+ },
+
+ multiplebgs: function () {
+ style.cssText = "background:url(https://),url(https://),red url(https://)";
+
+ // If the UA supports multiple backgrounds, there should be three occurrences
+ // of the string "url(" in the return value for elemStyle.background
+ var result = (style.background || "").match(/url/g);
+
+ return Object.prototype.toString.call(result) === "[object Array]" && result.length === 3;
+ },
+
+ boxshadow: function () {
+ return testAll("boxShadow");
+ },
+
+ borderimage: function () {
+ return testAll("borderImage");
+ },
+
+ borderradius: function () {
+ return testAll("borderRadius");
+ },
+
+ cssreflections: function () {
+ return testAll("boxReflect");
+ },
+
+ csstransforms: function () {
+ return testAll("transform");
+ },
+
+ csstransitions: function () {
+ return testAll("transition");
+ },
+ touch: function () {
+ return "ontouchstart" in win;
+ },
+ retina: function () {
+ return (win.devicePixelRatio > 1);
+ },
+
+ /*
+ font-face support. Uses browser sniffing but is synchronous.
+ http://paulirish.com/2009/font-face-feature-detection/
+ */
+ fontface: function () {
+ var browser = api.browser.name, version = api.browser.version;
+
+ switch (browser) {
+ case "ie":
+ return version >= 9;
+
+ case "chrome":
+ return version >= 13;
+
+ case "ff":
+ return version >= 6;
+
+ case "ios":
+ return version >= 5;
+
+ case "android":
+ return false;
+
+ case "webkit":
+ return version >= 5.1;
+
+ case "opera":
+ return version >= 10;
+
+ default:
+ return false;
+ }
+ }
+ };
+
+ // queue features
+ for (var key in tests) {
+ if (tests[key]) {
+ api.feature(key, tests[key].call(), true);
+ }
+ }
+
+ // enable features at once
+ api.feature();
+
+}(window));
+///#source 1 1 /src/1.0.0/load.js
+/*! head.load - v1.0.3 */
+/*
+ * HeadJS The only script in your
+ * Author Tero Piirainen (tipiirai)
+ * Maintainer Robert Hoffmann (itechnology)
+ * License MIT / http://bit.ly/mit-license
+ * WebSite http://headjs.com
+ */
+(function (win, undefined) {
+ "use strict";
+
+ //#region variables
+ var doc = win.document,
+ domWaiters = [],
+ handlers = {}, // user functions waiting for events
+ assets = {}, // loadable items in various states
+ isAsync = "async" in doc.createElement("script") || "MozAppearance" in doc.documentElement.style || win.opera,
+ isDomReady,
+
+ /*** public API ***/
+ headVar = win.head_conf && win.head_conf.head || "head",
+ api = win[headVar] = (win[headVar] || function () { api.ready.apply(null, arguments); }),
+
+ // states
+ PRELOADING = 1,
+ PRELOADED = 2,
+ LOADING = 3,
+ LOADED = 4;
+ //#endregion
+
+ //#region PRIVATE functions
+
+ //#region Helper functions
+ function noop() {
+ // does nothing
+ }
+
+ function each(arr, callback) {
+ if (!arr) {
+ return;
+ }
+
+ // arguments special type
+ if (typeof arr === "object") {
+ arr = [].slice.call(arr);
+ }
+
+ // do the job
+ for (var i = 0, l = arr.length; i < l; i++) {
+ callback.call(arr, arr[i], i);
+ }
+ }
+
+ /* A must read: http://bonsaiden.github.com/JavaScript-Garden
+ ************************************************************/
+ function is(type, obj) {
+ var clas = Object.prototype.toString.call(obj).slice(8, -1);
+ return obj !== undefined && obj !== null && clas === type;
+ }
+
+ function isFunction(item) {
+ return is("Function", item);
+ }
+
+ function isArray(item) {
+ return is("Array", item);
+ }
+
+ function toLabel(url) {
+ ///Converts a url to a file label
+ var items = url.split("/"),
+ name = items[items.length - 1],
+ i = name.indexOf("?");
+
+ return i !== -1 ? name.substring(0, i) : name;
+ }
+
+ // INFO: this look like a "im triggering callbacks all over the place, but only wanna run it one time function" ..should try to make everything work without it if possible
+ // INFO: Even better. Look into promises/defered's like jQuery is doing
+ function one(callback) {
+ ///Execute a callback only once
+ callback = callback || noop;
+
+ if (callback._done) {
+ return;
+ }
+
+ callback();
+ callback._done = 1;
+ }
+ //#endregion
+
+ function conditional(test, success, failure, callback) {
+ ///
+ /// INFO: use cases:
+ /// head.test(condition, null , "file.NOk" , callback);
+ /// head.test(condition, "fileOk.js", null , callback);
+ /// head.test(condition, "fileOk.js", "file.NOk" , callback);
+ /// head.test(condition, "fileOk.js", ["file.NOk", "file.NOk"], callback);
+ /// head.test({
+ /// test : condition,
+ /// success : [{ label1: "file1Ok.js" }, { label2: "file2Ok.js" }],
+ /// failure : [{ label1: "file1NOk.js" }, { label2: "file2NOk.js" }],
+ /// callback: callback
+ /// );
+ /// head.test({
+ /// test : condition,
+ /// success : ["file1Ok.js" , "file2Ok.js"],
+ /// failure : ["file1NOk.js", "file2NOk.js"],
+ /// callback: callback
+ /// );
+ ///
+ var obj = (typeof test === "object") ? test : {
+ test: test,
+ success: !!success ? isArray(success) ? success : [success] : false,
+ failure: !!failure ? isArray(failure) ? failure : [failure] : false,
+ callback: callback || noop
+ };
+
+ // Test Passed ?
+ var passed = !!obj.test;
+
+ // Do we have a success case
+ if (passed && !!obj.success) {
+ obj.success.push(obj.callback);
+ api.load.apply(null, obj.success);
+ }
+ // Do we have a fail case
+ else if (!passed && !!obj.failure) {
+ obj.failure.push(obj.callback);
+ api.load.apply(null, obj.failure);
+ }
+ else {
+ callback();
+ }
+
+ return api;
+ }
+
+ function getAsset(item) {
+ ///
+ /// Assets are in the form of
+ /// {
+ /// name : label,
+ /// url : url,
+ /// state: state
+ /// }
+ ///
+ var asset = {};
+
+ if (typeof item === "object") {
+ for (var label in item) {
+ if (!!item[label]) {
+ asset = {
+ name: label,
+ url : item[label]
+ };
+ }
+ }
+ }
+ else {
+ asset = {
+ name: toLabel(item),
+ url : item
+ };
+ }
+
+ // is the item already existant
+ var existing = assets[asset.name];
+ if (existing && existing.url === asset.url) {
+ return existing;
+ }
+
+ assets[asset.name] = asset;
+ return asset;
+ }
+
+ function allLoaded(items) {
+ items = items || assets;
+
+ for (var name in items) {
+ if (items.hasOwnProperty(name) && items[name].state !== LOADED) {
+ return false;
+ }
+ }
+
+ return true;
+ }
+
+ function onPreload(asset) {
+ asset.state = PRELOADED;
+
+ each(asset.onpreload, function (afterPreload) {
+ afterPreload.call();
+ });
+ }
+
+ function preLoad(asset, callback) {
+ if (asset.state === undefined) {
+
+ asset.state = PRELOADING;
+ asset.onpreload = [];
+
+ loadAsset({ url: asset.url, type: "cache" }, function () {
+ onPreload(asset);
+ });
+ }
+ }
+
+ function apiLoadHack() {
+ /// preload with text/cache hack
+ ///
+ /// head.load("http://domain.com/file.js","http://domain.com/file.js", callBack)
+ /// head.load(["http://domain.com/file.js","http://domain.com/file.js"], callBack)
+ /// head.load({ label1: "http://domain.com/file.js" }, { label2: "http://domain.com/file.js" }, callBack)
+ /// head.load([{ label1: "http://domain.com/file.js" }, { label2: "http://domain.com/file.js" }], callBack)
+ ///
+ var args = arguments,
+ callback = args[args.length - 1],
+ rest = [].slice.call(args, 1),
+ next = rest[0];
+
+ if (!isFunction(callback)) {
+ callback = null;
+ }
+
+ // if array, repush as args
+ if (isArray(args[0])) {
+ args[0].push(callback);
+ api.load.apply(null, args[0]);
+
+ return api;
+ }
+
+ // multiple arguments
+ if (!!next) {
+ /* Preload with text/cache hack (not good!)
+ * http://blog.getify.com/on-script-loaders/
+ * http://www.nczonline.net/blog/2010/12/21/thoughts-on-script-loaders/
+ * If caching is not configured correctly on the server, then items could load twice !
+ *************************************************************************************/
+ each(rest, function (item) {
+ // item is not a callback or empty string
+ if (!isFunction(item) && !!item) {
+ preLoad(getAsset(item));
+ }
+ });
+
+ // execute
+ load(getAsset(args[0]), isFunction(next) ? next : function () {
+ api.load.apply(null, rest);
+ });
+ }
+ else {
+ // single item
+ load(getAsset(args[0]));
+ }
+
+ return api;
+ }
+
+ function apiLoadAsync() {
+ ///
+ /// simply load and let browser take care of ordering
+ ///
+ /// head.load("http://domain.com/file.js","http://domain.com/file.js", callBack)
+ /// head.load(["http://domain.com/file.js","http://domain.com/file.js"], callBack)
+ /// head.load({ label1: "http://domain.com/file.js" }, { label2: "http://domain.com/file.js" }, callBack)
+ /// head.load([{ label1: "http://domain.com/file.js" }, { label2: "http://domain.com/file.js" }], callBack)
+ ///
+ var args = arguments,
+ callback = args[args.length - 1],
+ items = {};
+
+ if (!isFunction(callback)) {
+ callback = null;
+ }
+
+ // if array, repush as args
+ if (isArray(args[0])) {
+ args[0].push(callback);
+ api.load.apply(null, args[0]);
+
+ return api;
+ }
+
+ // JRH 262#issuecomment-26288601
+ // First populate the items array.
+ // When allLoaded is called, all items will be populated.
+ // Issue when lazy loaded, the callback can execute early.
+ each(args, function (item, i) {
+ if (item !== callback) {
+ item = getAsset(item);
+ items[item.name] = item;
+ }
+ });
+
+ each(args, function (item, i) {
+ if (item !== callback) {
+ item = getAsset(item);
+
+ load(item, function () {
+ if (allLoaded(items)) {
+ one(callback);
+ }
+ });
+ }
+ });
+
+ return api;
+ }
+
+ function load(asset, callback) {
+ ///Used with normal loading logic
+ callback = callback || noop;
+
+ if (asset.state === LOADED) {
+ callback();
+ return;
+ }
+
+ // INFO: why would we trigger a ready event when its not really loaded yet ?
+ if (asset.state === LOADING) {
+ api.ready(asset.name, callback);
+ return;
+ }
+
+ if (asset.state === PRELOADING) {
+ asset.onpreload.push(function () {
+ load(asset, callback);
+ });
+ return;
+ }
+
+ asset.state = LOADING;
+
+ loadAsset(asset, function () {
+ asset.state = LOADED;
+
+ callback();
+
+ // handlers for this asset
+ each(handlers[asset.name], function (fn) {
+ one(fn);
+ });
+
+ // dom is ready & no assets are queued for loading
+ // INFO: shouldn't we be doing the same test above ?
+ if (isDomReady && allLoaded()) {
+ each(handlers.ALL, function (fn) {
+ one(fn);
+ });
+ }
+ });
+ }
+
+ function getExtension(url) {
+ url = url || "";
+
+ var items = url.split("?")[0].split(".");
+ return items[items.length-1].toLowerCase();
+ }
+
+ /* Parts inspired from: https://github.com/cujojs/curl
+ ******************************************************/
+ function loadAsset(asset, callback) {
+ callback = callback || noop;
+
+ function error(event) {
+ event = event || win.event;
+
+ // release event listeners
+ ele.onload = ele.onreadystatechange = ele.onerror = null;
+
+ // do callback
+ callback();
+
+ // need some more detailed error handling here
+ }
+
+ function process(event) {
+ event = event || win.event;
+
+ // IE 7/8 (2 events on 1st load)
+ // 1) event.type = readystatechange, s.readyState = loading
+ // 2) event.type = readystatechange, s.readyState = loaded
+
+ // IE 7/8 (1 event on reload)
+ // 1) event.type = readystatechange, s.readyState = complete
+
+ // event.type === 'readystatechange' && /loaded|complete/.test(s.readyState)
+
+ // IE 9 (3 events on 1st load)
+ // 1) event.type = readystatechange, s.readyState = loading
+ // 2) event.type = readystatechange, s.readyState = loaded
+ // 3) event.type = load , s.readyState = loaded
+
+ // IE 9 (2 events on reload)
+ // 1) event.type = readystatechange, s.readyState = complete
+ // 2) event.type = load , s.readyState = complete
+
+ // event.type === 'load' && /loaded|complete/.test(s.readyState)
+ // event.type === 'readystatechange' && /loaded|complete/.test(s.readyState)
+
+ // IE 10 (3 events on 1st load)
+ // 1) event.type = readystatechange, s.readyState = loading
+ // 2) event.type = load , s.readyState = complete
+ // 3) event.type = readystatechange, s.readyState = loaded
+
+ // IE 10 (3 events on reload)
+ // 1) event.type = readystatechange, s.readyState = loaded
+ // 2) event.type = load , s.readyState = complete
+ // 3) event.type = readystatechange, s.readyState = complete
+
+ // event.type === 'load' && /loaded|complete/.test(s.readyState)
+ // event.type === 'readystatechange' && /complete/.test(s.readyState)
+
+ // Other Browsers (1 event on 1st load)
+ // 1) event.type = load, s.readyState = undefined
+
+ // Other Browsers (1 event on reload)
+ // 1) event.type = load, s.readyState = undefined
+
+ // event.type == 'load' && s.readyState = undefined
+
+ // !doc.documentMode is for IE6/7, IE8+ have documentMode
+ if (event.type === "load" || (/loaded|complete/.test(ele.readyState) && (!doc.documentMode || doc.documentMode < 9))) {
+ // remove timeouts
+ win.clearTimeout(asset.errorTimeout);
+ win.clearTimeout(asset.cssTimeout);
+
+ // release event listeners
+ ele.onload = ele.onreadystatechange = ele.onerror = null;
+
+ // do callback
+ callback();
+ }
+ }
+
+ function isCssLoaded() {
+ // should we test again ? 20 retries = 5secs ..after that, the callback will be triggered by the error handler at 7secs
+ if (asset.state !== LOADED && asset.cssRetries <= 20) {
+
+ // loop through stylesheets
+ for (var i = 0, l = doc.styleSheets.length; i < l; i++) {
+ // do we have a match ?
+ // we need to tests agains ele.href and not asset.url, because a local file will be assigned the full http path on a link element
+ if (doc.styleSheets[i].href === ele.href) {
+ process({ "type": "load" });
+ return;
+ }
+ }
+
+ // increment & try again
+ asset.cssRetries++;
+ asset.cssTimeout = win.setTimeout(isCssLoaded, 250);
+ }
+ }
+
+ var ele;
+ var ext = getExtension(asset.url);
+
+ if (ext === "css") {
+ ele = doc.createElement("link");
+ ele.type = "text/" + (asset.type || "css");
+ ele.rel = "stylesheet";
+ ele.href = asset.url;
+
+ /* onload supported for CSS on unsupported browsers
+ * Safari windows 5.1.7, FF < 10
+ */
+
+ // Set counter to zero
+ asset.cssRetries = 0;
+ asset.cssTimeout = win.setTimeout(isCssLoaded, 500);
+ }
+ else {
+ ele = doc.createElement("script");
+ ele.type = "text/" + (asset.type || "javascript");
+ ele.src = asset.url;
+ }
+
+ ele.onload = ele.onreadystatechange = process;
+ ele.onerror = error;
+
+ /* Good read, but doesn't give much hope !
+ * http://blog.getify.com/on-script-loaders/
+ * http://www.nczonline.net/blog/2010/12/21/thoughts-on-script-loaders/
+ * https://hacks.mozilla.org/2009/06/defer/
+ */
+
+ // ASYNC: load in parallel and execute as soon as possible
+ ele.async = false;
+ // DEFER: load in parallel but maintain execution order
+ ele.defer = false;
+
+ // timout for asset loading
+ asset.errorTimeout = win.setTimeout(function () {
+ error({ type: "timeout" });
+ }, 7e3);
+
+ // use insertBefore to keep IE from throwing Operation Aborted (thx Bryan Forbes!)
+ var head = doc.head || doc.getElementsByTagName("head")[0];
+
+ // but insert at end of head, because otherwise if it is a stylesheet, it will not override values
+ head.insertBefore(ele, head.lastChild);
+ }
+
+ /* Parts inspired from: https://github.com/jrburke/requirejs
+ ************************************************************/
+ function init() {
+ var items = doc.getElementsByTagName("script");
+
+ // look for a script with a data-head-init attribute
+ for (var i = 0, l = items.length; i < l; i++) {
+ var dataMain = items[i].getAttribute("data-headjs-load");
+ if (!!dataMain) {
+ api.load(dataMain);
+ return;
+ }
+ }
+ }
+
+ function ready(key, callback) {
+ ///
+ /// INFO: use cases:
+ /// head.ready(callBack);
+ /// head.ready(document , callBack);
+ /// head.ready("file.js", callBack);
+ /// head.ready("label" , callBack);
+ /// head.ready(["label1", "label2"], callback);
+ ///
+
+ // DOM ready check: head.ready(document, function() { });
+ if (key === doc) {
+ if (isDomReady) {
+ one(callback);
+ }
+ else {
+ domWaiters.push(callback);
+ }
+
+ return api;
+ }
+
+ // shift arguments
+ if (isFunction(key)) {
+ callback = key;
+ key = "ALL"; // holds all callbacks that where added without labels: ready(callBack)
+ }
+
+ // queue all items from key and return. The callback will be executed if all items from key are already loaded.
+ if (isArray(key)) {
+ var items = {};
+
+ each(key, function (item) {
+ items[item] = assets[item];
+
+ api.ready(item, function() {
+ if (allLoaded(items)) {
+ one(callback);
+ }
+ });
+ });
+
+ return api;
+ }
+
+ // make sure arguments are sane
+ if (typeof key !== "string" || !isFunction(callback)) {
+ return api;
+ }
+
+ // this can also be called when we trigger events based on filenames & labels
+ var asset = assets[key];
+
+ // item already loaded --> execute and return
+ if (asset && asset.state === LOADED || key === "ALL" && allLoaded() && isDomReady) {
+ one(callback);
+ return api;
+ }
+
+ var arr = handlers[key];
+ if (!arr) {
+ arr = handlers[key] = [callback];
+ }
+ else {
+ arr.push(callback);
+ }
+
+ return api;
+ }
+
+ /* Mix of stuff from jQuery & IEContentLoaded
+ * http://dev.w3.org/html5/spec/the-end.html#the-end
+ ***************************************************/
+ function domReady() {
+ // Make sure body exists, at least, in case IE gets a little overzealous (jQuery ticket #5443).
+ if (!doc.body) {
+ // let's not get nasty by setting a timeout too small.. (loop mania guaranteed if assets are queued)
+ win.clearTimeout(api.readyTimeout);
+ api.readyTimeout = win.setTimeout(domReady, 50);
+ return;
+ }
+
+ if (!isDomReady) {
+ isDomReady = true;
+
+ init();
+ each(domWaiters, function (fn) {
+ one(fn);
+ });
+ }
+ }
+
+ function domContentLoaded() {
+ // W3C
+ if (doc.addEventListener) {
+ doc.removeEventListener("DOMContentLoaded", domContentLoaded, false);
+ domReady();
+ }
+
+ // IE
+ else if (doc.readyState === "complete") {
+ // we're here because readyState === "complete" in oldIE
+ // which is good enough for us to call the dom ready!
+ doc.detachEvent("onreadystatechange", domContentLoaded);
+ domReady();
+ }
+ }
+
+ // Catch cases where ready() is called after the browser event has already occurred.
+ // we once tried to use readyState "interactive" here, but it caused issues like the one
+ // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
+ if (doc.readyState === "complete") {
+ domReady();
+ }
+
+ // W3C
+ else if (doc.addEventListener) {
+ doc.addEventListener("DOMContentLoaded", domContentLoaded, false);
+
+ // A fallback to window.onload, that will always work
+ win.addEventListener("load", domReady, false);
+ }
+
+ // IE
+ else {
+ // Ensure firing before onload, maybe late but safe also for iframes
+ doc.attachEvent("onreadystatechange", domContentLoaded);
+
+ // A fallback to window.onload, that will always work
+ win.attachEvent("onload", domReady);
+
+ // If IE and not a frame
+ // continually check to see if the document is ready
+ var top = false;
+
+ try {
+ top = !win.frameElement && doc.documentElement;
+ } catch (e) { }
+
+ if (top && top.doScroll) {
+ (function doScrollCheck() {
+ if (!isDomReady) {
+ try {
+ // Use the trick by Diego Perini
+ // http://javascript.nwbox.com/IEContentLoaded/
+ top.doScroll("left");
+ } catch (error) {
+ // let's not get nasty by setting a timeout too small.. (loop mania guaranteed if assets are queued)
+ win.clearTimeout(api.readyTimeout);
+ api.readyTimeout = win.setTimeout(doScrollCheck, 50);
+ return;
+ }
+
+ // and execute any waiting functions
+ domReady();
+ }
+ }());
+ }
+ }
+ //#endregion
+
+ //#region Public Exports
+ // INFO: determine which method to use for loading
+ api.load = api.js = isAsync ? apiLoadAsync : apiLoadHack;
+ api.test = conditional;
+ api.ready = ready;
+ //#endregion
+
+ //#region INIT
+ // perform this when DOM is ready
+ api.ready(doc, function () {
+ if (allLoaded()) {
+ each(handlers.ALL, function (callback) {
+ one(callback);
+ });
+ }
+
+ if (api.feature) {
+ api.feature("domloaded", true);
+ }
+ });
+ //#endregion
+}(window));
diff --git a/slides/bower_components/headjs/dist/1.0.0/head.load.js b/slides/bower_components/headjs/dist/1.0.0/head.load.js
new file mode 100644
index 0000000..6884e3e
--- /dev/null
+++ b/slides/bower_components/headjs/dist/1.0.0/head.load.js
@@ -0,0 +1,707 @@
+///#source 1 1 /src/1.0.0/load.js
+/*! head.load - v1.0.3 */
+/*
+ * HeadJS The only script in your
+ * Author Tero Piirainen (tipiirai)
+ * Maintainer Robert Hoffmann (itechnology)
+ * License MIT / http://bit.ly/mit-license
+ * WebSite http://headjs.com
+ */
+(function (win, undefined) {
+ "use strict";
+
+ //#region variables
+ var doc = win.document,
+ domWaiters = [],
+ handlers = {}, // user functions waiting for events
+ assets = {}, // loadable items in various states
+ isAsync = "async" in doc.createElement("script") || "MozAppearance" in doc.documentElement.style || win.opera,
+ isDomReady,
+
+ /*** public API ***/
+ headVar = win.head_conf && win.head_conf.head || "head",
+ api = win[headVar] = (win[headVar] || function () { api.ready.apply(null, arguments); }),
+
+ // states
+ PRELOADING = 1,
+ PRELOADED = 2,
+ LOADING = 3,
+ LOADED = 4;
+ //#endregion
+
+ //#region PRIVATE functions
+
+ //#region Helper functions
+ function noop() {
+ // does nothing
+ }
+
+ function each(arr, callback) {
+ if (!arr) {
+ return;
+ }
+
+ // arguments special type
+ if (typeof arr === "object") {
+ arr = [].slice.call(arr);
+ }
+
+ // do the job
+ for (var i = 0, l = arr.length; i < l; i++) {
+ callback.call(arr, arr[i], i);
+ }
+ }
+
+ /* A must read: http://bonsaiden.github.com/JavaScript-Garden
+ ************************************************************/
+ function is(type, obj) {
+ var clas = Object.prototype.toString.call(obj).slice(8, -1);
+ return obj !== undefined && obj !== null && clas === type;
+ }
+
+ function isFunction(item) {
+ return is("Function", item);
+ }
+
+ function isArray(item) {
+ return is("Array", item);
+ }
+
+ function toLabel(url) {
+ ///Converts a url to a file label
+ var items = url.split("/"),
+ name = items[items.length - 1],
+ i = name.indexOf("?");
+
+ return i !== -1 ? name.substring(0, i) : name;
+ }
+
+ // INFO: this look like a "im triggering callbacks all over the place, but only wanna run it one time function" ..should try to make everything work without it if possible
+ // INFO: Even better. Look into promises/defered's like jQuery is doing
+ function one(callback) {
+ ///Execute a callback only once
+ callback = callback || noop;
+
+ if (callback._done) {
+ return;
+ }
+
+ callback();
+ callback._done = 1;
+ }
+ //#endregion
+
+ function conditional(test, success, failure, callback) {
+ ///
+ /// INFO: use cases:
+ /// head.test(condition, null , "file.NOk" , callback);
+ /// head.test(condition, "fileOk.js", null , callback);
+ /// head.test(condition, "fileOk.js", "file.NOk" , callback);
+ /// head.test(condition, "fileOk.js", ["file.NOk", "file.NOk"], callback);
+ /// head.test({
+ /// test : condition,
+ /// success : [{ label1: "file1Ok.js" }, { label2: "file2Ok.js" }],
+ /// failure : [{ label1: "file1NOk.js" }, { label2: "file2NOk.js" }],
+ /// callback: callback
+ /// );
+ /// head.test({
+ /// test : condition,
+ /// success : ["file1Ok.js" , "file2Ok.js"],
+ /// failure : ["file1NOk.js", "file2NOk.js"],
+ /// callback: callback
+ /// );
+ ///
+ var obj = (typeof test === "object") ? test : {
+ test: test,
+ success: !!success ? isArray(success) ? success : [success] : false,
+ failure: !!failure ? isArray(failure) ? failure : [failure] : false,
+ callback: callback || noop
+ };
+
+ // Test Passed ?
+ var passed = !!obj.test;
+
+ // Do we have a success case
+ if (passed && !!obj.success) {
+ obj.success.push(obj.callback);
+ api.load.apply(null, obj.success);
+ }
+ // Do we have a fail case
+ else if (!passed && !!obj.failure) {
+ obj.failure.push(obj.callback);
+ api.load.apply(null, obj.failure);
+ }
+ else {
+ callback();
+ }
+
+ return api;
+ }
+
+ function getAsset(item) {
+ ///
+ /// Assets are in the form of
+ /// {
+ /// name : label,
+ /// url : url,
+ /// state: state
+ /// }
+ ///
+ var asset = {};
+
+ if (typeof item === "object") {
+ for (var label in item) {
+ if (!!item[label]) {
+ asset = {
+ name: label,
+ url : item[label]
+ };
+ }
+ }
+ }
+ else {
+ asset = {
+ name: toLabel(item),
+ url : item
+ };
+ }
+
+ // is the item already existant
+ var existing = assets[asset.name];
+ if (existing && existing.url === asset.url) {
+ return existing;
+ }
+
+ assets[asset.name] = asset;
+ return asset;
+ }
+
+ function allLoaded(items) {
+ items = items || assets;
+
+ for (var name in items) {
+ if (items.hasOwnProperty(name) && items[name].state !== LOADED) {
+ return false;
+ }
+ }
+
+ return true;
+ }
+
+ function onPreload(asset) {
+ asset.state = PRELOADED;
+
+ each(asset.onpreload, function (afterPreload) {
+ afterPreload.call();
+ });
+ }
+
+ function preLoad(asset, callback) {
+ if (asset.state === undefined) {
+
+ asset.state = PRELOADING;
+ asset.onpreload = [];
+
+ loadAsset({ url: asset.url, type: "cache" }, function () {
+ onPreload(asset);
+ });
+ }
+ }
+
+ function apiLoadHack() {
+ /// preload with text/cache hack
+ ///
+ /// head.load("http://domain.com/file.js","http://domain.com/file.js", callBack)
+ /// head.load(["http://domain.com/file.js","http://domain.com/file.js"], callBack)
+ /// head.load({ label1: "http://domain.com/file.js" }, { label2: "http://domain.com/file.js" }, callBack)
+ /// head.load([{ label1: "http://domain.com/file.js" }, { label2: "http://domain.com/file.js" }], callBack)
+ ///
+ var args = arguments,
+ callback = args[args.length - 1],
+ rest = [].slice.call(args, 1),
+ next = rest[0];
+
+ if (!isFunction(callback)) {
+ callback = null;
+ }
+
+ // if array, repush as args
+ if (isArray(args[0])) {
+ args[0].push(callback);
+ api.load.apply(null, args[0]);
+
+ return api;
+ }
+
+ // multiple arguments
+ if (!!next) {
+ /* Preload with text/cache hack (not good!)
+ * http://blog.getify.com/on-script-loaders/
+ * http://www.nczonline.net/blog/2010/12/21/thoughts-on-script-loaders/
+ * If caching is not configured correctly on the server, then items could load twice !
+ *************************************************************************************/
+ each(rest, function (item) {
+ // item is not a callback or empty string
+ if (!isFunction(item) && !!item) {
+ preLoad(getAsset(item));
+ }
+ });
+
+ // execute
+ load(getAsset(args[0]), isFunction(next) ? next : function () {
+ api.load.apply(null, rest);
+ });
+ }
+ else {
+ // single item
+ load(getAsset(args[0]));
+ }
+
+ return api;
+ }
+
+ function apiLoadAsync() {
+ ///
+ /// simply load and let browser take care of ordering
+ ///
+ /// head.load("http://domain.com/file.js","http://domain.com/file.js", callBack)
+ /// head.load(["http://domain.com/file.js","http://domain.com/file.js"], callBack)
+ /// head.load({ label1: "http://domain.com/file.js" }, { label2: "http://domain.com/file.js" }, callBack)
+ /// head.load([{ label1: "http://domain.com/file.js" }, { label2: "http://domain.com/file.js" }], callBack)
+ ///
+ var args = arguments,
+ callback = args[args.length - 1],
+ items = {};
+
+ if (!isFunction(callback)) {
+ callback = null;
+ }
+
+ // if array, repush as args
+ if (isArray(args[0])) {
+ args[0].push(callback);
+ api.load.apply(null, args[0]);
+
+ return api;
+ }
+
+ // JRH 262#issuecomment-26288601
+ // First populate the items array.
+ // When allLoaded is called, all items will be populated.
+ // Issue when lazy loaded, the callback can execute early.
+ each(args, function (item, i) {
+ if (item !== callback) {
+ item = getAsset(item);
+ items[item.name] = item;
+ }
+ });
+
+ each(args, function (item, i) {
+ if (item !== callback) {
+ item = getAsset(item);
+
+ load(item, function () {
+ if (allLoaded(items)) {
+ one(callback);
+ }
+ });
+ }
+ });
+
+ return api;
+ }
+
+ function load(asset, callback) {
+ ///Used with normal loading logic
+ callback = callback || noop;
+
+ if (asset.state === LOADED) {
+ callback();
+ return;
+ }
+
+ // INFO: why would we trigger a ready event when its not really loaded yet ?
+ if (asset.state === LOADING) {
+ api.ready(asset.name, callback);
+ return;
+ }
+
+ if (asset.state === PRELOADING) {
+ asset.onpreload.push(function () {
+ load(asset, callback);
+ });
+ return;
+ }
+
+ asset.state = LOADING;
+
+ loadAsset(asset, function () {
+ asset.state = LOADED;
+
+ callback();
+
+ // handlers for this asset
+ each(handlers[asset.name], function (fn) {
+ one(fn);
+ });
+
+ // dom is ready & no assets are queued for loading
+ // INFO: shouldn't we be doing the same test above ?
+ if (isDomReady && allLoaded()) {
+ each(handlers.ALL, function (fn) {
+ one(fn);
+ });
+ }
+ });
+ }
+
+ function getExtension(url) {
+ url = url || "";
+
+ var items = url.split("?")[0].split(".");
+ return items[items.length-1].toLowerCase();
+ }
+
+ /* Parts inspired from: https://github.com/cujojs/curl
+ ******************************************************/
+ function loadAsset(asset, callback) {
+ callback = callback || noop;
+
+ function error(event) {
+ event = event || win.event;
+
+ // release event listeners
+ ele.onload = ele.onreadystatechange = ele.onerror = null;
+
+ // do callback
+ callback();
+
+ // need some more detailed error handling here
+ }
+
+ function process(event) {
+ event = event || win.event;
+
+ // IE 7/8 (2 events on 1st load)
+ // 1) event.type = readystatechange, s.readyState = loading
+ // 2) event.type = readystatechange, s.readyState = loaded
+
+ // IE 7/8 (1 event on reload)
+ // 1) event.type = readystatechange, s.readyState = complete
+
+ // event.type === 'readystatechange' && /loaded|complete/.test(s.readyState)
+
+ // IE 9 (3 events on 1st load)
+ // 1) event.type = readystatechange, s.readyState = loading
+ // 2) event.type = readystatechange, s.readyState = loaded
+ // 3) event.type = load , s.readyState = loaded
+
+ // IE 9 (2 events on reload)
+ // 1) event.type = readystatechange, s.readyState = complete
+ // 2) event.type = load , s.readyState = complete
+
+ // event.type === 'load' && /loaded|complete/.test(s.readyState)
+ // event.type === 'readystatechange' && /loaded|complete/.test(s.readyState)
+
+ // IE 10 (3 events on 1st load)
+ // 1) event.type = readystatechange, s.readyState = loading
+ // 2) event.type = load , s.readyState = complete
+ // 3) event.type = readystatechange, s.readyState = loaded
+
+ // IE 10 (3 events on reload)
+ // 1) event.type = readystatechange, s.readyState = loaded
+ // 2) event.type = load , s.readyState = complete
+ // 3) event.type = readystatechange, s.readyState = complete
+
+ // event.type === 'load' && /loaded|complete/.test(s.readyState)
+ // event.type === 'readystatechange' && /complete/.test(s.readyState)
+
+ // Other Browsers (1 event on 1st load)
+ // 1) event.type = load, s.readyState = undefined
+
+ // Other Browsers (1 event on reload)
+ // 1) event.type = load, s.readyState = undefined
+
+ // event.type == 'load' && s.readyState = undefined
+
+ // !doc.documentMode is for IE6/7, IE8+ have documentMode
+ if (event.type === "load" || (/loaded|complete/.test(ele.readyState) && (!doc.documentMode || doc.documentMode < 9))) {
+ // remove timeouts
+ win.clearTimeout(asset.errorTimeout);
+ win.clearTimeout(asset.cssTimeout);
+
+ // release event listeners
+ ele.onload = ele.onreadystatechange = ele.onerror = null;
+
+ // do callback
+ callback();
+ }
+ }
+
+ function isCssLoaded() {
+ // should we test again ? 20 retries = 5secs ..after that, the callback will be triggered by the error handler at 7secs
+ if (asset.state !== LOADED && asset.cssRetries <= 20) {
+
+ // loop through stylesheets
+ for (var i = 0, l = doc.styleSheets.length; i < l; i++) {
+ // do we have a match ?
+ // we need to tests agains ele.href and not asset.url, because a local file will be assigned the full http path on a link element
+ if (doc.styleSheets[i].href === ele.href) {
+ process({ "type": "load" });
+ return;
+ }
+ }
+
+ // increment & try again
+ asset.cssRetries++;
+ asset.cssTimeout = win.setTimeout(isCssLoaded, 250);
+ }
+ }
+
+ var ele;
+ var ext = getExtension(asset.url);
+
+ if (ext === "css") {
+ ele = doc.createElement("link");
+ ele.type = "text/" + (asset.type || "css");
+ ele.rel = "stylesheet";
+ ele.href = asset.url;
+
+ /* onload supported for CSS on unsupported browsers
+ * Safari windows 5.1.7, FF < 10
+ */
+
+ // Set counter to zero
+ asset.cssRetries = 0;
+ asset.cssTimeout = win.setTimeout(isCssLoaded, 500);
+ }
+ else {
+ ele = doc.createElement("script");
+ ele.type = "text/" + (asset.type || "javascript");
+ ele.src = asset.url;
+ }
+
+ ele.onload = ele.onreadystatechange = process;
+ ele.onerror = error;
+
+ /* Good read, but doesn't give much hope !
+ * http://blog.getify.com/on-script-loaders/
+ * http://www.nczonline.net/blog/2010/12/21/thoughts-on-script-loaders/
+ * https://hacks.mozilla.org/2009/06/defer/
+ */
+
+ // ASYNC: load in parallel and execute as soon as possible
+ ele.async = false;
+ // DEFER: load in parallel but maintain execution order
+ ele.defer = false;
+
+ // timout for asset loading
+ asset.errorTimeout = win.setTimeout(function () {
+ error({ type: "timeout" });
+ }, 7e3);
+
+ // use insertBefore to keep IE from throwing Operation Aborted (thx Bryan Forbes!)
+ var head = doc.head || doc.getElementsByTagName("head")[0];
+
+ // but insert at end of head, because otherwise if it is a stylesheet, it will not override values
+ head.insertBefore(ele, head.lastChild);
+ }
+
+ /* Parts inspired from: https://github.com/jrburke/requirejs
+ ************************************************************/
+ function init() {
+ var items = doc.getElementsByTagName("script");
+
+ // look for a script with a data-head-init attribute
+ for (var i = 0, l = items.length; i < l; i++) {
+ var dataMain = items[i].getAttribute("data-headjs-load");
+ if (!!dataMain) {
+ api.load(dataMain);
+ return;
+ }
+ }
+ }
+
+ function ready(key, callback) {
+ ///
+ /// INFO: use cases:
+ /// head.ready(callBack);
+ /// head.ready(document , callBack);
+ /// head.ready("file.js", callBack);
+ /// head.ready("label" , callBack);
+ /// head.ready(["label1", "label2"], callback);
+ ///
+
+ // DOM ready check: head.ready(document, function() { });
+ if (key === doc) {
+ if (isDomReady) {
+ one(callback);
+ }
+ else {
+ domWaiters.push(callback);
+ }
+
+ return api;
+ }
+
+ // shift arguments
+ if (isFunction(key)) {
+ callback = key;
+ key = "ALL"; // holds all callbacks that where added without labels: ready(callBack)
+ }
+
+ // queue all items from key and return. The callback will be executed if all items from key are already loaded.
+ if (isArray(key)) {
+ var items = {};
+
+ each(key, function (item) {
+ items[item] = assets[item];
+
+ api.ready(item, function() {
+ if (allLoaded(items)) {
+ one(callback);
+ }
+ });
+ });
+
+ return api;
+ }
+
+ // make sure arguments are sane
+ if (typeof key !== "string" || !isFunction(callback)) {
+ return api;
+ }
+
+ // this can also be called when we trigger events based on filenames & labels
+ var asset = assets[key];
+
+ // item already loaded --> execute and return
+ if (asset && asset.state === LOADED || key === "ALL" && allLoaded() && isDomReady) {
+ one(callback);
+ return api;
+ }
+
+ var arr = handlers[key];
+ if (!arr) {
+ arr = handlers[key] = [callback];
+ }
+ else {
+ arr.push(callback);
+ }
+
+ return api;
+ }
+
+ /* Mix of stuff from jQuery & IEContentLoaded
+ * http://dev.w3.org/html5/spec/the-end.html#the-end
+ ***************************************************/
+ function domReady() {
+ // Make sure body exists, at least, in case IE gets a little overzealous (jQuery ticket #5443).
+ if (!doc.body) {
+ // let's not get nasty by setting a timeout too small.. (loop mania guaranteed if assets are queued)
+ win.clearTimeout(api.readyTimeout);
+ api.readyTimeout = win.setTimeout(domReady, 50);
+ return;
+ }
+
+ if (!isDomReady) {
+ isDomReady = true;
+
+ init();
+ each(domWaiters, function (fn) {
+ one(fn);
+ });
+ }
+ }
+
+ function domContentLoaded() {
+ // W3C
+ if (doc.addEventListener) {
+ doc.removeEventListener("DOMContentLoaded", domContentLoaded, false);
+ domReady();
+ }
+
+ // IE
+ else if (doc.readyState === "complete") {
+ // we're here because readyState === "complete" in oldIE
+ // which is good enough for us to call the dom ready!
+ doc.detachEvent("onreadystatechange", domContentLoaded);
+ domReady();
+ }
+ }
+
+ // Catch cases where ready() is called after the browser event has already occurred.
+ // we once tried to use readyState "interactive" here, but it caused issues like the one
+ // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
+ if (doc.readyState === "complete") {
+ domReady();
+ }
+
+ // W3C
+ else if (doc.addEventListener) {
+ doc.addEventListener("DOMContentLoaded", domContentLoaded, false);
+
+ // A fallback to window.onload, that will always work
+ win.addEventListener("load", domReady, false);
+ }
+
+ // IE
+ else {
+ // Ensure firing before onload, maybe late but safe also for iframes
+ doc.attachEvent("onreadystatechange", domContentLoaded);
+
+ // A fallback to window.onload, that will always work
+ win.attachEvent("onload", domReady);
+
+ // If IE and not a frame
+ // continually check to see if the document is ready
+ var top = false;
+
+ try {
+ top = !win.frameElement && doc.documentElement;
+ } catch (e) { }
+
+ if (top && top.doScroll) {
+ (function doScrollCheck() {
+ if (!isDomReady) {
+ try {
+ // Use the trick by Diego Perini
+ // http://javascript.nwbox.com/IEContentLoaded/
+ top.doScroll("left");
+ } catch (error) {
+ // let's not get nasty by setting a timeout too small.. (loop mania guaranteed if assets are queued)
+ win.clearTimeout(api.readyTimeout);
+ api.readyTimeout = win.setTimeout(doScrollCheck, 50);
+ return;
+ }
+
+ // and execute any waiting functions
+ domReady();
+ }
+ }());
+ }
+ }
+ //#endregion
+
+ //#region Public Exports
+ // INFO: determine which method to use for loading
+ api.load = api.js = isAsync ? apiLoadAsync : apiLoadHack;
+ api.test = conditional;
+ api.ready = ready;
+ //#endregion
+
+ //#region INIT
+ // perform this when DOM is ready
+ api.ready(doc, function () {
+ if (allLoaded()) {
+ each(handlers.ALL, function (callback) {
+ one(callback);
+ });
+ }
+
+ if (api.feature) {
+ api.feature("domloaded", true);
+ }
+ });
+ //#endregion
+}(window));
diff --git a/slides/bower_components/headjs/dist/1.0.0/head.load.min.js b/slides/bower_components/headjs/dist/1.0.0/head.load.min.js
new file mode 100644
index 0000000..da0716c
--- /dev/null
+++ b/slides/bower_components/headjs/dist/1.0.0/head.load.min.js
@@ -0,0 +1,5 @@
+/*! head.load - v1.0.3 */
+(function(n,t){"use strict";function w(){}function u(n,t){if(n){typeof n=="object"&&(n=[].slice.call(n));for(var i=0,r=n.length;in?(i.screensCss.gt&&r("gt-"+n),i.screensCss.gte&&r("gte-"+n)):tt);u.feature("landscape",fe?(i.browserCss.gt&&r("gt-"+f+e),i.browserCss.gte&&r("gte-"+f+e)):h2&&this[u+1]!==t)u&&r(this.slice(u,u+1).join("-").toLowerCase()+i.section);else{var f=n||"index",e=f.indexOf(".");e>0&&(f=f.substring(0,e));c.id=f.toLowerCase()+i.page;u||r("root"+i.section)}});u.screen={height:n.screen.height,width:n.screen.width};tt();b=0;n.addEventListener?n.addEventListener("resize",it,!1):n.attachEvent("onresize",it)})(window);
+/*! head.css3 - v1.0.0 */
+(function(n,t){"use strict";function a(n){for(var r in n)if(i[n[r]]!==t)return!0;return!1}function r(n){var t=n.charAt(0).toUpperCase()+n.substr(1),i=(n+" "+c.join(t+" ")+t).split(" ");return!!a(i)}var h=n.document,o=h.createElement("i"),i=o.style,s=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),c="Webkit Moz O ms Khtml".split(" "),l=n.head_conf&&n.head_conf.head||"head",u=n[l],f={gradient:function(){var n="background-image:";return i.cssText=(n+s.join("gradient(linear,left top,right bottom,from(#9f9),to(#fff));"+n)+s.join("linear-gradient(left top,#eee,#fff);"+n)).slice(0,-n.length),!!i.backgroundImage},rgba:function(){return i.cssText="background-color:rgba(0,0,0,0.5)",!!i.backgroundColor},opacity:function(){return o.style.opacity===""},textshadow:function(){return i.textShadow===""},multiplebgs:function(){i.cssText="background:url(https://),url(https://),red url(https://)";var n=(i.background||"").match(/url/g);return Object.prototype.toString.call(n)==="[object Array]"&&n.length===3},boxshadow:function(){return r("boxShadow")},borderimage:function(){return r("borderImage")},borderradius:function(){return r("borderRadius")},cssreflections:function(){return r("boxReflect")},csstransforms:function(){return r("transform")},csstransitions:function(){return r("transition")},touch:function(){return"ontouchstart"in n},retina:function(){return n.devicePixelRatio>1},fontface:function(){var t=u.browser.name,n=u.browser.version;switch(t){case"ie":return n>=9;case"chrome":return n>=13;case"ff":return n>=6;case"ios":return n>=5;case"android":return!1;case"webkit":return n>=5.1;case"opera":return n>=10;default:return!1}}};for(var e in f)f[e]&&u.feature(e,f[e].call(),!0);u.feature()})(window);
+/*! head.load - v1.0.3 */
+(function(n,t){"use strict";function w(){}function u(n,t){if(n){typeof n=="object"&&(n=[].slice.call(n));for(var i=0,r=n.length;i (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +
+ ' * http://revealjs.com\n' +
+ ' * MIT licensed\n' +
+ ' *\n' +
+ ' * Copyright (C) 2017 Hakim El Hattab, http://hakim.se\n' +
+ ' */'
+ },
+
+ qunit: {
+ files: [ 'test/*.html' ]
+ },
+
+ uglify: {
+ options: {
+ banner: '<%= meta.banner %>\n',
+ screwIE8: false
+ },
+ build: {
+ src: 'js/reveal.js',
+ dest: 'js/reveal.min.js'
+ }
+ },
+
+ sass: {
+ core: {
+ src: 'css/reveal.scss',
+ dest: 'css/reveal.css'
+ },
+ themes: {
+ expand: true,
+ cwd: 'css/theme/source',
+ src: ['*.sass', '*.scss'],
+ dest: 'css/theme',
+ ext: '.css'
+ }
+ },
+
+ autoprefixer: {
+ core: {
+ src: 'css/reveal.css'
+ }
+ },
+
+ cssmin: {
+ options: {
+ compatibility: 'ie9'
+ },
+ compress: {
+ src: 'css/reveal.css',
+ dest: 'css/reveal.min.css'
+ }
+ },
+
+ jshint: {
+ options: {
+ curly: false,
+ eqeqeq: true,
+ immed: true,
+ esnext: true,
+ latedef: 'nofunc',
+ newcap: true,
+ noarg: true,
+ sub: true,
+ undef: true,
+ eqnull: true,
+ browser: true,
+ expr: true,
+ globals: {
+ head: false,
+ module: false,
+ console: false,
+ unescape: false,
+ define: false,
+ exports: false
+ }
+ },
+ files: [ 'Gruntfile.js', 'js/reveal.js' ]
+ },
+
+ connect: {
+ server: {
+ options: {
+ port: port,
+ base: root,
+ livereload: true,
+ open: true,
+ useAvailablePort: true
+ }
+ }
+ },
+
+ zip: {
+ bundle: {
+ src: [
+ 'index.html',
+ 'css/**',
+ 'js/**',
+ 'lib/**',
+ 'images/**',
+ 'plugin/**',
+ '**.md'
+ ],
+ dest: 'reveal-js-presentation.zip'
+ }
+ },
+
+ watch: {
+ js: {
+ files: [ 'Gruntfile.js', 'js/reveal.js' ],
+ tasks: 'js'
+ },
+ theme: {
+ files: [
+ 'css/theme/source/*.sass',
+ 'css/theme/source/*.scss',
+ 'css/theme/template/*.sass',
+ 'css/theme/template/*.scss'
+ ],
+ tasks: 'css-themes'
+ },
+ css: {
+ files: [ 'css/reveal.scss' ],
+ tasks: 'css-core'
+ },
+ html: {
+ files: root.map(path => path + '/*.html')
+ },
+ markdown: {
+ files: root.map(path => path + '/*.md')
+ },
+ options: {
+ livereload: true
+ }
+ },
+
+ retire: {
+ js: [ 'js/reveal.js', 'lib/js/*.js', 'plugin/**/*.js' ],
+ node: [ '.' ]
+ }
+
+ });
+
+ // Dependencies
+ grunt.loadNpmTasks( 'grunt-contrib-connect' );
+ grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
+ grunt.loadNpmTasks( 'grunt-contrib-jshint' );
+ grunt.loadNpmTasks( 'grunt-contrib-qunit' );
+ grunt.loadNpmTasks( 'grunt-contrib-uglify' );
+ grunt.loadNpmTasks( 'grunt-contrib-watch' );
+ grunt.loadNpmTasks( 'grunt-autoprefixer' );
+ grunt.loadNpmTasks( 'grunt-retire' );
+ grunt.loadNpmTasks( 'grunt-sass' );
+ grunt.loadNpmTasks( 'grunt-zip' );
+
+ // Default task
+ grunt.registerTask( 'default', [ 'css', 'js' ] );
+
+ // JS task
+ grunt.registerTask( 'js', [ 'jshint', 'uglify', 'qunit' ] );
+
+ // Theme CSS
+ grunt.registerTask( 'css-themes', [ 'sass:themes' ] );
+
+ // Core framework CSS
+ grunt.registerTask( 'css-core', [ 'sass:core', 'autoprefixer', 'cssmin' ] );
+
+ // All CSS
+ grunt.registerTask( 'css', [ 'sass', 'autoprefixer', 'cssmin' ] );
+
+ // Package presentation to archive
+ grunt.registerTask( 'package', [ 'default', 'zip' ] );
+
+ // Serve presentation locally
+ grunt.registerTask( 'serve', [ 'connect', 'watch' ] );
+
+ // Run tests
+ grunt.registerTask( 'test', [ 'jshint', 'qunit' ] );
+
+};
diff --git a/slides/bower_components/reveal.js/LICENSE b/slides/bower_components/reveal.js/LICENSE
new file mode 100644
index 0000000..c3e6e5f
--- /dev/null
+++ b/slides/bower_components/reveal.js/LICENSE
@@ -0,0 +1,19 @@
+Copyright (C) 2017 Hakim El Hattab, http://hakim.se, and reveal.js contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/slides/bower_components/reveal.js/README.md b/slides/bower_components/reveal.js/README.md
new file mode 100644
index 0000000..9d71472
--- /dev/null
+++ b/slides/bower_components/reveal.js/README.md
@@ -0,0 +1,1238 @@
+# reveal.js [![Build Status](https://travis-ci.org/hakimel/reveal.js.svg?branch=master)](https://travis-ci.org/hakimel/reveal.js)
+
+A framework for easily creating beautiful presentations using HTML. [Check out the live demo](http://revealjs.com/).
+
+reveal.js comes with a broad range of features including [nested slides](https://github.com/hakimel/reveal.js#markup), [Markdown contents](https://github.com/hakimel/reveal.js#markdown), [PDF export](https://github.com/hakimel/reveal.js#pdf-export), [speaker notes](https://github.com/hakimel/reveal.js#speaker-notes) and a [JavaScript API](https://github.com/hakimel/reveal.js#api). There's also a fully featured visual editor and platform for sharing reveal.js presentations at [slides.com](https://slides.com?ref=github).
+
+## Table of contents
+- [Online Editor](#online-editor)
+- [Instructions](#instructions)
+ - [Markup](#markup)
+ - [Markdown](#markdown)
+ - [Element Attributes](#element-attributes)
+ - [Slide Attributes](#slide-attributes)
+- [Configuration](#configuration)
+- [Presentation Size](#presentation-size)
+- [Dependencies](#dependencies)
+- [Ready Event](#ready-event)
+- [Auto-sliding](#auto-sliding)
+- [Keyboard Bindings](#keyboard-bindings)
+- [Touch Navigation](#touch-navigation)
+- [Lazy Loading](#lazy-loading)
+- [API](#api)
+ - [Slide Changed Event](#slide-changed-event)
+ - [Presentation State](#presentation-state)
+ - [Slide States](#slide-states)
+ - [Slide Backgrounds](#slide-backgrounds)
+ - [Parallax Background](#parallax-background)
+ - [Slide Transitions](#slide-transitions)
+ - [Internal links](#internal-links)
+ - [Fragments](#fragments)
+ - [Fragment events](#fragment-events)
+ - [Code syntax highlighting](#code-syntax-highlighting)
+ - [Slide number](#slide-number)
+ - [Overview mode](#overview-mode)
+ - [Fullscreen mode](#fullscreen-mode)
+ - [Embedded media](#embedded-media)
+ - [Stretching elements](#stretching-elements)
+ - [postMessage API](#postmessage-api)
+- [PDF Export](#pdf-export)
+- [Theming](#theming)
+- [Speaker Notes](#speaker-notes)
+ - [Share and Print Speaker Notes](#share-and-print-speaker-notes)
+ - [Server Side Speaker Notes](#server-side-speaker-notes)
+- [Multiplexing](#multiplexing)
+ - [Master presentation](#master-presentation)
+ - [Client presentation](#client-presentation)
+ - [Socket.io server](#socketio-server)
+- [MathJax](#mathjax)
+- [Installation](#installation)
+ - [Basic setup](#basic-setup)
+ - [Full setup](#full-setup)
+ - [Folder Structure](#folder-structure)
+- [License](#license)
+
+#### More reading
+- [Changelog](https://github.com/hakimel/reveal.js/releases): Up-to-date version history.
+- [Examples](https://github.com/hakimel/reveal.js/wiki/Example-Presentations): Presentations created with reveal.js, add your own!
+- [Browser Support](https://github.com/hakimel/reveal.js/wiki/Browser-Support): Explanation of browser support and fallbacks.
+- [Plugins](https://github.com/hakimel/reveal.js/wiki/Plugins,-Tools-and-Hardware): A list of plugins that can be used to extend reveal.js.
+
+## Online Editor
+
+Presentations are written using HTML or Markdown but there's also an online editor for those of you who prefer a graphical interface. Give it a try at [https://slides.com](https://slides.com?ref=github).
+
+
+## Instructions
+
+### Markup
+
+Here's a barebones example of a fully working reveal.js presentation:
+```html
+
+
+
+
+
+
+
+
+ Slide 1
+ Slide 2
+
+
+
+
+
+
+```
+
+The presentation markup hierarchy needs to be `.reveal > .slides > section` where the `section` represents one slide and can be repeated indefinitely. If you place multiple `section` elements inside of another `section` they will be shown as vertical slides. The first of the vertical slides is the "root" of the others (at the top), and will be included in the horizontal sequence. For example:
+
+```html
+
+```
+
+### Markdown
+
+It's possible to write your slides using Markdown. To enable Markdown, add the `data-markdown` attribute to your `` elements and wrap the contents in a `
"+escape(e.message+"",true)+"
"}throw e}}marked.options=marked.setOptions=function(opt){merge(marked.defaults,opt);return marked};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,sanitizer:null,mangle:true,smartLists:false,silent:false,highlight:null,langPrefix:"lang-",smartypants:false,headerPrefix:"",renderer:new Renderer,xhtml:false};marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;if(typeof module!=="undefined"&&typeof exports==="object"){module.exports=marked}else if(typeof define==="function"&&define.amd){define(function(){return marked})}else{this.marked=marked}}).call(function(){return this||(typeof window!=="undefined"?window:global)}());
\ No newline at end of file
diff --git a/slides/bower_components/reveal.js/plugin/math/math.js b/slides/bower_components/reveal.js/plugin/math/math.js
new file mode 100755
index 0000000..e3b4089
--- /dev/null
+++ b/slides/bower_components/reveal.js/plugin/math/math.js
@@ -0,0 +1,67 @@
+/**
+ * A plugin which enables rendering of math equations inside
+ * of reveal.js slides. Essentially a thin wrapper for MathJax.
+ *
+ * @author Hakim El Hattab
+ */
+var RevealMath = window.RevealMath || (function(){
+
+ var options = Reveal.getConfig().math || {};
+ options.mathjax = options.mathjax || 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js';
+ options.config = options.config || 'TeX-AMS_HTML-full';
+
+ loadScript( options.mathjax + '?config=' + options.config, function() {
+
+ MathJax.Hub.Config({
+ messageStyle: 'none',
+ tex2jax: {
+ inlineMath: [['$','$'],['\\(','\\)']] ,
+ skipTags: ['script','noscript','style','textarea','pre']
+ },
+ skipStartupTypeset: true
+ });
+
+ // Typeset followed by an immediate reveal.js layout since
+ // the typesetting process could affect slide height
+ MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub ] );
+ MathJax.Hub.Queue( Reveal.layout );
+
+ // Reprocess equations in slides when they turn visible
+ Reveal.addEventListener( 'slidechanged', function( event ) {
+
+ MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub, event.currentSlide ] );
+
+ } );
+
+ } );
+
+ function loadScript( url, callback ) {
+
+ var head = document.querySelector( 'head' );
+ var script = document.createElement( 'script' );
+ script.type = 'text/javascript';
+ script.src = url;
+
+ // Wrapper for callback to make sure it only fires once
+ var finish = function() {
+ if( typeof callback === 'function' ) {
+ callback.call();
+ callback = null;
+ }
+ }
+
+ script.onload = finish;
+
+ // IE
+ script.onreadystatechange = function() {
+ if ( this.readyState === 'loaded' ) {
+ finish();
+ }
+ }
+
+ // Normal browsers
+ head.appendChild( script );
+
+ }
+
+})();
diff --git a/slides/bower_components/reveal.js/plugin/multiplex/client.js b/slides/bower_components/reveal.js/plugin/multiplex/client.js
new file mode 100644
index 0000000..3ffd1e0
--- /dev/null
+++ b/slides/bower_components/reveal.js/plugin/multiplex/client.js
@@ -0,0 +1,13 @@
+(function() {
+ var multiplex = Reveal.getConfig().multiplex;
+ var socketId = multiplex.id;
+ var socket = io.connect(multiplex.url);
+
+ socket.on(multiplex.id, function(data) {
+ // ignore data from sockets that aren't ours
+ if (data.socketId !== socketId) { return; }
+ if( window.location.host === 'localhost:1947' ) return;
+
+ Reveal.setState(data.state);
+ });
+}());
diff --git a/slides/bower_components/reveal.js/plugin/multiplex/index.js b/slides/bower_components/reveal.js/plugin/multiplex/index.js
new file mode 100644
index 0000000..8195f04
--- /dev/null
+++ b/slides/bower_components/reveal.js/plugin/multiplex/index.js
@@ -0,0 +1,64 @@
+var http = require('http');
+var express = require('express');
+var fs = require('fs');
+var io = require('socket.io');
+var crypto = require('crypto');
+
+var app = express();
+var staticDir = express.static;
+var server = http.createServer(app);
+
+io = io(server);
+
+var opts = {
+ port: process.env.PORT || 1948,
+ baseDir : __dirname + '/../../'
+};
+
+io.on( 'connection', function( socket ) {
+ socket.on('multiplex-statechanged', function(data) {
+ if (typeof data.secret == 'undefined' || data.secret == null || data.secret === '') return;
+ if (createHash(data.secret) === data.socketId) {
+ data.secret = null;
+ socket.broadcast.emit(data.socketId, data);
+ };
+ });
+});
+
+[ 'css', 'js', 'plugin', 'lib' ].forEach(function(dir) {
+ app.use('/' + dir, staticDir(opts.baseDir + dir));
+});
+
+app.get("/", function(req, res) {
+ res.writeHead(200, {'Content-Type': 'text/html'});
+
+ var stream = fs.createReadStream(opts.baseDir + '/index.html');
+ stream.on('error', function( error ) {
+ res.write('
reveal.js multiplex server.
Generate token');
+ res.end();
+ });
+ stream.on('readable', function() {
+ stream.pipe(res);
+ });
+});
+
+app.get("/token", function(req,res) {
+ var ts = new Date().getTime();
+ var rand = Math.floor(Math.random()*9999999);
+ var secret = ts.toString() + rand.toString();
+ res.send({secret: secret, socketId: createHash(secret)});
+});
+
+var createHash = function(secret) {
+ var cipher = crypto.createCipher('blowfish', secret);
+ return(cipher.final('hex'));
+};
+
+// Actually listen
+server.listen( opts.port || null );
+
+var brown = '\033[33m',
+ green = '\033[32m',
+ reset = '\033[0m';
+
+console.log( brown + "reveal.js:" + reset + " Multiplex running on port " + green + opts.port + reset );
\ No newline at end of file
diff --git a/slides/bower_components/reveal.js/plugin/multiplex/master.js b/slides/bower_components/reveal.js/plugin/multiplex/master.js
new file mode 100644
index 0000000..7f4bf45
--- /dev/null
+++ b/slides/bower_components/reveal.js/plugin/multiplex/master.js
@@ -0,0 +1,34 @@
+(function() {
+
+ // Don't emit events from inside of notes windows
+ if ( window.location.search.match( /receiver/gi ) ) { return; }
+
+ var multiplex = Reveal.getConfig().multiplex;
+
+ var socket = io.connect( multiplex.url );
+
+ function post() {
+
+ var messageData = {
+ state: Reveal.getState(),
+ secret: multiplex.secret,
+ socketId: multiplex.id
+ };
+
+ socket.emit( 'multiplex-statechanged', messageData );
+
+ };
+
+ // post once the page is loaded, so the client follows also on "open URL".
+ window.addEventListener( 'load', post );
+
+ // Monitor events that trigger a change in state
+ Reveal.addEventListener( 'slidechanged', post );
+ Reveal.addEventListener( 'fragmentshown', post );
+ Reveal.addEventListener( 'fragmenthidden', post );
+ Reveal.addEventListener( 'overviewhidden', post );
+ Reveal.addEventListener( 'overviewshown', post );
+ Reveal.addEventListener( 'paused', post );
+ Reveal.addEventListener( 'resumed', post );
+
+}());
diff --git a/slides/bower_components/reveal.js/plugin/multiplex/package.json b/slides/bower_components/reveal.js/plugin/multiplex/package.json
new file mode 100644
index 0000000..bbed77a
--- /dev/null
+++ b/slides/bower_components/reveal.js/plugin/multiplex/package.json
@@ -0,0 +1,19 @@
+{
+ "name": "reveal-js-multiplex",
+ "version": "1.0.0",
+ "description": "reveal.js multiplex server",
+ "homepage": "http://revealjs.com",
+ "scripts": {
+ "start": "node index.js"
+ },
+ "engines": {
+ "node": "~4.1.1"
+ },
+ "dependencies": {
+ "express": "~4.13.3",
+ "grunt-cli": "~0.1.13",
+ "mustache": "~2.2.1",
+ "socket.io": "~1.3.7"
+ },
+ "license": "MIT"
+}
diff --git a/slides/bower_components/reveal.js/plugin/notes-server/client.js b/slides/bower_components/reveal.js/plugin/notes-server/client.js
new file mode 100644
index 0000000..00b277b
--- /dev/null
+++ b/slides/bower_components/reveal.js/plugin/notes-server/client.js
@@ -0,0 +1,65 @@
+(function() {
+
+ // don't emit events from inside the previews themselves
+ if( window.location.search.match( /receiver/gi ) ) { return; }
+
+ var socket = io.connect( window.location.origin ),
+ socketId = Math.random().toString().slice( 2 );
+
+ console.log( 'View slide notes at ' + window.location.origin + '/notes/' + socketId );
+
+ window.open( window.location.origin + '/notes/' + socketId, 'notes-' + socketId );
+
+ /**
+ * Posts the current slide data to the notes window
+ */
+ function post() {
+
+ var slideElement = Reveal.getCurrentSlide(),
+ notesElement = slideElement.querySelector( 'aside.notes' );
+
+ var messageData = {
+ notes: '',
+ markdown: false,
+ socketId: socketId,
+ state: Reveal.getState()
+ };
+
+ // Look for notes defined in a slide attribute
+ if( slideElement.hasAttribute( 'data-notes' ) ) {
+ messageData.notes = slideElement.getAttribute( 'data-notes' );
+ }
+
+ // Look for notes defined in an aside element
+ if( notesElement ) {
+ messageData.notes = notesElement.innerHTML;
+ messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string';
+ }
+
+ socket.emit( 'statechanged', messageData );
+
+ }
+
+ // When a new notes window connects, post our current state
+ socket.on( 'new-subscriber', function( data ) {
+ post();
+ } );
+
+ // When the state changes from inside of the speaker view
+ socket.on( 'statechanged-speaker', function( data ) {
+ Reveal.setState( data.state );
+ } );
+
+ // Monitor events that trigger a change in state
+ Reveal.addEventListener( 'slidechanged', post );
+ Reveal.addEventListener( 'fragmentshown', post );
+ Reveal.addEventListener( 'fragmenthidden', post );
+ Reveal.addEventListener( 'overviewhidden', post );
+ Reveal.addEventListener( 'overviewshown', post );
+ Reveal.addEventListener( 'paused', post );
+ Reveal.addEventListener( 'resumed', post );
+
+ // Post the initial state
+ post();
+
+}());
diff --git a/slides/bower_components/reveal.js/plugin/notes-server/index.js b/slides/bower_components/reveal.js/plugin/notes-server/index.js
new file mode 100644
index 0000000..b95f071
--- /dev/null
+++ b/slides/bower_components/reveal.js/plugin/notes-server/index.js
@@ -0,0 +1,69 @@
+var http = require('http');
+var express = require('express');
+var fs = require('fs');
+var io = require('socket.io');
+var Mustache = require('mustache');
+
+var app = express();
+var staticDir = express.static;
+var server = http.createServer(app);
+
+io = io(server);
+
+var opts = {
+ port : 1947,
+ baseDir : __dirname + '/../../'
+};
+
+io.on( 'connection', function( socket ) {
+
+ socket.on( 'new-subscriber', function( data ) {
+ socket.broadcast.emit( 'new-subscriber', data );
+ });
+
+ socket.on( 'statechanged', function( data ) {
+ delete data.state.overview;
+ socket.broadcast.emit( 'statechanged', data );
+ });
+
+ socket.on( 'statechanged-speaker', function( data ) {
+ delete data.state.overview;
+ socket.broadcast.emit( 'statechanged-speaker', data );
+ });
+
+});
+
+[ 'css', 'js', 'images', 'plugin', 'lib' ].forEach( function( dir ) {
+ app.use( '/' + dir, staticDir( opts.baseDir + dir ) );
+});
+
+app.get('/', function( req, res ) {
+
+ res.writeHead( 200, { 'Content-Type': 'text/html' } );
+ fs.createReadStream( opts.baseDir + '/index.html' ).pipe( res );
+
+});
+
+app.get( '/notes/:socketId', function( req, res ) {
+
+ fs.readFile( opts.baseDir + 'plugin/notes-server/notes.html', function( err, data ) {
+ res.send( Mustache.to_html( data.toString(), {
+ socketId : req.params.socketId
+ }));
+ });
+
+});
+
+// Actually listen
+server.listen( opts.port || null );
+
+var brown = '\033[33m',
+ green = '\033[32m',
+ reset = '\033[0m';
+
+var slidesLocation = 'http://localhost' + ( opts.port ? ( ':' + opts.port ) : '' );
+
+console.log( brown + 'reveal.js - Speaker Notes' + reset );
+console.log( '1. Open the slides at ' + green + slidesLocation + reset );
+console.log( '2. Click on the link in your JS console to go to the notes page' );
+console.log( '3. Advance through your slides and your notes will advance automatically' );
diff --git a/slides/bower_components/reveal.js/plugin/notes-server/notes.html b/slides/bower_components/reveal.js/plugin/notes-server/notes.html
new file mode 100644
index 0000000..ab8c5b1
--- /dev/null
+++ b/slides/bower_components/reveal.js/plugin/notes-server/notes.html
@@ -0,0 +1,585 @@
+
+
+
+
+
+ reveal.js - Slide Notes
+
+
+
+
+
+
+
+
Measure round trip time/latency. Measure UDP, TCP. Measure when the packet size is greater than the MTU
+
+
+
+
+
+
+
+
+
+
+
diff --git a/slides/refresh b/slides/refresh
new file mode 100755
index 0000000..eb12cb1
--- /dev/null
+++ b/slides/refresh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+set -e
+
+file=$1
+key=$2
+value=$3
+
+if [[ -r $file ]]
+then
+ old=$(<"$file")
+fi
+
+if [[ $value != $old ]]
+then
+ echo $value > $file
+ echo Changed: $key
+fi
diff --git a/slides/toc.md b/slides/toc.md
new file mode 100644
index 0000000..9a22105
--- /dev/null
+++ b/slides/toc.md
@@ -0,0 +1,40 @@
+* What is IoT
+ * What is IoT
+ * IoT is just a concept
+ * What is an IoT Device?
+ * What is an IoT Device?
+ * Typical IoT chips - Bluetooth 4/5
+ * Typical IoT chips - Wi-Fi
+ * ESP8266 details - Power usage
+ * ESP8266 details - Arduino
+* Going back to basics
+ * What is the internet again?
+ * OSI model
+ * Layer 1: Physical Layer
+ * Layer 2: Data Link Layer
+ * Layer 3: Network Layer
+ * Layer 4: Transport Layer
+ * Layer 5: Session Layer
+ * Layer 6: Presentation Layer
+ * Layer 7: Application Layer
+ * Details: IP
+ * Details: IP
+* Lecture: ESP8266
+ * ESP8266 software layers
+* Lecture: MQTT
+ * MQTT
+ * MQTT - The protocol
+ * MQTT - The protocol - MQTT Topic
+ * MQTT - The protocol - MQTT Topic
+ * MQTT - The protocol - MQTT Packet
+ * MQTT - The protocol - MQTT Topic - more
+ * MQTT - The protocol - Retained message
+ * MQTT - The protocol - Will message
+ * MQTT - Patterns
+ * MQTT - Implementations
+ * MQTT Cloud Connectors
+* Assignments
+ * Assignment 1: Blink a led
+ * Assignment 2: Connect to Wi-Fi
+ * Assignment 3: Connect to MQTT broker
+ * Assignment 4: Network play time
diff --git a/slides/what-is-iot-reveal.html b/slides/what-is-iot-reveal.html
new file mode 100644
index 0000000..a4d8f54
--- /dev/null
+++ b/slides/what-is-iot-reveal.html
@@ -0,0 +1,555 @@
+
+
+
+
+
+
+ IoT Workshop
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
IoT Workshop
+
Trygve Laugstøl <trygvis@trygvis.io>
+
+
+
What is IoT
+
What is IoT
+
+
Not “a computer connected to the internet”
+
+
Then it is really just another computer connected to the internet
+
+
Must be something else
+
+
It is simply devices that are resource constrained
+
+
Usually in more than one way
+
+
+
Autonomous operation, the connection might not be permanent
+
+
+
IoT is just a concept
+
+
The Internet of Things (IoT) is the network of physical devices, vehicles, home appliances and other items embedded with electronics, software, sensors, actuators, and connectivity which enables these objects to connect and exchange data.1
+
+
+
What is an IoT Device?
+
+
+
What is an IoT Device?
+
+
Constrained in (one or more of):
+
+
Memory
+
CPU
+
Network bandwidth and/or latency
+
Storage
+
+
Connected
+
+
Bluetooth
+
Wi-Fi
+
NB-IoT
+
LTE Cat-M
+
IR
+
UART
+
CAN
+
+
+
+
+
Typical IoT chips - Bluetooth 4/5
+
+
+
+
Chip
+
CPU
+
Freq
+
RAM
+
Flash
+
Price
+
+
+
+
+
nRF52810
+
Cortex-M4
+
64 M
+
Hz 24k
+
192k
+
$1.88
+
+
+
High perf
+
ormance,
+
entry
+
-level Bl
+
uetooth
+
4/ANT/2.4GHz SoC
+
+
+
+
nRF52832 Cortex-M4F 32k 256k $2.54 64k 512k $2.59 High performance Bluetooth 4/ANT/2.4GHz SoC
+
nRF52840 Cortex-M4F 256k 1024k $3.85 Advanced multi-protocol System-on-Chip Supporting: Bluetooth 5, ANT/ANT+, 802.15.4 and 2.4GHz proprietary
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.