Skip to content

Commit 6c24b85

Browse files
author
jordanmccullough
committed
Port all slide deck materials
1 parent f083559 commit 6c24b85

File tree

313 files changed

+9806
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

313 files changed

+9806
-0
lines changed

_includes/hydeslides/core/notes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<aside class="notes">
2+
{{ notes | markdownify }}
3+
</aside>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
</div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div>
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<div id="impress">
2+
3+
{% assign xPos = 0 %}
4+
{% assign coverRotate = 90 %}
5+
6+
{% for ch in page.chapters %}
7+
8+
{% assign yPos = 0 %}
9+
{% assign zIndex = 0 %}
10+
11+
{% for section in site.tags[ch] reversed %}
12+
13+
{% if forloop.first %}
14+
{% if section.cover == false %}{% else %}
15+
<div class="slide step" data-x="{{ xPos }}" data-y="{{ yPos }}" data-scale="2" data-rotate="{{ coverRotate }}" id="{{ section.chapter | downcase | replace:" ","-" }}">
16+
<h1 class="cover-title">{{ section.chapter }}</h1>
17+
</div>
18+
{% capture yPos %}
19+
{{ yPos | plus: 4000 }}
20+
{% endcapture %}
21+
22+
{% endif %}
23+
24+
{% endif %}
25+
26+
<div class="slide step" data-x="{{ xPos }}" data-y="{{ yPos }}" data-z="{{ zIndex }}" id="{{ section.title | downcase | replace:" ","-" }}">
27+
<h1 {% if section.heading == false %}class="hidden"{% endif %}>{{ section.chapter }}</h1>
28+
<h2 {% if section.heading == false %}class="hidden"{% endif %}>{{ section.title }}</h2>
29+
<div class="clear-all"></div>
30+
{{ section.content }}
31+
</div>
32+
33+
{% capture zIndex %}
34+
{{ zIndex | plus: -300}}
35+
{% endcapture %}
36+
37+
{% capture yPos %}
38+
{{ yPos | plus: 1000 }}
39+
{% endcapture %}
40+
41+
{% endfor %}
42+
43+
{% capture xPos %}
44+
{{ xPos | plus: 2000 }}
45+
{% endcapture %}
46+
47+
{% endfor %}
48+
</div>

_includes/hydeslides/revealjs/head

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<meta charset="utf-8">
2+
<title>{{ page.title }}</title>
3+
4+
<meta name="description" content="{{ page.description }}">
5+
<meta name="author" content="Jordan McCullough">
6+
7+
<meta name="apple-mobile-web-app-capable" content="yes" />
8+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
9+
10+
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
11+
<script>
12+
document.write( '<link rel="stylesheet" href="dependencies/revealjs/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
13+
</script>
14+
15+
<!--[if lt IE 9]>
16+
<script src="../dependencies/revealjs/lib/js/html5shiv.js"></script>
17+
<![endif]-->
18+
19+
<!--SVG Injection Library-->
20+
<script src="dependencies/snap-svg/dist/snap.svg-min.js"></script>
21+
22+
<!--GitHub Style-->
23+
{% if page.theme %}
24+
{% assign theme = page.theme %}
25+
{% else %}
26+
{% assign theme = "original" %}
27+
{% endif %}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<link rel="stylesheet" href="dependencies/plugins/launcher/launcher.css" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="https://github.com/jordanmccullough/HydeSlides"><img style="position: absolute; top: 0; left: 0; border: 0; z-index:10000;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png" alt="Fork HydeSlides on GitHub"></a>
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<!---RevealJS--->
2+
<script src="dependencies/revealjs/lib/js/head.min.js"></script>
3+
<script src="dependencies/revealjs/js/reveal.js"></script>
4+
<script>
5+
// Full list of configuration options available here:
6+
// https://github.com/hakimel/reveal.js#configuration
7+
Reveal.initialize({
8+
controls: false,
9+
progress: true,
10+
history: true,
11+
center: true,
12+
13+
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
14+
transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/none
15+
16+
// Optional libraries used to extend on reveal.js
17+
dependencies: [
18+
{ src: 'dependencies/revealjs/lib/js/classList.js', condition: function() { return !document.body.classList; } },
19+
{ src: 'dependencies/revealjs/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
20+
]
21+
});
22+
23+
// SnapSVG
24+
// Run once at startup to inject all SVGs
25+
loadAllSvg();
26+
27+
function loadAllSvg(){
28+
var els = document.getElementsByTagName("svg");
29+
30+
for(var elCount = 0; elCount < els.length; elCount++){
31+
injectSvg(els[elCount]);
32+
}
33+
}
34+
35+
function injectSvg(canvasTarget){
36+
if(canvasTarget){
37+
Snap.load(
38+
canvasTarget.getAttribute("data-path"),
39+
function (frag) {
40+
sCanvas = Snap("#" + canvasTarget.getAttribute("id"));
41+
fCanvas = Snap();
42+
sCanvas.clear();
43+
44+
//Determine if grouped build-steps present
45+
var buildStepBase = frag.select("#base");
46+
buildStepGroups = frag.selectAll("[id^=step-]"),
47+
buildStepCount = buildStepGroups.length,
48+
buildStep = 0;
49+
50+
//Setup the container canvas boundary sizing
51+
setCanvasBBox(frag, canvasTarget);
52+
53+
// Show the first build step when available
54+
// Otherwise just show entire graphic
55+
if(buildStepCount > 0){
56+
// Include the non-fragment base layout/visuals
57+
fCanvas.append(buildStepBase);
58+
// fCanvas.append(buildStepGroups[buildStep]);
59+
60+
for(; buildStep < buildStepCount; buildStep++){
61+
62+
// Supports fragment in-out transitions by
63+
// wrapping in a group and applying a second
64+
// fragment class
65+
if(buildStepGroups[buildStep].node.id.match(/in-out/)){
66+
var tG = fCanvas.g(buildStepGroups[buildStep]);
67+
buildStepGroups[buildStep].attr("class", "fragment fade-out");
68+
tG.attr("class", "fragment");
69+
fCanvas.append(tG);
70+
}
71+
else{
72+
buildStepGroups[buildStep].attr("class", "fragment");
73+
fCanvas.append(buildStepGroups[buildStep]);
74+
}
75+
}
76+
} else{
77+
//No "steps" to build out, ensure boundary guide
78+
//is not rendered
79+
frag.select("#boundary").remove();
80+
fCanvas.append(frag);
81+
}
82+
83+
sCanvas.append(fCanvas);
84+
}
85+
);
86+
}
87+
}
88+
89+
function setCanvasBBox(canvas, target){
90+
var boundary,
91+
maxWidth,
92+
maxHeight;
93+
94+
boundary = canvas.select("#boundary").select(":first-child").getBBox();
95+
maxWidth = Math.ceil(boundary.width);
96+
maxHeight = Math.ceil(boundary.height);
97+
98+
target.setAttribute("height", (((maxHeight/maxWidth)*100)+"%"));
99+
target.setAttribute("viewBox", "0 0 " + maxWidth + " " + maxHeight);
100+
return canvas;
101+
}
102+
</script>
103+
104+
<script src="dependencies/plugins/launcher/launcher.js"></script>
105+
<script src="dependencies/plugins/help/help.js"></script>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
</section>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<section>

0 commit comments

Comments
 (0)