reveal-ck 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitmodules +3 -0
- data/.rspec +2 -0
- data/.rvmrc +16 -0
- data/.travis.yml +4 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +52 -0
- data/LICENSE +20 -0
- data/README.md +103 -0
- data/Rakefile +16 -0
- data/VERSION +1 -0
- data/bin/reveal-ck +46 -0
- data/features/data/images/ruby100.png +0 -0
- data/features/generate.feature +63 -0
- data/features/help.feature +18 -0
- data/features/step_definitions/file_management_steps.rb +3 -0
- data/features/support/env.rb +15 -0
- data/features/support/file_management.rb +16 -0
- data/lib/reveal-ck.rb +4 -0
- data/lib/reveal-ck/file_slicer.rb +23 -0
- data/lib/reveal-ck/file_splicer.rb +39 -0
- data/lib/reveal-ck/haml_processor.rb +24 -0
- data/lib/reveal-ck/version.rb +4 -0
- data/rakelib/cucumber.rake +2 -0
- data/rakelib/jeweler.rake +12 -0
- data/rakelib/presentation.rake +40 -0
- data/rakelib/reveal.rake +15 -0
- data/rakelib/rspec.rake +5 -0
- data/reveal-ck.gemspec +152 -0
- data/reveal.js/LICENSE +19 -0
- data/reveal.js/README.md +374 -0
- data/reveal.js/css/print/paper.css +176 -0
- data/reveal.js/css/print/pdf.css +160 -0
- data/reveal.js/css/reveal.css +1312 -0
- data/reveal.js/css/reveal.min.css +7 -0
- data/reveal.js/css/shaders/tile-flip.fs +64 -0
- data/reveal.js/css/shaders/tile-flip.vs +141 -0
- data/reveal.js/css/theme/README.md +25 -0
- data/reveal.js/css/theme/beige.css +163 -0
- data/reveal.js/css/theme/default.css +163 -0
- data/reveal.js/css/theme/night.css +150 -0
- data/reveal.js/css/theme/serif.css +150 -0
- data/reveal.js/css/theme/simple.css +152 -0
- data/reveal.js/css/theme/sky.css +156 -0
- data/reveal.js/css/theme/source/beige.scss +50 -0
- data/reveal.js/css/theme/source/default.scss +42 -0
- data/reveal.js/css/theme/source/night.scss +35 -0
- data/reveal.js/css/theme/source/serif.scss +33 -0
- data/reveal.js/css/theme/source/simple.scss +38 -0
- data/reveal.js/css/theme/source/sky.scss +41 -0
- data/reveal.js/css/theme/template/mixins.scss +29 -0
- data/reveal.js/css/theme/template/settings.scss +33 -0
- data/reveal.js/css/theme/template/theme.scss +163 -0
- data/reveal.js/grunt.js +84 -0
- data/reveal.js/index.html +375 -0
- data/reveal.js/js/reveal.js +1796 -0
- data/reveal.js/js/reveal.min.js +8 -0
- data/reveal.js/lib/css/zenburn.css +115 -0
- data/reveal.js/lib/font/league_gothic-webfont.eot +0 -0
- data/reveal.js/lib/font/league_gothic-webfont.svg +230 -0
- data/reveal.js/lib/font/league_gothic-webfont.ttf +0 -0
- data/reveal.js/lib/font/league_gothic-webfont.woff +0 -0
- data/reveal.js/lib/font/league_gothic_license +2 -0
- data/reveal.js/lib/js/classList.js +2 -0
- data/reveal.js/lib/js/head.min.js +8 -0
- data/reveal.js/lib/js/html5shiv.js +7 -0
- data/reveal.js/package.json +31 -0
- data/reveal.js/plugin/highlight/highlight.js +9 -0
- data/reveal.js/plugin/markdown/markdown.js +37 -0
- data/reveal.js/plugin/markdown/showdown.js +62 -0
- data/reveal.js/plugin/notes-server/client.js +57 -0
- data/reveal.js/plugin/notes-server/index.js +58 -0
- data/reveal.js/plugin/notes-server/notes.html +139 -0
- data/reveal.js/plugin/notes/notes.html +164 -0
- data/reveal.js/plugin/notes/notes.js +98 -0
- data/reveal.js/plugin/postmessage/example.html +39 -0
- data/reveal.js/plugin/postmessage/postmessage.js +42 -0
- data/reveal.js/plugin/print-pdf/print-pdf.js +39 -0
- data/reveal.js/plugin/remotes/remotes.js +30 -0
- data/reveal.js/plugin/zoom-js/zoom.js +251 -0
- data/spec/data/haml/basic.haml +7 -0
- data/spec/data/html/converted_basic_haml.html +10 -0
- data/spec/data/html/reveal-js-index.html +375 -0
- data/spec/data/slicer/after_remove +6 -0
- data/spec/data/slicer/before_remove +10 -0
- data/spec/data/splicer/abcd +4 -0
- data/spec/data/splicer/after_insert +14 -0
- data/spec/data/splicer/before_insert +10 -0
- data/spec/lib/reveal-ck/file_slicer_spec.rb +42 -0
- data/spec/lib/reveal-ck/file_splicer_spec.rb +41 -0
- data/spec/lib/reveal-ck/haml_processor_spec.rb +38 -0
- data/spec/spec_helper.rb +27 -0
- metadata +271 -0
@@ -0,0 +1,163 @@
|
|
1
|
+
// Base theme template for reveal.js
|
2
|
+
|
3
|
+
/*********************************************
|
4
|
+
* GLOBAL STYLES
|
5
|
+
*********************************************/
|
6
|
+
|
7
|
+
body {
|
8
|
+
@include bodyBackground();
|
9
|
+
background-color: $backgroundColor;
|
10
|
+
}
|
11
|
+
|
12
|
+
.reveal {
|
13
|
+
font-family: $mainFont;
|
14
|
+
font-size: $mainFontSize;
|
15
|
+
font-weight: 200;
|
16
|
+
letter-spacing: -0.02em;
|
17
|
+
color: $mainColor;
|
18
|
+
}
|
19
|
+
|
20
|
+
::selection {
|
21
|
+
color: $selectionColor;
|
22
|
+
background: $selectionBackgroundColor;
|
23
|
+
text-shadow: none;
|
24
|
+
}
|
25
|
+
|
26
|
+
/*********************************************
|
27
|
+
* HEADERS
|
28
|
+
*********************************************/
|
29
|
+
|
30
|
+
.reveal h1,
|
31
|
+
.reveal h2,
|
32
|
+
.reveal h3,
|
33
|
+
.reveal h4,
|
34
|
+
.reveal h5,
|
35
|
+
.reveal h6 {
|
36
|
+
margin: 0 0 20px 0;
|
37
|
+
color: $headingColor;
|
38
|
+
|
39
|
+
font-family: $headingFont;
|
40
|
+
line-height: $headingLineHeight;
|
41
|
+
letter-spacing: $headingLetterSpacing;
|
42
|
+
|
43
|
+
text-transform: $headingTextTransform;
|
44
|
+
text-shadow: $headingTextShadow;
|
45
|
+
}
|
46
|
+
|
47
|
+
.reveal h1 {
|
48
|
+
text-shadow: $heading1TextShadow;
|
49
|
+
}
|
50
|
+
|
51
|
+
|
52
|
+
/*********************************************
|
53
|
+
* LINKS
|
54
|
+
*********************************************/
|
55
|
+
|
56
|
+
.reveal a:not(.image) {
|
57
|
+
color: $linkColor;
|
58
|
+
text-decoration: none;
|
59
|
+
|
60
|
+
-webkit-transition: color .15s ease;
|
61
|
+
-moz-transition: color .15s ease;
|
62
|
+
-ms-transition: color .15s ease;
|
63
|
+
-o-transition: color .15s ease;
|
64
|
+
transition: color .15s ease;
|
65
|
+
}
|
66
|
+
.reveal a:not(.image):hover {
|
67
|
+
color: $linkColorHover;
|
68
|
+
|
69
|
+
text-shadow: none;
|
70
|
+
border: none;
|
71
|
+
}
|
72
|
+
|
73
|
+
.reveal .roll span:after {
|
74
|
+
color: #fff;
|
75
|
+
background: darken( $linkColor, 15% );
|
76
|
+
}
|
77
|
+
|
78
|
+
|
79
|
+
/*********************************************
|
80
|
+
* IMAGES
|
81
|
+
*********************************************/
|
82
|
+
|
83
|
+
.reveal section img {
|
84
|
+
margin: 15px 0px;
|
85
|
+
background: rgba(255,255,255,0.12);
|
86
|
+
border: 4px solid $mainColor;
|
87
|
+
|
88
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
|
89
|
+
|
90
|
+
-webkit-transition: all .2s linear;
|
91
|
+
-moz-transition: all .2s linear;
|
92
|
+
-ms-transition: all .2s linear;
|
93
|
+
-o-transition: all .2s linear;
|
94
|
+
transition: all .2s linear;
|
95
|
+
}
|
96
|
+
|
97
|
+
.reveal a:hover img {
|
98
|
+
background: rgba(255,255,255,0.2);
|
99
|
+
border-color: $linkColor;
|
100
|
+
|
101
|
+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
|
102
|
+
}
|
103
|
+
|
104
|
+
|
105
|
+
/*********************************************
|
106
|
+
* NAVIGATION CONTROLS
|
107
|
+
*********************************************/
|
108
|
+
|
109
|
+
.reveal .controls div.navigate-left,
|
110
|
+
.reveal .controls div.navigate-left.enabled {
|
111
|
+
border-right-color: $linkColor;
|
112
|
+
}
|
113
|
+
|
114
|
+
.reveal .controls div.navigate-right,
|
115
|
+
.reveal .controls div.navigate-right.enabled {
|
116
|
+
border-left-color: $linkColor;
|
117
|
+
}
|
118
|
+
|
119
|
+
.reveal .controls div.navigate-up,
|
120
|
+
.reveal .controls div.navigate-up.enabled {
|
121
|
+
border-bottom-color: $linkColor;
|
122
|
+
}
|
123
|
+
|
124
|
+
.reveal .controls div.navigate-down,
|
125
|
+
.reveal .controls div.navigate-down.enabled {
|
126
|
+
border-top-color: $linkColor;
|
127
|
+
}
|
128
|
+
|
129
|
+
.reveal .controls div.navigate-left.enabled:hover {
|
130
|
+
border-right-color: $linkColorHover;
|
131
|
+
}
|
132
|
+
|
133
|
+
.reveal .controls div.navigate-right.enabled:hover {
|
134
|
+
border-left-color: $linkColorHover;
|
135
|
+
}
|
136
|
+
|
137
|
+
.reveal .controls div.navigate-up.enabled:hover {
|
138
|
+
border-bottom-color: $linkColorHover;
|
139
|
+
}
|
140
|
+
|
141
|
+
.reveal .controls div.navigate-down.enabled:hover {
|
142
|
+
border-top-color: $linkColorHover;
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
/*********************************************
|
147
|
+
* PROGRESS BAR
|
148
|
+
*********************************************/
|
149
|
+
|
150
|
+
.reveal .progress {
|
151
|
+
background: rgba(0,0,0,0.2);
|
152
|
+
}
|
153
|
+
.reveal .progress span {
|
154
|
+
background: $linkColor;
|
155
|
+
|
156
|
+
-webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
|
157
|
+
-moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
|
158
|
+
-ms-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
|
159
|
+
-o-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
|
160
|
+
transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
|
161
|
+
}
|
162
|
+
|
163
|
+
|
data/reveal.js/grunt.js
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
/* global module:false */
|
2
|
+
module.exports = function(grunt) {
|
3
|
+
|
4
|
+
// Project configuration
|
5
|
+
grunt.initConfig({
|
6
|
+
pkg: '<json:package.json>',
|
7
|
+
|
8
|
+
inputJS: 'js/reveal.js',
|
9
|
+
inputCSS: 'css/reveal.css',
|
10
|
+
|
11
|
+
outputJS: 'js/reveal.min.js',
|
12
|
+
outputCSS: 'css/reveal.min.css',
|
13
|
+
|
14
|
+
meta: {
|
15
|
+
version: '2.2',
|
16
|
+
banner:
|
17
|
+
'/*!\n' +
|
18
|
+
' * reveal.js <%= meta.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +
|
19
|
+
' * http://lab.hakim.se/reveal-js\n' +
|
20
|
+
' * MIT licensed\n' +
|
21
|
+
' *\n' +
|
22
|
+
' * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se\n' +
|
23
|
+
' */'
|
24
|
+
},
|
25
|
+
|
26
|
+
lint: {
|
27
|
+
files: [ 'grunt.js', '<%= inputJS %>' ]
|
28
|
+
},
|
29
|
+
|
30
|
+
// Tests will be added soon
|
31
|
+
qunit: {
|
32
|
+
files: [ 'test/**/*.html' ]
|
33
|
+
},
|
34
|
+
|
35
|
+
min: {
|
36
|
+
dist: {
|
37
|
+
src: [ '<banner:meta.banner>', '<%= inputJS %>' ],
|
38
|
+
dest: '<%= outputJS %>'
|
39
|
+
}
|
40
|
+
},
|
41
|
+
|
42
|
+
mincss: {
|
43
|
+
compress: {
|
44
|
+
files: {
|
45
|
+
'<%= outputCSS %>': [ '<%= inputCSS %>' ]
|
46
|
+
}
|
47
|
+
}
|
48
|
+
},
|
49
|
+
|
50
|
+
jshint: {
|
51
|
+
options: {
|
52
|
+
curly: false,
|
53
|
+
eqeqeq: true,
|
54
|
+
immed: true,
|
55
|
+
latedef: true,
|
56
|
+
newcap: true,
|
57
|
+
noarg: true,
|
58
|
+
sub: true,
|
59
|
+
undef: true,
|
60
|
+
eqnull: true,
|
61
|
+
browser: true,
|
62
|
+
expr: true
|
63
|
+
},
|
64
|
+
globals: {
|
65
|
+
head: false,
|
66
|
+
module: false,
|
67
|
+
console: false
|
68
|
+
}
|
69
|
+
},
|
70
|
+
|
71
|
+
watch: {
|
72
|
+
files: [ 'grunt.js', '<%= inputJS %>', '<%= inputCSS %>' ],
|
73
|
+
tasks: 'default'
|
74
|
+
}
|
75
|
+
|
76
|
+
});
|
77
|
+
|
78
|
+
// Dependencies
|
79
|
+
grunt.loadNpmTasks( 'grunt-contrib-mincss' );
|
80
|
+
|
81
|
+
// Default task
|
82
|
+
grunt.registerTask( 'default', [ 'lint', 'mincss', 'min' ] );
|
83
|
+
|
84
|
+
};
|
@@ -0,0 +1,375 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
|
7
|
+
<title>reveal.js - The HTML Presentation Framework</title>
|
8
|
+
|
9
|
+
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
|
10
|
+
<meta name="author" content="Hakim El Hattab">
|
11
|
+
|
12
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
13
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/reveal.min.css">
|
16
|
+
<link rel="stylesheet" href="css/theme/default.css" id="theme">
|
17
|
+
|
18
|
+
<!-- For syntax highlighting -->
|
19
|
+
<link rel="stylesheet" href="lib/css/zenburn.css">
|
20
|
+
|
21
|
+
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
|
22
|
+
<script>
|
23
|
+
document.write( '<link rel="stylesheet" href="css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
|
24
|
+
</script>
|
25
|
+
|
26
|
+
<!--[if lt IE 9]>
|
27
|
+
<script src="lib/js/html5shiv.js"></script>
|
28
|
+
<![endif]-->
|
29
|
+
</head>
|
30
|
+
|
31
|
+
<body>
|
32
|
+
|
33
|
+
<div class="reveal">
|
34
|
+
|
35
|
+
<!-- Any section element inside of this container is displayed as a slide -->
|
36
|
+
<div class="slides">
|
37
|
+
|
38
|
+
<section>
|
39
|
+
<h1>Reveal.js</h1>
|
40
|
+
<h3>HTML Presentations Made Easy</h3>
|
41
|
+
<p>
|
42
|
+
<small>Created by <a href="http://hakim.se">Hakim El Hattab</a> / <a href="http://twitter.com/hakimel">@hakimel</a></small>
|
43
|
+
</p>
|
44
|
+
</section>
|
45
|
+
|
46
|
+
<section>
|
47
|
+
<h2>Heads Up</h2>
|
48
|
+
<p>
|
49
|
+
reveal.js is a framework for easily creating beautiful presentations using HTML. You'll need a browser with
|
50
|
+
support for CSS 3D transforms to see it in its full glory.
|
51
|
+
</p>
|
52
|
+
|
53
|
+
<aside class="notes">
|
54
|
+
Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you open the speaker notes window (hit 's' on your keyboard).
|
55
|
+
</aside>
|
56
|
+
</section>
|
57
|
+
|
58
|
+
<!-- Example of nested vertical slides -->
|
59
|
+
<section>
|
60
|
+
<section>
|
61
|
+
<h2>Vertical Slides</h2>
|
62
|
+
<p>
|
63
|
+
Slides can be nested inside of other slides,
|
64
|
+
try pressing <a href="#" class="navigate-down">down</a>.
|
65
|
+
</p>
|
66
|
+
<a href="#" class="image navigate-down">
|
67
|
+
<img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
|
68
|
+
</a>
|
69
|
+
</section>
|
70
|
+
<section>
|
71
|
+
<h2>Basement Level 1</h2>
|
72
|
+
<p>Press down or up to navigate.</p>
|
73
|
+
</section>
|
74
|
+
<section>
|
75
|
+
<h2>Basement Level 2</h2>
|
76
|
+
<p>Cornify</p>
|
77
|
+
<a class="test" href="http://cornify.com">
|
78
|
+
<img width="280" height="326" src="https://s3.amazonaws.com/hakim-static/reveal-js/cornify.gif" alt="Unicorn">
|
79
|
+
</a>
|
80
|
+
</section>
|
81
|
+
<section>
|
82
|
+
<h2>Basement Level 3</h2>
|
83
|
+
<p>That's it, time to go back up.</p>
|
84
|
+
<a href="#/2" class="image">
|
85
|
+
<img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Up arrow" style="-webkit-transform: rotate(180deg);">
|
86
|
+
</a>
|
87
|
+
</section>
|
88
|
+
</section>
|
89
|
+
|
90
|
+
<section>
|
91
|
+
<h2>Point of View</h2>
|
92
|
+
<p>
|
93
|
+
Press <strong>ESC</strong> to enter the slide overview. Hold down alt and click on any element to zoom in on it using <a href="http://lab.hakim.se/zoom-js">zoom.js</a>. Alt + click anywhere to zoom back out.
|
94
|
+
</p>
|
95
|
+
</section>
|
96
|
+
|
97
|
+
<section>
|
98
|
+
<h2>rvl.io</h2>
|
99
|
+
<p>
|
100
|
+
If you don't like writing slides in HTML you can use the online editor <a href="http://www.rvl.io" target="_blank">rvl.io</a>.
|
101
|
+
</p>
|
102
|
+
</section>
|
103
|
+
|
104
|
+
<section>
|
105
|
+
<h2>Works in Mobile Safari</h2>
|
106
|
+
<p>
|
107
|
+
Try it out! You can swipe through the slides and pinch your way to the overview.
|
108
|
+
</p>
|
109
|
+
</section>
|
110
|
+
|
111
|
+
<section>
|
112
|
+
<h2>Marvelous Unordered List</h2>
|
113
|
+
<ul>
|
114
|
+
<li>No order here</li>
|
115
|
+
<li>Or here</li>
|
116
|
+
<li>Or here</li>
|
117
|
+
<li>Or here</li>
|
118
|
+
</ul>
|
119
|
+
</section>
|
120
|
+
|
121
|
+
<section>
|
122
|
+
<h2>Fantastic Ordered List</h2>
|
123
|
+
<ol>
|
124
|
+
<li>One is smaller than...</li>
|
125
|
+
<li>Two is smaller than...</li>
|
126
|
+
<li>Three!</li>
|
127
|
+
</ol>
|
128
|
+
</section>
|
129
|
+
|
130
|
+
<section data-markdown>
|
131
|
+
<script type="text/template">
|
132
|
+
## Markdown support
|
133
|
+
|
134
|
+
For those of you who like that sort of thing. Instructions and a bit more info available [here](https://github.com/hakimel/reveal.js#markdown).
|
135
|
+
|
136
|
+
<section data-markdown>
|
137
|
+
## Markdown support
|
138
|
+
|
139
|
+
For those of you who like that sort of thing.
|
140
|
+
Instructions and a bit more info available [here](https://github.com/hakimel/reveal.js#markdown).
|
141
|
+
</section>
|
142
|
+
</script>
|
143
|
+
</section>
|
144
|
+
|
145
|
+
<section id="transitions">
|
146
|
+
<h2>Transition Styles</h2>
|
147
|
+
<p>
|
148
|
+
You can select from different transitions, like: <br>
|
149
|
+
<a href="?transition=cube#/transitions">Cube</a> -
|
150
|
+
<a href="?transition=page#/transitions">Page</a> -
|
151
|
+
<a href="?transition=concave#/transitions">Concave</a> -
|
152
|
+
<a href="?transition=zoom#/transitions">Zoom</a> -
|
153
|
+
<a href="?transition=linear#/transitions">Linear</a> -
|
154
|
+
<a href="?transition=fade#/transitions">Fade</a> -
|
155
|
+
<a href="?transition=none#/transitions">None</a> -
|
156
|
+
<a href="?#/transitions">Default</a>
|
157
|
+
</p>
|
158
|
+
</section>
|
159
|
+
|
160
|
+
<section id="themes">
|
161
|
+
<h2>Themes</h2>
|
162
|
+
<p>
|
163
|
+
Reveal.js comes with a few themes built in: <br>
|
164
|
+
<a href="?theme=sky#/themes">Sky</a> -
|
165
|
+
<a href="?theme=beige#/themes">Beige</a> -
|
166
|
+
<a href="?theme=simple#/themes">Simple</a> -
|
167
|
+
<a href="?theme=serif#/themes">Serif</a> -
|
168
|
+
<a href="?theme=night#/themes">Night</a> -
|
169
|
+
<a href="?#/themes">Default</a>
|
170
|
+
</p>
|
171
|
+
<p>
|
172
|
+
<small>
|
173
|
+
* Theme demos are loaded after the presentation which leads to flicker. In production you should load your theme in the <code><head></code> using a <code><link></code>.
|
174
|
+
</small>
|
175
|
+
</p>
|
176
|
+
</section>
|
177
|
+
|
178
|
+
<section>
|
179
|
+
<section data-state="alert">
|
180
|
+
<h2>Global State</h2>
|
181
|
+
<p>
|
182
|
+
Set <code>data-state="something"</code> on a slide and <code>"something"</code>
|
183
|
+
will be added as a class to the document element when the slide is open. This lets you
|
184
|
+
apply broader style changes, like switching the background.
|
185
|
+
</p>
|
186
|
+
<a href="#" class="image navigate-down">
|
187
|
+
<img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
|
188
|
+
</a>
|
189
|
+
</section>
|
190
|
+
<section data-state="blackout">
|
191
|
+
<h2>"blackout"</h2>
|
192
|
+
<a href="#" class="image navigate-down">
|
193
|
+
<img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
|
194
|
+
</a>
|
195
|
+
</section>
|
196
|
+
<section data-state="soothe">
|
197
|
+
<h2>"soothe"</h2>
|
198
|
+
<a href="#" class="image navigate-next">
|
199
|
+
<img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Up arrow" style="-webkit-transform: rotate(-90deg);">
|
200
|
+
</a>
|
201
|
+
</section>
|
202
|
+
</section>
|
203
|
+
|
204
|
+
<section data-state="customevent">
|
205
|
+
<h2>Custom Events</h2>
|
206
|
+
<p>
|
207
|
+
Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
|
208
|
+
</p>
|
209
|
+
<pre><code contenteditable style="font-size: 18px; margin-top: 20px;">Reveal.addEventListener( 'customevent', function() {
|
210
|
+
console.log( '"customevent" has fired' );
|
211
|
+
} );
|
212
|
+
</code></pre>
|
213
|
+
</section>
|
214
|
+
|
215
|
+
<section>
|
216
|
+
<h2>Clever Quotes</h2>
|
217
|
+
<p>
|
218
|
+
These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
|
219
|
+
The nice thing about standards is that there are so many to choose from</q> and block:
|
220
|
+
</p>
|
221
|
+
<blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
|
222
|
+
For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
|
223
|
+
reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
|
224
|
+
</blockquote>
|
225
|
+
</section>
|
226
|
+
|
227
|
+
<section>
|
228
|
+
<h2>Pretty Code</h2>
|
229
|
+
<pre><code contenteditable>
|
230
|
+
function linkify( selector ) {
|
231
|
+
if( supports3DTransforms ) {
|
232
|
+
|
233
|
+
var nodes = document.querySelectorAll( selector );
|
234
|
+
|
235
|
+
for( var i = 0, len = nodes.length; i < len; i++ ) {
|
236
|
+
var node = nodes[i];
|
237
|
+
|
238
|
+
if( !node.className ) ) {
|
239
|
+
node.className += ' roll';
|
240
|
+
}
|
241
|
+
};
|
242
|
+
}
|
243
|
+
}
|
244
|
+
</code></pre>
|
245
|
+
<p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
|
246
|
+
</section>
|
247
|
+
|
248
|
+
<section>
|
249
|
+
<h2>Intergalactic Interconnections</h2>
|
250
|
+
<p>
|
251
|
+
You can link between slides internally,
|
252
|
+
<a href="#/2/3">like this</a>.
|
253
|
+
</p>
|
254
|
+
</section>
|
255
|
+
|
256
|
+
<section>
|
257
|
+
<section>
|
258
|
+
<h2>Fragmented Views</h2>
|
259
|
+
<p>Hit the next arrow...</p>
|
260
|
+
<p class="fragment">... to step through ...</p>
|
261
|
+
<ol>
|
262
|
+
<li class="fragment"><code>any type</code></li>
|
263
|
+
<li class="fragment"><em>of view</em></li>
|
264
|
+
<li class="fragment"><strong>fragments</strong></li>
|
265
|
+
</ol>
|
266
|
+
|
267
|
+
<aside class="notes">
|
268
|
+
This slide has fragments which are also stepped through in the notes window.
|
269
|
+
</aside>
|
270
|
+
</section>
|
271
|
+
<section>
|
272
|
+
<h2>Fragment Styles</h2>
|
273
|
+
<p>There's a few styles of fragments, like:</p>
|
274
|
+
<p class="fragment grow">grow</p>
|
275
|
+
<p class="fragment shrink">shrink</p>
|
276
|
+
<p class="fragment roll-in">roll-in</p>
|
277
|
+
<p class="fragment fade-out">fade-out</p>
|
278
|
+
<p class="fragment highlight-red">highlight-red</p>
|
279
|
+
<p class="fragment highlight-green">highlight-green</p>
|
280
|
+
<p class="fragment highlight-blue">highlight-blue</p>
|
281
|
+
</section>
|
282
|
+
</section>
|
283
|
+
|
284
|
+
<section>
|
285
|
+
<h2>Spectacular image!</h2>
|
286
|
+
<a class="image" href="http://lab.hakim.se/meny/" target="_blank">
|
287
|
+
<img width="320" height="299" src="http://s3.amazonaws.com/hakim-static/portfolio/images/meny.png" alt="Meny">
|
288
|
+
</a>
|
289
|
+
</section>
|
290
|
+
|
291
|
+
<section>
|
292
|
+
<h2>Export to PDF</h2>
|
293
|
+
<p>Presentations can be <a href="https://github.com/hakimel/reveal.js#pdf-export">exported to PDF</a>, below is an example that's been uploaded to SlideShare.</p>
|
294
|
+
<iframe id="slideshare" src="http://www.slideshare.net/slideshow/embed_code/13872948" width="455" height="356" style="margin:0;overflow:hidden;border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" allowfullscreen> </iframe>
|
295
|
+
<script>
|
296
|
+
document.getElementById('slideshare').attributeName = 'allowfullscreen';
|
297
|
+
</script>
|
298
|
+
</section>
|
299
|
+
|
300
|
+
<section>
|
301
|
+
<h2>Take a Moment</h2>
|
302
|
+
<p>
|
303
|
+
Press b or period on your keyboard to enter the 'paused' mode. This mode is helpful when you want to take distracting slides off the screen
|
304
|
+
during a presentation.
|
305
|
+
</p>
|
306
|
+
</section>
|
307
|
+
|
308
|
+
<section>
|
309
|
+
<h2>Stellar Links</h2>
|
310
|
+
<ul>
|
311
|
+
<li><a href="https://github.com/hakimel/reveal.js">Source code on GitHub</a></li>
|
312
|
+
<li><a href="http://hakim.se/projects/reveal-js">Leave feedback on my site</a></li>
|
313
|
+
<li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
|
314
|
+
</ul>
|
315
|
+
</section>
|
316
|
+
|
317
|
+
<section>
|
318
|
+
<h2>It's free</h2>
|
319
|
+
<p>
|
320
|
+
reveal.js and <a href="http://www.rvl.io">rvl.io</a> are entirely free but if you'd like to support the projects you can donate below.
|
321
|
+
Donations will go towards hosting and domain costs.
|
322
|
+
</p>
|
323
|
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
324
|
+
<input type="hidden" name="cmd" value="_donations">
|
325
|
+
<input type="hidden" name="business" value="hakim.elhattab@gmail.com">
|
326
|
+
<input type="hidden" name="lc" value="US">
|
327
|
+
<input type="hidden" name="item_name" value="reveal.js / rvl.io">
|
328
|
+
<input type="hidden" name="no_note" value="0">
|
329
|
+
<input type="hidden" name="currency_code" value="USD">
|
330
|
+
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donate_LG.gif:NonHostedGuest">
|
331
|
+
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
332
|
+
</form>
|
333
|
+
</section>
|
334
|
+
|
335
|
+
<section>
|
336
|
+
<h1>THE END</h1>
|
337
|
+
<h3>BY Hakim El Hattab / hakim.se</h3>
|
338
|
+
</section>
|
339
|
+
|
340
|
+
</div>
|
341
|
+
|
342
|
+
</div>
|
343
|
+
|
344
|
+
<script src="lib/js/head.min.js"></script>
|
345
|
+
<script src="js/reveal.min.js"></script>
|
346
|
+
|
347
|
+
<script>
|
348
|
+
|
349
|
+
// Full list of configuration options available here:
|
350
|
+
// https://github.com/hakimel/reveal.js#configuration
|
351
|
+
Reveal.initialize({
|
352
|
+
controls: true,
|
353
|
+
progress: true,
|
354
|
+
history: true,
|
355
|
+
center: true,
|
356
|
+
|
357
|
+
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
|
358
|
+
transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
|
359
|
+
|
360
|
+
// Optional libraries used to extend on reveal.js
|
361
|
+
dependencies: [
|
362
|
+
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
|
363
|
+
{ src: 'plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
364
|
+
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
365
|
+
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
|
366
|
+
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
|
367
|
+
{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
|
368
|
+
// { src: 'plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
|
369
|
+
]
|
370
|
+
});
|
371
|
+
|
372
|
+
</script>
|
373
|
+
|
374
|
+
</body>
|
375
|
+
</html>
|