mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 17:27:57 +01:00
Small tour code cleanup
This commit is contained in:
parent
06ff438119
commit
88b711d1f3
39
js/Help.js
39
js/Help.js
@ -57,6 +57,7 @@ function GrandTour(_name) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// bring up thermometer and progressbar to explain them
|
// bring up thermometer and progressbar to explain them
|
||||||
thermometer.show();
|
thermometer.show();
|
||||||
progressbar.show();
|
progressbar.show();
|
||||||
@ -71,51 +72,17 @@ function GrandTour(_name) {
|
|||||||
|
|
||||||
var dataset = $(this)[0].$li[0].dataset;
|
var dataset = $(this)[0].$li[0].dataset;
|
||||||
if (dataset.action != undefined) {
|
if (dataset.action != undefined) {
|
||||||
console.log(" THERE'S AN ACTION!");
|
|
||||||
switch (dataset.action) {
|
switch (dataset.action) {
|
||||||
case "sayHello":
|
|
||||||
console.log(" action: sayHello");
|
|
||||||
break;
|
|
||||||
case "showMessage":
|
case "showMessage":
|
||||||
console.log(" action: showMessage");
|
console.log(" action: showMessage");
|
||||||
message.set("This is a status message...", Message.NOTICE);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.postStepCallback = function(index, tip) {
|
this.postStepCallback = function(index, tip) {
|
||||||
console.log("GrandTour >> f:postStepCallback() >> index: " + index);
|
//console.log("GrandTour >> f:postStepCallback() >> index: " + index);
|
||||||
|
// var dataset = $(this)[0].$li[0].dataset;
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
this.postRideCallback = function(index, tip) {
|
this.postRideCallback = function(index, tip) {
|
||||||
// console.log("GrandTour >> f:postRideCallback() >> index: " + index + ", self.active: " + self.active);
|
// console.log("GrandTour >> f:postRideCallback() >> index: " + index + ", self.active: " + self.active);
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<h2>Save</h2>
|
<h2>Save</h2>
|
||||||
<p>Saves your doodle to the local Doodle3D Wi-Fi box.</p>
|
<p>Saves your doodle to the local Doodle3D Wi-Fi box.</p>
|
||||||
</li>
|
</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>
|
<h2>View saved doodles</h2>
|
||||||
<p>Use the buttons '<' and '>' to flip through all the saved doodles on your Wi-Fi box.</p>
|
<p>Use the buttons '<' and '>' to flip through all the saved doodles on your Wi-Fi box.</p>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user