From 5a6837358bd91896114359b598a42b7172af1ec8 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Tue, 1 May 2012 08:52:56 -0400
Subject: minor style or wording tweaks
---
index.html | 55 +++++++++++++++++++++++++++----------------------------
1 file changed, 27 insertions(+), 28 deletions(-)
(limited to 'index.html')
diff --git a/index.html b/index.html
index 0e30911..7f291cf 100644
--- a/index.html
+++ b/index.html
@@ -28,11 +28,10 @@
Reveal.js
- A CSS 3D Slideshow
+ CSS 3D Presentations
@@ -95,6 +94,7 @@
Cube
Page
Concave
+
Linear
@@ -148,11 +148,10 @@
Additionally custom events can be triggered on a per slide basis by binding to the data-state
name.
-
- document.addEventListener('customevent', function(){
- alert('event has fired');
- });
-
+
document.addEventListener( 'customevent', function() {
+ alert( '"customevent" has fired' );
+} );
+
@@ -170,27 +169,27 @@
Pretty Code
- var supports3DTransforms = document.body.style['webkitPerspective'] !== undefined ||
- document.body.style['MozPerspective'] !== undefined ||
- document.body.style['perspective'] !== undefined;
+var supports3DTransforms = document.body.style['webkitPerspective'] !== undefined ||
+ document.body.style['MozPerspective'] !== undefined ||
+ document.body.style['perspective'] !== undefined;
- function linkify( selector ) {
- if( supports3DTransforms ) {
-
- var nodes = document.querySelectorAll( selector );
+function linkify( selector ) {
+ if( supports3DTransforms ) {
+
+ var nodes = document.querySelectorAll( selector );
- for( var i = 0, len = nodes.length; i < len; i++ ) {
- var node = nodes[i];
+ for( var i = 0, len = nodes.length; i < len; i++ ) {
+ var node = nodes[i];
- if( !node.className || !node.className.match( /roll/g ) ) {
- node.className += ' roll';
- node.innerHTML = '' + node.innerHTML + '';
- }
- };
- }
- }
+ if( !node.className || !node.className.match( /roll/g ) ) {
+ node.className += ' roll';
+ node.innerHTML = '' + node.innerHTML + '';
+ }
+ };
+ }
+}
- linkify( 'a' );
+linkify( 'a' );
Courtesy of highlight.js.
@@ -262,9 +261,9 @@
query[ a.split( '=' ).shift() ] = a.split( '=' ).pop();
} );
- document.addEventListener('customevent', function(){
- alert('event has fired');
- });
+ document.addEventListener( 'customevent', function() {
+ alert( '"customevent" has fired' );
+ } );
Reveal.initialize({
// Display controls in the bottom right corner
--
cgit v1.2.3