mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 01:07:56 +01:00
Small tour code cleanup
This commit is contained in:
parent
06ff438119
commit
88b711d1f3
43
js/Help.js
43
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);
|
||||
|
@ -20,7 +20,7 @@
|
||||
<h2>Save</h2>
|
||||
<p>Saves your doodle to the local Doodle3D Wi-Fi box.</p>
|
||||
</li>
|
||||
<li data-id="btnsPrevNext" data-button="Next" data-options="tipLocation:right;tipAdjustmentY:-25" data-action="sayHello">
|
||||
<li data-id="btnsPrevNext" data-button="Next" data-options="tipLocation:right;tipAdjustmentY:-25">
|
||||
<h2>View saved doodles</h2>
|
||||
<p>Use the buttons '<' and '>' to flip through all the saved doodles on your Wi-Fi box.</p>
|
||||
</li>
|
||||
|
Loading…
Reference in New Issue
Block a user