Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'master' into gh-pages

  • Loading branch information...
commit 97e244e41a72601b0659ffd839b17fae6490e377 2 parents 3135a61 + 19029d2
Bartek Szopka authored January 02, 2012
12  README.md
Source Rendered
@@ -9,6 +9,14 @@ transitions in modern browsers and inspired by the idea behind prezi.com.
9 9
 impress.js may not help you if you have nothing interesting to say ;)
10 10
 
11 11
 
  12
+ABOUT THE NAME
  13
+----------------
  14
+
  15
+impress.js name in courtesy of @skuzniak (http://twitter.com/skuzniak/status/143627215165333504).
  16
+
  17
+It's an (un)fortunate coincidence that a Open/LibreOffice presentation tool is called Impress ;)
  18
+
  19
+
12 20
 
13 21
 DEMO
14 22
 ------
@@ -28,6 +36,10 @@ Impress.js is developed with current webkit-based browsers in mind (Chrome,
28 36
 Safari), but *should* work also in other browsers supporting CSS3 3D transforms
29 37
 and transitions (Firefox, IE10).
30 38
 
  39
+Additionally for the animations to run smoothly it's required to have hardware
  40
+acceleration support in your browser. This depends on the browser, your operating
  41
+system and even kind of graphic hardware you have in your machine.
  42
+
31 43
 It's actively developed with newest Chromium and tested in Firefox Aurora.
32 44
 
33 45
 I don't really expect it to run smoothly in non-webkit-based browser.
9  css/style.css
... ...
@@ -1,3 +1,12 @@
  1
+/**
  2
+ * This is a stylesheet for a demo presentation for impress.js
  3
+ * 
  4
+ * It is not meant to be a part of impress.js and is not required by impress.js.
  5
+ * I expect that anyone creating a presentation for impress.js would create their own
  6
+ * set of styles.
  7
+ */
  8
+
  9
+
1 10
 /* http://meyerweb.com/eric/tools/css/reset/ 
2 11
    v2.0 | 20110126
3 12
    License: none (public domain)
5  js/impress.js
@@ -226,10 +226,11 @@
226 226
     // EVENTS
227 227
     
228 228
     document.addEventListener("keydown", function ( event ) {
229  
-        if ( event.keyCode == 9 || event.keyCode == 32 || (event.keyCode >= 37 && event.keyCode <= 40) ) {
  229
+        if ( event.keyCode == 9 || ( event.keyCode >= 32 && event.keyCode <= 34 ) || (event.keyCode >= 37 && event.keyCode <= 40) ) {
230 230
             var active = $(".step.active", impress);
231 231
             var next = active;
232 232
             switch( event.keyCode ) {
  233
+                case 33: ; // pg up
233 234
                 case 37: ; // left
234 235
                 case 38:   // up
235 236
                          next = steps.indexOf( active ) - 1;
@@ -237,6 +238,7 @@
237 238
                          break;
238 239
                 case 9:  ; // tab
239 240
                 case 32: ; // space
  241
+                case 34: ; // pg down
240 242
                 case 39: ; // right
241 243
                 case 40:   // down
242 244
                          next = steps.indexOf( active ) + 1;
@@ -249,6 +251,7 @@
249 251
             event.preventDefault();
250 252
         }
251 253
     }, false);
  254
+
252 255
     
253 256
     // Sometimes it's possible to trigger focus on first link with some keyboard action.
254 257
     // Browser in such a case tries to scroll the page to make this element visible

0 notes on commit 97e244e

Please sign in to comment.
Something went wrong with that request. Please try again.