-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
227 lines (195 loc) · 7.22 KB
/
index.html
File metadata and controls
227 lines (195 loc) · 7.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Codility Presentation</title>
<meta name="description" content="Codility presentation template">
<meta name="author" content="Hakim El Hattab">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/codility.css" id="theme">
<!-- Code syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match(/print-pdf/gi) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName('head')[0].appendChild(link);
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<!-- Visit http://lab.hakim.se/reveal-js/ for examples of slides -->
<div class="slides">
<section>
<h1>Title</h1>
<h3>Title</h3>
<p>
<small>Created by Krokodyl / <a href="http://codility.com">Codility</a></small>
</p>
</section>
<section data-markdown>
<script type="text/template">
## Markdown support
Write content using inline or external Markdown.
Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
```
<section data-markdown>
## Markdown support
Write content using inline or external Markdown.
Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
</section>
```
</script>
</section>
<section class="color-group-first">
<section class="c-title-slide">
<h2>First section title slide</h2>
</section>
<section>
<h2 class="color-codility-first">First section content slide</h2>
</section>
</section>
<section class="color-group-second">
<section class="c-title-slide">
<h2>Second section title slide</h2>
</section>
<section>
<h2>Second section content slide</h2>
</section>
</section>
<section class="color-group-third">
<section class="c-title-slide">
<h2>Third section title slide</h2>
</section>
<section>
<h2 class="color-codility-third">Third section content slide</h2>
</section>
</section>
<section class="color-group-fourth">
<section class="c-title-slide">
<h2>Fourth section title slide</h2>
</section>
<section>
<h2>Fourth section content slide</h2>
</section>
</section>
<section class="color-group-fifth">
<section class="c-title-slide">
<h2>Fourth section title slide</h2>
</section>
<section>
<h2>Fourth section content slide</h2>
</section>
</section>
<section data-background="https://farm1.staticflickr.com/544/19758248349_6d1442ecdd_b.jpg">
<h2>Thank you</h2>
<h3>BTW, We are hiring!</h3>
<p>
Interested? Visit <a href="https://codility.com/jobs/">codility.com/jobs</a>
</p>
</section>
</div>
<a class="c-codility-logo" href="http://codility.com"></a>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'zoom', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [
{
src: 'lib/js/classList.js', condition: function () {
return !document.body.classList;
}
},
{
src: 'plugin/markdown/marked.js', condition: function () {
return !!document.querySelector('[data-markdown]');
}
},
{
src: 'plugin/markdown/markdown.js', condition: function () {
return !!document.querySelector('[data-markdown]');
}
},
{
src: 'plugin/highlight/highlight.js', async: true, callback: function () {
hljs.initHighlightingOnLoad();
}
},
{src: 'plugin/zoom-js/zoom.js', async: true},
{src: 'plugin/notes/notes.js', async: true}
]
});
var COLORS = ['#07A2F4','#87EE87', '#FFEB40', '#FF644C', '#FF689C'];
// TODO: find a non-complicated way to the same in CSS?
Reveal.addEventListener( 'slidechanged', function( event ) {
// event.previousSlide, event.currentSlide, event.indexh, event.indexv
var $ = document.querySelectorAll.bind(document);
var slide = event.currentSlide;
// Add the .invert class to .reveal for title slides
var classList = $('.reveal')[0].classList;
if (slide.classList.contains('c-title-slide')) {
classList.add('invert');
} else {
classList.remove('invert');
}
function getColor(classList) {
if (classList.contains('color-group-first')) {
return COLORS[0]
}
if (classList.contains('color-group-second')) {
return COLORS[1]
}
if (classList.contains('color-group-third')) {
return COLORS[2];
}
if (classList.contains('color-group-fourth')) {
return COLORS[3];
}
if (classList.contains('color-group-fifth')) {
return COLORS[4];
}
}
// Handle section colors on elements outside of the slide
// (yeah, setTimeout - see https://github.com/hakimel/reveal.js/issues/1254)
setTimeout(function () {
var color = getColor(slide.classList) || getColor(slide.parentElement.classList);
$('.progress span')[0].style.background = color || '';
var controls = $('.controls button'),
el;
for (var i = 0; i < controls.length; i += 1) {
el = controls[i];
var borderColor = (el.classList.contains('enabled') && color) ? color : '';
if (el.classList.contains('navigate-left')) {
el.style['border-right-color'] = borderColor;
} else if (el.classList.contains('navigate-right')) {
el.style['border-left-color'] = borderColor;
} else if (el.classList.contains('navigate-up')) {
el.style['border-bottom-color'] = borderColor;
} else if (el.classList.contains('navigate-down')) {
el.style['border-top-color'] = borderColor;
}
}
},0);
} );
</script>
</body>
</html>