mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2025-06-11 17:23:17 +02:00
Merge branch 'text-experiment' of github.com:Doodle3D/doodle3d-client into text-experiment
This commit is contained in:
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);
|
||||
|
@ -177,18 +177,16 @@ function initButtonBehavior() {
|
||||
|
||||
enableButton(btnSettings, openSettingsWindow);
|
||||
|
||||
|
||||
|
||||
// 29-okt-2013 - we're not doing help for smartphones at the moment
|
||||
if (clientInfo.isSmartphone) {
|
||||
btnInfo.addClass("disabled");
|
||||
} else {
|
||||
btnInfo.mouseup(function(e) {
|
||||
e.preventDefault();
|
||||
console.log("btnInfo mouse up");
|
||||
helpTours.startTour(helpTours.WELCOMETOUR);
|
||||
});
|
||||
function onBtnInfo(e) {
|
||||
helpTours.startTour(helpTours.WELCOMETOUR);
|
||||
}
|
||||
enableButton(btnInfo, onBtnInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function stopPrint() {
|
||||
|
@ -131,14 +131,14 @@ function disableDragging() {
|
||||
function enableButton(elem, handler) {
|
||||
//var elem = $('#'+domId);
|
||||
elem.removeClass("disabled");
|
||||
elem.unbind('click');
|
||||
elem.bind('click', handler);
|
||||
elem.unbind('onButtonClick');
|
||||
elem.bind('onButtonClick', handler);
|
||||
}
|
||||
|
||||
function disableButton(elem) {
|
||||
//var elem = $('#'+domId);
|
||||
elem.addClass("disabled");
|
||||
elem.unbind('click');
|
||||
elem.unbind('onButtonClick');
|
||||
}
|
||||
|
||||
function showOrHideThermo() {
|
||||
|
Reference in New Issue
Block a user