Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
2
2015-12-uni-ffm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CmS
2015-12-uni-ffm
Commits
233160ff
Commit
233160ff
authored
13 years ago
by
Hakim El Hattab
Browse files
Options
Downloads
Patches
Plain Diff
cleanup & comments
parent
b36e8d5c
No related branches found
Branches containing commit
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
index.html
+4
-22
4 additions, 22 deletions
index.html
js/reveal.js
+9
-10
9 additions, 10 deletions
js/reveal.js
with
13 additions
and
32 deletions
index.html
+
4
−
22
View file @
233160ff
...
...
@@ -100,7 +100,8 @@
<section>
<h2>
Pretty Code
</h2>
<pre><code>
var supports3DTransforms = document.body.style['webkitPerspective'] !== undefined ||
<pre><code>
var supports3DTransforms = document.body.style['webkitPerspective'] !== undefined ||
document.body.style['MozPerspective'] !== undefined ||
document.body.style['perspective'] !== undefined;
...
...
@@ -120,7 +121,8 @@ function linkify( selector ) {
}
}
linkify( 'a' );
</code></pre>
linkify( 'a' );
</code></pre>
<p>
Courtesy of
<a
href=
"http://softwaremaniacs.org/soft/highlight/en/description/"
>
highlight.js
</a>
.
</p>
</section>
...
...
@@ -191,25 +193,5 @@ linkify( 'a' );</code></pre>
</script>
<!-- Everything below this point is unrelated to the slideshow -->
<div
style=
"position: absolute; bottom: 10px; left: 50%; margin-left: -95px"
>
<a
href=
"http://twitter.com/share"
class=
"twitter-share-button"
data-text=
"reveal.js - a 3D slideshow tool from @hakimel."
data-url=
"http://lab.hakim.se/reveal-js"
data-count=
"small"
data-related=
"hakimel"
></a>
<iframe
id=
"facebook-button"
src=
"http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fapp.hakim.se%2Freveal-js%2F&layout=button_count&show_faces=false&width=90&action=like&font=arial&colorscheme=light&height=21"
scrolling=
"no"
frameborder=
"0"
style=
"border:none; overflow:hidden; width:85px; height:24px; position: relative; top: 4px;"
allowTransparency=
"true"
></iframe>
<script
type=
"text/javascript"
src=
"http://platform.twitter.com/widgets.js"
></script>
</div>
<script>
var
_gaq
=
[[
'
_setAccount
'
,
'
UA-15240703-1
'
],
[
'
_trackPageview
'
]];
(
function
(
d
,
t
)
{
var
g
=
d
.
createElement
(
t
),
s
=
d
.
getElementsByTagName
(
t
)[
0
];
g
.
async
=
true
;
g
.
src
=
(
'
https:
'
==
location
.
protocol
?
'
https://ssl
'
:
'
http://www
'
)
+
'
.google-analytics.com/ga.js
'
;
s
.
parentNode
.
insertBefore
(
g
,
s
);
})(
document
,
'
script
'
);
</script>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
js/reveal.js
+
9
−
10
View file @
233160ff
...
...
@@ -25,9 +25,7 @@
* sexy CSS 3D transforms.
*
* Slides are given unique hash based URL's so that they can be
* opened directly. I didn't use the HTML5 History API for this
* as it would have required the addition of server side rewrite
* rules and hence require more effort for anyone to set up.
* opened directly.
*
* Public facing methods:
* - Reveal.initialize( { ... options ... } );
...
...
@@ -48,9 +46,7 @@
*
* version 0.3:
* - Added licensing terms
*
* version 0.4:
* - Fixed broken links on touch devices.
* - Fixed broken links on touch devices
*
* version 1.0:
* - Added controls
...
...
@@ -63,15 +59,16 @@
*
* TODO:
* - Touch/swipe interactions
* - Presentation overview via keyboard shortcut
*
* @author Hakim El Hattab
* @author Hakim El Hattab
| http://hakim.se
* @version 1.0
*/
var
Reveal
=
(
function
(){
var
HORIZONTAL_SLIDES_SELECTOR
=
'
#main>section
'
,
VERTICAL_SLIDES_SELECTOR
=
'
section.present>section
'
,
indexh
=
0
,
indexv
=
0
,
...
...
@@ -98,7 +95,7 @@ var Reveal = (function(){
dom
.
controlsUp
.
addEventListener
(
'
click
'
,
preventAndForward
(
navigateUp
),
false
);
dom
.
controlsDown
.
addEventListener
(
'
click
'
,
preventAndForward
(
navigateDown
),
false
);
//
Set d
efault
configura
tion
//
D
efault
op
tion
s
config
.
rollingLinks
=
options
.
rollingLinks
===
undefined
?
true
:
options
.
rollingLinks
;
config
.
controls
=
options
.
controls
===
undefined
?
false
:
options
.
controls
;
config
.
theme
=
options
.
theme
===
undefined
?
'
default
'
:
options
.
theme
;
...
...
@@ -116,7 +113,7 @@ var Reveal = (function(){
linkify
();
}
// Read the initial
state of the URL (
hash
)
// Read the initial hash
readURL
();
}
...
...
@@ -310,7 +307,9 @@ var Reveal = (function(){
}
/**
* Determine what available routes there are for navigation.
*
* @return {Object} containing four booleans: left/right/up/down
*/
function
availableRoutes
()
{
var
horizontalSlides
=
document
.
querySelectorAll
(
HORIZONTAL_SLIDES_SELECTOR
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment