Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

extended demo with some extra slides, some code comments

  • Loading branch information...
commit b1bd3edf92643fcf5ec2fe069f7aec1eb233cb40 1 parent ab6b259
Andrej Koelewijn authored

Showing 1 changed file with 9 additions and 2 deletions. Show diff stats Hide diff stats

  1. +9 2 slide-animation.js
11 slide-animation.js
@@ -15,6 +15,10 @@ function initSlides(){
15 15 slideshow[1] = ["slide 1","slide 2"];
16 16 slideshow[2] = ["slide 1","slide 2","slide 3"];
17 17 slideshow[3] = ["slide 1","slide 2","slide 3","slide 4"];
  18 + slideshow[4] = ["slide 1"];
  19 + slideshow[5] = ["slide 2"];
  20 + slideshow[6] = ["slide 3"];
  21 + slideshow[7] = ["slide 4"];
18 22 }
19 23
20 24 function showSlide(idx){
@@ -47,6 +51,11 @@ function previousSlide(){
47 51 function keypressed(e){
48 52 console.log("keypressed: " + e);
49 53 var keyCode = e.keyCode ? e.keyCode : e.charCode;
  54 + // 37 - cursor left
  55 + // 33 - logitech remote presentor back button
  56 + // 39 - cursor right
  57 + // 34 - logitech remote presentor forward button
  58 + // These keycodes do not work in chromium
50 59 if(keyCode === 37 || keyCode === 33 ){
51 60 previousSlide();
52 61 } else if (keyCode === 39 || keyCode === 34 ){
@@ -69,5 +78,3 @@ function init(evt){
69 78
70 79 document.getElementsByTagName("svg")[0].setAttribute("onload","init(evt)");
71 80
72   -
73   -

0 comments on commit b1bd3ed

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