-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
171 lines (146 loc) · 6.76 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Fania presents...</title>
<meta name="author" content="Fania Raczinski and Dave Everitt">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/reveal.css">
<!-- <link rel="stylesheet" href="plugin/editor/style.css"> -->
<link rel="stylesheet" href="css/theme/moon.css">
<link rel="stylesheet" href="lib/css/dracula.css">
<link rel="stylesheet" href="css/deveritt-reveal.css">
<!-- Printing and PDF exports -->
<script>
let link = document.createElement('link');
link.rel = 'stylesheet';
link.href = location.search.match(/print-pdf/gi) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.querySelector('head').appendChild(link);
// syntax highlighting
if(location.search.match(/print-pdf/gi)) {
let link2 = document.createElement('link');
link2.rel = 'stylesheet';
link2.href = 'lib/css/github.css';
document.querySelector('head').appendChild(link2);
}
</script>
<!-- <script src="plugin/editor/src-noconflict/ace.js"></script> -->
<!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> -->
<!-- <script src="plugin/editor/revealeditor.js"></script> -->
</head>
<body>
<!-- <button class="btn">Open Editor</button> -->
<div class="reveal">
<div class="slides">
<!-- external slides will be added here by javascript via url params -->
<section>
<h2>Fania presents</h2>
<p><code>fania.github.io/presents</code> + <br>
<code>?USER_REPO_FILE</code></p>
<p>Demo: <a href="https://fania.github.io/presents?fania_presents_demo">?fania_presents_demo</a></p>
<sub>made with love and <a href="https://revealjs.com">reveal</a></sub>
</section>
<section>
<section>
<h2>How to use</h2>
<dl>
<dt><strong>?USER_REPO_FILE</strong></dt>
<dd><code>USER</code> = GitHub username</dd>
<dd><code>REPO</code> = GitHub repository name</dd>
<dd><code>FILE</code> = filename within above repo</dd>
<dt><strong>subfolders</strong></dt>
<dd>specify as <code>FOLDER/FILE</code><br>
e.g. <a href="https://fania.github.io/presents?daveeveritt_tech3015_labs/lab-03">?daveeveritt_tech3015_labs/lab-03</a></dd>
</dl>
</section>
<section>
<h2>How to use <sup>2</sup></h2>
<dl>
<dt><strong>fullscreen slides</strong></dt>
<dd>press <code>F</code> to enter & <code>ESC</code> to exit, or</dd>
<dd>press <code>F11</code> to enter & <code>F11</code> to exit</dd>
<dt><strong>slide overview</strong></dt>
<dd>press <code>O</code> or <code>ESC</code></dd>
<dt><strong>bookmarks</strong></dt>
<dd>add <code>#/NUMBER</code> to end of url <br>
e.g. <a href="https://fania.github.io/presents?fania_presents_demo#/1">?fania_presents_demo#/1</a></dd>
</dl>
</section>
<section>
<h2>How to use <sup>3</sup></h2>
<dl>
<dt><strong>images</strong></dt>
<dd>prepare source markdown with <strong>absolute urls</strong><br>
i.e. <a href="https://raw.githubusercontent.com/Fania/presents/master/imgs/technokitten.jpg">absolute kitten</a> instead of <a href="imgs/technokitten.jpg">relative kitten</a></dd>
<img style="height:200px;width:100%;object-fit:cover;" src="https://fania.github.io/presents/imgs/technokitten.jpg">
</dl>
</section>
</section>
<section>
<h2>Mix Presentations</h2>
<p>create a <strong>master markdown file</strong> that contains:</p>
<ul>
<li><code># Contents</code> on the first line (<em>verbatim</em>)</li>
<li><code>user repo file</code> for each file on a new line after</li>
</ul>
<pre><code>
# Contents
fania presents demo
daveeveritt tech3015 readme
</code></pre>
<p>e.g. <a href="https://fania.github.io/presents?fania_presents_multiple">?fania_presents_multiple</a></p>
</section>
<section>
<h2>Printing</h2>
<dl>
<dt><strong>print as text</strong></dt>
<dd>right click and select <code>Print...</code></dd>
<dd>or press <code>Ctrl + P</code></dd>
<dt><strong>print as slides</strong></dt>
<dd>add <code>_print-pdf</code> to end of url <br>(e.g. <a href="https://fania.github.io/presents?fania_presents_demo_print-pdf">?fania_presents_demo_print-pdf</a>)
<br>(e.g. <a href="https://fania.github.io/presents?fania_presents_multiple_mix_print-pdf">?fania_presents_multiple_mix_print-pdf</a>)</dd>
<dd>and then same as above</dd>
</dl>
</section>
</div>
</div>
<script src="js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
function delayed_init() {
Reveal.initialize({
history: true,
controls: true,
progress: true,
center: true,
touch: true,
keyboard: true,
// maxScale: 0.82,
previewLinks: false,
transition: 'slide', // none/fade/slide/convex/concave/zoom
markdown: {
smartypants: true
},
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/notes/notes.js', async: true }
// { src: 'plugin/menu/menu.js'}
]
});
}
// console.log(Reveal.getConfig());
</script>
<script src="js/mix.js"></script>
<!-- <script>$(".btn").RevealEditor();</script> -->
</body>
</html>