From 88b711d1f3f95420d332ba5020cee1731e79231a Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Fri, 17 Jan 2014 12:04:01 +0100 Subject: [PATCH] Small tour code cleanup --- js/Help.js | 43 +++++-------------------------------------- www/helpcontent.html | 2 +- 2 files changed, 6 insertions(+), 39 deletions(-) diff --git a/js/Help.js b/js/Help.js index a8d1717..a94a425 100644 --- a/js/Help.js +++ b/js/Help.js @@ -56,12 +56,13 @@ function GrandTour(_name) { $(this).joyride('set_li', false); } } - + + // bring up thermometer and progressbar to explain them thermometer.show(); progressbar.show(); message.hide(); - + }; this.preStepCallback = function(index, tip) { // console.log("GrandTour >> f:preStepCallback() >> index: " + index); @@ -71,51 +72,17 @@ function GrandTour(_name) { var dataset = $(this)[0].$li[0].dataset; if (dataset.action != undefined) { - console.log(" THERE'S AN ACTION!"); switch (dataset.action) { - case "sayHello": - console.log(" action: sayHello"); - break; case "showMessage": console.log(" action: showMessage"); message.set("This is a status message...", Message.NOTICE); -// message.show(); - break; - case "showProgressBar": - console.log(" action: showProgressBar"); - progressbar.show(); - break; - case "showThermometer": - console.log(" action: showThermometer"); - thermometer.show(); break; } } }; this.postStepCallback = function(index, tip) { - console.log("GrandTour >> f:postStepCallback() >> index: " + index); - - var dataset = $(this)[0].$li[0].dataset; - if (dataset.action != undefined) { - console.log(" THERE *WAS* AN ACTION!"); - switch (dataset.action) { - case "sayHello": -// console.log(" action: sayHello"); - break; - case "showMessage": -// console.log(" action: showMessage"); -// message.hide(); - break; - case "showProgressBar": -// console.log(" action: showProgressBar"); -// progressbar.hide(); - break; - case "showThermometer": -// console.log(" action: showThermometer"); -// thermometer.hide(); - break; - } - } + //console.log("GrandTour >> f:postStepCallback() >> index: " + index); + // var dataset = $(this)[0].$li[0].dataset; }; this.postRideCallback = function(index, tip) { // console.log("GrandTour >> f:postRideCallback() >> index: " + index + ", self.active: " + self.active); diff --git a/www/helpcontent.html b/www/helpcontent.html index 085d090..a35180f 100644 --- a/www/helpcontent.html +++ b/www/helpcontent.html @@ -20,7 +20,7 @@

Save

Saves your doodle to the local Doodle3D Wi-Fi box.

-
  • +
  • View saved doodles

    Use the buttons '<' and '>' to flip through all the saved doodles on your Wi-Fi box.