From 470cabaea81626b9983923cbe59bc6bbc673a169 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sun, 14 Oct 2012 21:02:32 -0400 Subject: new shorter api method names (closes #178), restructured and cleaned up core js --- README.md | 14 +- index.html | 39 ++ js/reveal.js | 786 +++++++++++++++++++++-------------------- js/reveal.min.js | 83 ++--- plugin/speakernotes/notes.html | 4 +- 5 files changed, 499 insertions(+), 427 deletions(-) diff --git a/README.md b/README.md index b4dbf89..877169b 100644 --- a/README.md +++ b/README.md @@ -124,13 +124,13 @@ The Reveal class provides a minimal JavaScript API for controlling navigation an ```javascript // Navigation -Reveal.navigateTo( indexh, indexv ); -Reveal.navigateLeft(); -Reveal.navigateRight(); -Reveal.navigateUp(); -Reveal.navigateDown(); -Reveal.navigatePrev(); -Reveal.navigateNext(); +Reveal.slide( indexh, indexv ); +Reveal.left(); +Reveal.right(); +Reveal.up(); +Reveal.down(); +Reveal.prev(); +Reveal.next(); Reveal.toggleOverview(); // Retrieves the previous and current slide elements diff --git a/index.html b/index.html index 3ea2412..313c33c 100644 --- a/index.html +++ b/index.html @@ -353,5 +353,44 @@ function linkify( selector ) { + + +
+ +