scateu.me-jekyll-theme 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/css/main.scss +56 -0
- data/feed.xml +30 -0
- data/index.html +22 -0
- data/js/.DS_Store +0 -0
- data/js/flowchart-latest.js +991 -0
- data/js/jquery-3.1.1.min.js +4 -0
- data/js/qrcode.min.js +1 -0
- data/js/raphael-min.js +11 -0
- data/js/reveal.js/.gitignore +13 -0
- data/js/reveal.js/.travis.yml +5 -0
- data/js/reveal.js/CONTRIBUTING.md +23 -0
- data/js/reveal.js/Gruntfile.js +176 -0
- data/js/reveal.js/LICENSE +19 -0
- data/js/reveal.js/README.md +1148 -0
- data/js/reveal.js/bower.json +27 -0
- data/js/reveal.js/css/print/paper.css +202 -0
- data/js/reveal.js/css/print/pdf.css +160 -0
- data/js/reveal.js/css/reveal.css +1344 -0
- data/js/reveal.js/css/reveal.scss +1412 -0
- data/js/reveal.js/css/theme/README.md +21 -0
- data/js/reveal.js/css/theme/beige.css +291 -0
- data/js/reveal.js/css/theme/black.css +287 -0
- data/js/reveal.js/css/theme/blood.css +310 -0
- data/js/reveal.js/css/theme/league.css +293 -0
- data/js/reveal.js/css/theme/moon.css +291 -0
- data/js/reveal.js/css/theme/night.css +285 -0
- data/js/reveal.js/css/theme/serif.css +287 -0
- data/js/reveal.js/css/theme/simple.css +287 -0
- data/js/reveal.js/css/theme/sky.css +294 -0
- data/js/reveal.js/css/theme/solarized.css +291 -0
- data/js/reveal.js/css/theme/source/beige.scss +39 -0
- data/js/reveal.js/css/theme/source/black.scss +49 -0
- data/js/reveal.js/css/theme/source/blood.scss +79 -0
- data/js/reveal.js/css/theme/source/league.scss +34 -0
- data/js/reveal.js/css/theme/source/moon.scss +57 -0
- data/js/reveal.js/css/theme/source/night.scss +35 -0
- data/js/reveal.js/css/theme/source/serif.scss +35 -0
- data/js/reveal.js/css/theme/source/simple.scss +38 -0
- data/js/reveal.js/css/theme/source/sky.scss +46 -0
- data/js/reveal.js/css/theme/source/solarized.scss +63 -0
- data/js/reveal.js/css/theme/source/white.scss +49 -0
- data/js/reveal.js/css/theme/template/mixins.scss +29 -0
- data/js/reveal.js/css/theme/template/settings.scss +43 -0
- data/js/reveal.js/css/theme/template/theme.scss +346 -0
- data/js/reveal.js/css/theme/white.css +287 -0
- data/js/reveal.js/demo.html +410 -0
- data/js/reveal.js/index.html +50 -0
- data/js/reveal.js/js/reveal.js +4744 -0
- data/js/reveal.js/lib/css/zenburn.css +80 -0
- data/js/reveal.js/lib/font/league-gothic/LICENSE +2 -0
- data/js/reveal.js/lib/font/league-gothic/league-gothic.css +10 -0
- data/js/reveal.js/lib/font/league-gothic/league-gothic.eot +0 -0
- data/js/reveal.js/lib/font/league-gothic/league-gothic.ttf +0 -0
- data/js/reveal.js/lib/font/league-gothic/league-gothic.woff +0 -0
- data/js/reveal.js/lib/font/source-sans-pro/LICENSE +45 -0
- data/js/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
- data/js/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
- data/js/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
- data/js/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
- data/js/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
- data/js/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
- data/js/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
- data/js/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
- data/js/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- data/js/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
- data/js/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
- data/js/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
- data/js/reveal.js/lib/font/source-sans-pro/source-sans-pro.css +39 -0
- data/js/reveal.js/lib/js/classList.js +2 -0
- data/js/reveal.js/lib/js/head.min.js +9 -0
- data/js/reveal.js/lib/js/html5shiv.js +7 -0
- data/js/reveal.js/package.json +44 -0
- data/js/reveal.js/plugin/highlight/highlight.js +31 -0
- data/js/reveal.js/plugin/markdown/example.html +129 -0
- data/js/reveal.js/plugin/markdown/markdown.js +405 -0
- data/js/reveal.js/plugin/markdown/marked.js +6 -0
- data/js/reveal.js/plugin/math/math.js +67 -0
- data/js/reveal.js/plugin/multiplex/client.js +13 -0
- data/js/reveal.js/plugin/multiplex/index.js +64 -0
- data/js/reveal.js/plugin/multiplex/master.js +31 -0
- data/js/reveal.js/plugin/multiplex/package.json +19 -0
- data/js/reveal.js/plugin/notes-server/client.js +65 -0
- data/js/reveal.js/plugin/notes-server/index.js +69 -0
- data/js/reveal.js/plugin/notes-server/notes.html +407 -0
- data/js/reveal.js/plugin/notes/notes.html +414 -0
- data/js/reveal.js/plugin/notes/notes.js +136 -0
- data/js/reveal.js/plugin/print-pdf/print-pdf.js +48 -0
- data/js/reveal.js/plugin/search/search.js +196 -0
- data/js/reveal.js/plugin/zoom-js/zoom.js +278 -0
- data/js/reveal.js/test/examples/assets/image1.png +0 -0
- data/js/reveal.js/test/examples/assets/image2.png +0 -0
- data/js/reveal.js/test/examples/barebones.html +41 -0
- data/js/reveal.js/test/examples/embedded-media.html +49 -0
- data/js/reveal.js/test/examples/math.html +185 -0
- data/js/reveal.js/test/examples/slide-backgrounds.html +144 -0
- data/js/reveal.js/test/examples/slide-transitions.html +101 -0
- data/js/reveal.js/test/qunit-1.12.0.css +244 -0
- data/js/reveal.js/test/qunit-1.12.0.js +2212 -0
- data/js/reveal.js/test/test-markdown-element-attributes.html +134 -0
- data/js/reveal.js/test/test-markdown-element-attributes.js +46 -0
- data/js/reveal.js/test/test-markdown-slide-attributes.html +128 -0
- data/js/reveal.js/test/test-markdown-slide-attributes.js +47 -0
- data/js/reveal.js/test/test-markdown.html +52 -0
- data/js/reveal.js/test/test-markdown.js +15 -0
- data/js/reveal.js/test/test-pdf.html +83 -0
- data/js/reveal.js/test/test-pdf.js +15 -0
- data/js/reveal.js/test/test.html +86 -0
- data/js/reveal.js/test/test.js +597 -0
- data/js/sequence-diagram-min.js +8 -0
- data/js/underscore-min.js +1 -0
- metadata +111 -1
@@ -0,0 +1,134 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
|
7
|
+
<title>reveal.js - Test Markdown Element Attributes</title>
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="../css/reveal.css">
|
10
|
+
<link rel="stylesheet" href="qunit-1.12.0.css">
|
11
|
+
</head>
|
12
|
+
|
13
|
+
<body style="overflow: auto;">
|
14
|
+
|
15
|
+
<div id="qunit"></div>
|
16
|
+
<div id="qunit-fixture"></div>
|
17
|
+
|
18
|
+
<div class="reveal" style="display: none;">
|
19
|
+
|
20
|
+
<div class="slides">
|
21
|
+
|
22
|
+
<!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section> -->
|
23
|
+
|
24
|
+
<!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes -->
|
25
|
+
<section data-markdown data-separator="^\n---\n$" data-separator-vertical="^\n--\n$" data-element-attributes="{_\s*?([^}]+?)}">>
|
26
|
+
<script type="text/template">
|
27
|
+
## Slide 1.1
|
28
|
+
<!-- {_class="fragment fade-out" data-fragment-index="1"} -->
|
29
|
+
|
30
|
+
--
|
31
|
+
|
32
|
+
## Slide 1.2
|
33
|
+
<!-- {_class="fragment shrink"} -->
|
34
|
+
|
35
|
+
Paragraph 1
|
36
|
+
<!-- {_class="fragment grow"} -->
|
37
|
+
|
38
|
+
Paragraph 2
|
39
|
+
<!-- {_class="fragment grow"} -->
|
40
|
+
|
41
|
+
- list item 1 <!-- {_class="fragment grow"} -->
|
42
|
+
- list item 2 <!-- {_class="fragment grow"} -->
|
43
|
+
- list item 3 <!-- {_class="fragment grow"} -->
|
44
|
+
|
45
|
+
|
46
|
+
---
|
47
|
+
|
48
|
+
## Slide 2
|
49
|
+
|
50
|
+
|
51
|
+
Paragraph 1.2
|
52
|
+
multi-line <!-- {_class="fragment highlight-red"} -->
|
53
|
+
|
54
|
+
Paragraph 2.2 <!-- {_class="fragment highlight-red"} -->
|
55
|
+
|
56
|
+
Paragraph 2.3 <!-- {_class="fragment highlight-red"} -->
|
57
|
+
|
58
|
+
Paragraph 2.4 <!-- {_class="fragment highlight-red"} -->
|
59
|
+
|
60
|
+
- list item 1 <!-- {_class="fragment highlight-green"} -->
|
61
|
+
- list item 2<!-- {_class="fragment highlight-green"} -->
|
62
|
+
- list item 3<!-- {_class="fragment highlight-green"} -->
|
63
|
+
- list item 4
|
64
|
+
<!-- {_class="fragment highlight-green"} -->
|
65
|
+
- list item 5<!-- {_class="fragment highlight-green"} -->
|
66
|
+
|
67
|
+
Test
|
68
|
+
|
69
|
+
![Example Picture](examples/assets/image2.png)
|
70
|
+
<!-- {_class="reveal stretch"} -->
|
71
|
+
|
72
|
+
</script>
|
73
|
+
</section>
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<section data-markdown data-separator="^\n\n\n"
|
78
|
+
data-separator-vertical="^\n\n"
|
79
|
+
data-separator-notes="^Note:"
|
80
|
+
data-charset="utf-8">
|
81
|
+
<script type="text/template">
|
82
|
+
# Test attributes in Markdown with default separator
|
83
|
+
## Slide 1 Def <!-- .element: class="fragment highlight-red" data-fragment-index="1" -->
|
84
|
+
|
85
|
+
|
86
|
+
## Slide 2 Def
|
87
|
+
<!-- .element: class="fragment highlight-red" -->
|
88
|
+
|
89
|
+
</script>
|
90
|
+
</section>
|
91
|
+
|
92
|
+
<section data-markdown>
|
93
|
+
<script type="text/template">
|
94
|
+
## Hello world
|
95
|
+
A paragraph
|
96
|
+
<!-- .element: class="fragment highlight-blue" -->
|
97
|
+
</script>
|
98
|
+
</section>
|
99
|
+
|
100
|
+
<section data-markdown>
|
101
|
+
<script type="text/template">
|
102
|
+
## Hello world
|
103
|
+
|
104
|
+
Multiple
|
105
|
+
Line
|
106
|
+
<!-- .element: class="fragment highlight-blue" -->
|
107
|
+
</script>
|
108
|
+
</section>
|
109
|
+
|
110
|
+
<section data-markdown>
|
111
|
+
<script type="text/template">
|
112
|
+
## Hello world
|
113
|
+
|
114
|
+
Test<!-- .element: class="fragment highlight-blue" -->
|
115
|
+
|
116
|
+
More Test
|
117
|
+
</script>
|
118
|
+
</section>
|
119
|
+
|
120
|
+
|
121
|
+
</div>
|
122
|
+
|
123
|
+
</div>
|
124
|
+
|
125
|
+
<script src="../lib/js/head.min.js"></script>
|
126
|
+
<script src="../js/reveal.js"></script>
|
127
|
+
<script src="../plugin/markdown/marked.js"></script>
|
128
|
+
<script src="../plugin/markdown/markdown.js"></script>
|
129
|
+
<script src="qunit-1.12.0.js"></script>
|
130
|
+
|
131
|
+
<script src="test-markdown-element-attributes.js"></script>
|
132
|
+
|
133
|
+
</body>
|
134
|
+
</html>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Reveal.addEventListener( 'ready', function() {
|
4
|
+
|
5
|
+
QUnit.module( 'Markdown' );
|
6
|
+
|
7
|
+
test( 'Vertical separator', function() {
|
8
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 4, 'found four slides' );
|
9
|
+
});
|
10
|
+
|
11
|
+
|
12
|
+
test( 'Attributes on element header in vertical slides', function() {
|
13
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section>section h2.fragment.fade-out' ).length, 1, 'found one vertical slide with class fragment.fade-out on header' );
|
14
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section>section h2.fragment.shrink' ).length, 1, 'found one vertical slide with class fragment.shrink on header' );
|
15
|
+
});
|
16
|
+
|
17
|
+
test( 'Attributes on element paragraphs in vertical slides', function() {
|
18
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section>section p.fragment.grow' ).length, 2, 'found a vertical slide with two paragraphs with class fragment.grow' );
|
19
|
+
});
|
20
|
+
|
21
|
+
test( 'Attributes on element list items in vertical slides', function() {
|
22
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section>section li.fragment.grow' ).length, 3, 'found a vertical slide with three list items with class fragment.grow' );
|
23
|
+
});
|
24
|
+
|
25
|
+
test( 'Attributes on element paragraphs in horizontal slides', function() {
|
26
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section p.fragment.highlight-red' ).length, 4, 'found a horizontal slide with four paragraphs with class fragment.grow' );
|
27
|
+
});
|
28
|
+
test( 'Attributes on element list items in horizontal slides', function() {
|
29
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section li.fragment.highlight-green' ).length, 5, 'found a horizontal slide with five list items with class fragment.roll-in' );
|
30
|
+
});
|
31
|
+
test( 'Attributes on element list items in horizontal slides', function() {
|
32
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section img.reveal.stretch' ).length, 1, 'found a horizontal slide with stretched image, class img.reveal.stretch' );
|
33
|
+
});
|
34
|
+
|
35
|
+
test( 'Attributes on elements in vertical slides with default element attribute separator', function() {
|
36
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section h2.fragment.highlight-red' ).length, 2, 'found two h2 titles with fragment highlight-red in vertical slides with default element attribute separator' );
|
37
|
+
});
|
38
|
+
|
39
|
+
test( 'Attributes on elements in single slides with default element attribute separator', function() {
|
40
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section p.fragment.highlight-blue' ).length, 3, 'found three elements with fragment highlight-blue in single slide with default element attribute separator' );
|
41
|
+
});
|
42
|
+
|
43
|
+
} );
|
44
|
+
|
45
|
+
Reveal.initialize();
|
46
|
+
|
@@ -0,0 +1,128 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
|
7
|
+
<title>reveal.js - Test Markdown Attributes</title>
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="../css/reveal.css">
|
10
|
+
<link rel="stylesheet" href="qunit-1.12.0.css">
|
11
|
+
</head>
|
12
|
+
|
13
|
+
<body style="overflow: auto;">
|
14
|
+
|
15
|
+
<div id="qunit"></div>
|
16
|
+
<div id="qunit-fixture"></div>
|
17
|
+
|
18
|
+
<div class="reveal" style="display: none;">
|
19
|
+
|
20
|
+
<div class="slides">
|
21
|
+
|
22
|
+
<!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section> -->
|
23
|
+
|
24
|
+
<!-- Slides are separated by three lines, vertical slides by two lines, attributes are one any line starting with (spaces and) two dashes -->
|
25
|
+
<section data-markdown data-separator="^\n\n\n"
|
26
|
+
data-separator-vertical="^\n\n"
|
27
|
+
data-separator-notes="^Note:"
|
28
|
+
data-attributes="--\s(.*?)$"
|
29
|
+
data-charset="utf-8">
|
30
|
+
<script type="text/template">
|
31
|
+
# Test attributes in Markdown
|
32
|
+
## Slide 1
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
## Slide 2
|
37
|
+
<!-- -- id="slide2" data-transition="zoom" data-background="#A0C66B" -->
|
38
|
+
|
39
|
+
|
40
|
+
## Slide 2.1
|
41
|
+
<!-- -- data-background="#ff0000" data-transition="fade" -->
|
42
|
+
|
43
|
+
|
44
|
+
## Slide 2.2
|
45
|
+
[Link to Slide2](#/slide2)
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
## Slide 3
|
50
|
+
<!-- -- data-transition="zoom" data-background="#C6916B" -->
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
## Slide 4
|
55
|
+
</script>
|
56
|
+
</section>
|
57
|
+
|
58
|
+
<section data-markdown data-separator="^\n\n\n"
|
59
|
+
data-separator-vertical="^\n\n"
|
60
|
+
data-separator-notes="^Note:"
|
61
|
+
data-charset="utf-8">
|
62
|
+
<script type="text/template">
|
63
|
+
# Test attributes in Markdown with default separator
|
64
|
+
## Slide 1 Def
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
## Slide 2 Def
|
69
|
+
<!-- .slide: id="slide2def" data-transition="concave" data-background="#A7C66B" -->
|
70
|
+
|
71
|
+
|
72
|
+
## Slide 2.1 Def
|
73
|
+
<!-- .slide: data-background="#f70000" data-transition="page" -->
|
74
|
+
|
75
|
+
|
76
|
+
## Slide 2.2 Def
|
77
|
+
[Link to Slide2](#/slide2def)
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
## Slide 3 Def
|
82
|
+
<!-- .slide: data-transition="concave" data-background="#C7916B" -->
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
## Slide 4
|
87
|
+
</script>
|
88
|
+
</section>
|
89
|
+
|
90
|
+
<section data-markdown>
|
91
|
+
<script type="text/template">
|
92
|
+
<!-- .slide: data-background="#ff0000" -->
|
93
|
+
## Hello world
|
94
|
+
</script>
|
95
|
+
</section>
|
96
|
+
|
97
|
+
<section data-markdown>
|
98
|
+
<script type="text/template">
|
99
|
+
## Hello world
|
100
|
+
<!-- .slide: data-background="#ff0000" -->
|
101
|
+
</script>
|
102
|
+
</section>
|
103
|
+
|
104
|
+
<section data-markdown>
|
105
|
+
<script type="text/template">
|
106
|
+
## Hello world
|
107
|
+
|
108
|
+
Test
|
109
|
+
<!-- .slide: data-background="#ff0000" -->
|
110
|
+
|
111
|
+
More Test
|
112
|
+
</script>
|
113
|
+
</section>
|
114
|
+
|
115
|
+
</div>
|
116
|
+
|
117
|
+
</div>
|
118
|
+
|
119
|
+
<script src="../lib/js/head.min.js"></script>
|
120
|
+
<script src="../js/reveal.js"></script>
|
121
|
+
<script src="../plugin/markdown/marked.js"></script>
|
122
|
+
<script src="../plugin/markdown/markdown.js"></script>
|
123
|
+
<script src="qunit-1.12.0.js"></script>
|
124
|
+
|
125
|
+
<script src="test-markdown-slide-attributes.js"></script>
|
126
|
+
|
127
|
+
</body>
|
128
|
+
</html>
|
@@ -0,0 +1,47 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Reveal.addEventListener( 'ready', function() {
|
4
|
+
|
5
|
+
QUnit.module( 'Markdown' );
|
6
|
+
|
7
|
+
test( 'Vertical separator', function() {
|
8
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 6, 'found six vertical slides' );
|
9
|
+
});
|
10
|
+
|
11
|
+
test( 'Id on slide', function() {
|
12
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section#slide2' ).length, 1, 'found one slide with id slide2' );
|
13
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section a[href="#/slide2"]' ).length, 1, 'found one slide with a link to slide2' );
|
14
|
+
});
|
15
|
+
|
16
|
+
test( 'data-background attributes', function() {
|
17
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#A0C66B"]' ).length, 1, 'found one vertical slide with data-background="#A0C66B"' );
|
18
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#ff0000"]' ).length, 1, 'found one vertical slide with data-background="#ff0000"' );
|
19
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#C6916B"]' ).length, 1, 'found one slide with data-background="#C6916B"' );
|
20
|
+
});
|
21
|
+
|
22
|
+
test( 'data-transition attributes', function() {
|
23
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="zoom"]' ).length, 1, 'found one vertical slide with data-transition="zoom"' );
|
24
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="fade"]' ).length, 1, 'found one vertical slide with data-transition="fade"' );
|
25
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section [data-transition="zoom"]' ).length, 1, 'found one slide with data-transition="zoom"' );
|
26
|
+
});
|
27
|
+
|
28
|
+
test( 'data-background attributes with default separator', function() {
|
29
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#A7C66B"]' ).length, 1, 'found one vertical slide with data-background="#A0C66B"' );
|
30
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#f70000"]' ).length, 1, 'found one vertical slide with data-background="#ff0000"' );
|
31
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#C7916B"]' ).length, 1, 'found one slide with data-background="#C6916B"' );
|
32
|
+
});
|
33
|
+
|
34
|
+
test( 'data-transition attributes with default separator', function() {
|
35
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="concave"]' ).length, 1, 'found one vertical slide with data-transition="zoom"' );
|
36
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="page"]' ).length, 1, 'found one vertical slide with data-transition="fade"' );
|
37
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section [data-transition="concave"]' ).length, 1, 'found one slide with data-transition="zoom"' );
|
38
|
+
});
|
39
|
+
|
40
|
+
test( 'data-transition attributes with inline content', function() {
|
41
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#ff0000"]' ).length, 3, 'found three horizontal slides with data-background="#ff0000"' );
|
42
|
+
});
|
43
|
+
|
44
|
+
} );
|
45
|
+
|
46
|
+
Reveal.initialize();
|
47
|
+
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
|
7
|
+
<title>reveal.js - Test Markdown</title>
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="../css/reveal.css">
|
10
|
+
<link rel="stylesheet" href="qunit-1.12.0.css">
|
11
|
+
</head>
|
12
|
+
|
13
|
+
<body style="overflow: auto;">
|
14
|
+
|
15
|
+
<div id="qunit"></div>
|
16
|
+
<div id="qunit-fixture"></div>
|
17
|
+
|
18
|
+
<div class="reveal" style="display: none;">
|
19
|
+
|
20
|
+
<div class="slides">
|
21
|
+
|
22
|
+
<!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section> -->
|
23
|
+
|
24
|
+
<!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes -->
|
25
|
+
<section data-markdown data-separator="^\n---\n$" data-separator-vertical="^\n--\n$">
|
26
|
+
<script type="text/template">
|
27
|
+
## Slide 1.1
|
28
|
+
|
29
|
+
--
|
30
|
+
|
31
|
+
## Slide 1.2
|
32
|
+
|
33
|
+
---
|
34
|
+
|
35
|
+
## Slide 2
|
36
|
+
</script>
|
37
|
+
</section>
|
38
|
+
|
39
|
+
</div>
|
40
|
+
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<script src="../lib/js/head.min.js"></script>
|
44
|
+
<script src="../js/reveal.js"></script>
|
45
|
+
<script src="../plugin/markdown/marked.js"></script>
|
46
|
+
<script src="../plugin/markdown/markdown.js"></script>
|
47
|
+
<script src="qunit-1.12.0.js"></script>
|
48
|
+
|
49
|
+
<script src="test-markdown.js"></script>
|
50
|
+
|
51
|
+
</body>
|
52
|
+
</html>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Reveal.addEventListener( 'ready', function() {
|
4
|
+
|
5
|
+
QUnit.module( 'Markdown' );
|
6
|
+
|
7
|
+
test( 'Vertical separator', function() {
|
8
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' );
|
9
|
+
});
|
10
|
+
|
11
|
+
|
12
|
+
} );
|
13
|
+
|
14
|
+
Reveal.initialize();
|
15
|
+
|
@@ -0,0 +1,83 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
|
7
|
+
<title>reveal.js - Test PDF exports</title>
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="../css/reveal.css">
|
10
|
+
<link rel="stylesheet" href="../css/print/pdf.css">
|
11
|
+
<link rel="stylesheet" href="qunit-1.12.0.css">
|
12
|
+
</head>
|
13
|
+
|
14
|
+
<body style="overflow: auto;">
|
15
|
+
|
16
|
+
<div id="qunit"></div>
|
17
|
+
<div id="qunit-fixture"></div>
|
18
|
+
|
19
|
+
<div class="reveal" style="display: none;">
|
20
|
+
|
21
|
+
<div class="slides">
|
22
|
+
|
23
|
+
<section>
|
24
|
+
<h1>1</h1>
|
25
|
+
<img data-src="fake-url.png">
|
26
|
+
</section>
|
27
|
+
|
28
|
+
<section>
|
29
|
+
<section>
|
30
|
+
<h1>2.1</h1>
|
31
|
+
</section>
|
32
|
+
<section>
|
33
|
+
<h1>2.2</h1>
|
34
|
+
</section>
|
35
|
+
<section>
|
36
|
+
<h1>2.3</h1>
|
37
|
+
</section>
|
38
|
+
</section>
|
39
|
+
|
40
|
+
<section id="fragment-slides">
|
41
|
+
<section>
|
42
|
+
<h1>3.1</h1>
|
43
|
+
<ul>
|
44
|
+
<li class="fragment">4.1</li>
|
45
|
+
<li class="fragment">4.2</li>
|
46
|
+
<li class="fragment">4.3</li>
|
47
|
+
</ul>
|
48
|
+
</section>
|
49
|
+
|
50
|
+
<section>
|
51
|
+
<h1>3.2</h1>
|
52
|
+
<ul>
|
53
|
+
<li class="fragment" data-fragment-index="0">4.1</li>
|
54
|
+
<li class="fragment" data-fragment-index="0">4.2</li>
|
55
|
+
</ul>
|
56
|
+
</section>
|
57
|
+
|
58
|
+
<section>
|
59
|
+
<h1>3.3</h1>
|
60
|
+
<ul>
|
61
|
+
<li class="fragment" data-fragment-index="1">3.3.1</li>
|
62
|
+
<li class="fragment" data-fragment-index="4">3.3.2</li>
|
63
|
+
<li class="fragment" data-fragment-index="4">3.3.3</li>
|
64
|
+
</ul>
|
65
|
+
</section>
|
66
|
+
</section>
|
67
|
+
|
68
|
+
<section>
|
69
|
+
<h1>4</h1>
|
70
|
+
</section>
|
71
|
+
|
72
|
+
</div>
|
73
|
+
|
74
|
+
</div>
|
75
|
+
|
76
|
+
<script src="../lib/js/head.min.js"></script>
|
77
|
+
<script src="../js/reveal.js"></script>
|
78
|
+
<script src="qunit-1.12.0.js"></script>
|
79
|
+
|
80
|
+
<script src="test-pdf.js"></script>
|
81
|
+
|
82
|
+
</body>
|
83
|
+
</html>
|