/
index.html
169 lines (146 loc) · 5.33 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>reveal.js</title>
<link rel="stylesheet" href="dist/reset.css">
<link rel="stylesheet" href="dist/reveal.css">
<link rel="stylesheet" href="dist/theme/company.css">
<!-- Theme used for syntax highlighting of code -->
<!-- <link rel="stylesheet" href="lib/css/monokai.css"> -->
<link rel="stylesheet" href="plugin/highlight/styles/railscasts.css">
<!-- Printing and PDF exports -->
<script>
// If decktape export we need to load some other css
// Emoji-Convertion
if(window.location.search.match(/decktape/gi))
{
let link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'css/print/decktape.css';
document.getElementsByTagName('head')[0].appendChild(link);
}
</script>
<!-- Some tweaks -->
<style type="text/css">
/* Code Focus */
.reveal .line {
display: block;
}
.reveal .line.focus { background: #383838; }
</style>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1>Technical Presentation</h1>
<p>Reveal.js based presentations are cool:</p>
<ul>
<li>Markdown</li>
<li>CSS</li>
<li>Code Highlighting</li>
<li>Versioning</li>
<li>etc.</li>
</ul>
</section>
<section>
<h1>Smart Presentation</h1>
<h2>Smart Presentation</h2>
<h3>Smart Presentation</h3>
<h4>Smart Presentation</h4>
</section>
<section>
<h2>Code</h2>
<pre><code class="language-cpp stretch" data-trim>
int a = 3;
void foo(int a){
std::cout << "Hello. click!" << std::endl;
std::vector<int> v{1,2,4};
}</code></pre>
</section>
<section data-markdown>
<script type="text/template">
### Markdown
- *Carpe Diem*
- **b**) This is good.
- Inline Code `asd`
- [Links](http://coliru.stacked-crooked.com/)
- **Code**:
```cpp
void foo(int a){
std::cout << "Hello. click!" << std::endl;
std::vector<int>; v{1,2,4};
}
```
- **Editierbarer Code:**
<span class="fragment" data-code-focus="1,2" data-fragment-index="1">Focus</span>
<span class="fragment" data-code-focus="3" data-fragment-index="1" >Focus</span>
<pre class="fragment"><code class="language-cpp stretch" data-trim contenteditable=true>int a = 3;
void foo(int a){
std::cout << "Hello. click!" << 1 != 3 std::endl;
std::vector<int> v{1,2,4};
}</code></pre>
<span class="fragment">Cool.</span>
</script>
</section>
<section data-markdown>
<script type="text/template">
### Code Focus
<pre><code class="language-cpp stretch" data-trim contenteditable=true data-line-numbers="|3-4|8-10" data-fragment-index="1,2">
int a = 3;
int a;
enum class C {A, B, C} b;
std::vector<int> c; // asd
int const * & const d;
using FuncPointer = int (*)(float); // Type: Pointer to function.
using FuncReferenz = int (&)(float); // Type: Reference to function.
using Func = int(float); // Type: Function.
</code></pre>
<span class="fragment" data-fragment-index="1">This is now important</span>
Link <a href="#/3/0/0">1</a>
<span class="fragment" data-fragment-index="2">This is now important too.</span>
</script>
</section>
<section>
<h1>Disclaimer</h1>
<p class="fragment current-only">Customized with <i class="emoji">❤️</i> by Simon Spörri and Gabriel Nützi.</p>
</section>
</div>
</div>
<script src="dist/reveal.js"></script>
<script src="plugin/markdown/markdown.js"></script>
<script src="plugin/highlight/highlight.js"></script>
<script src="plugin/math/math.js"></script>
<script src="plugin/search/search.js"></script>
<script src="plugin/zoom/zoom.js"></script>
<script src="plugin/notes/notes.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
fragmentInURL: true,
mouseWheel: false,
slideNumber: "c/t",
transition: 'fade', // none/fade/slide/convex/concave/zoom
width: 960,
height: 700,
margin: 0.05,
minScale: 0.1,
maxScale: 2,
pdfSeparateFragments: false,
hideInactiveMouse: true,
hideMouseTime: 1000,
// More info https://github.com/hakimel/reveal.js#dependencies
plugins: [RevealMarkdown, RevealHighlight, RevealSearch, RevealNotes, RevealMath, RevealZoom],
});
</script>
</body>
</html>