0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-25 18:47:57 +01:00

Merge branch 'text-experiment' of github.com:Doodle3D/doodle3d-client into text-experiment

This commit is contained in:
Wouter R 2014-01-17 13:00:08 +01:00
commit 032d6413f7
8 changed files with 21 additions and 61 deletions

View File

@ -57,6 +57,7 @@ function GrandTour(_name) {
}
}
// bring up thermometer and progressbar to explain them
thermometer.show();
progressbar.show();
@ -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);

View File

@ -182,13 +182,11 @@ function initButtonBehavior() {
if (clientInfo.isSmartphone) {
btnInfo.addClass("disabled");
} else {
btnInfo.mouseup(function(e) {
e.preventDefault();
console.log("btnInfo mouse up");
function onBtnInfo(e) {
helpTours.startTour(helpTours.WELCOMETOUR);
});
}
enableButton(btnInfo, onBtnInfo);
}
}
function stopPrint() {

View File

@ -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() {

View File

@ -45,7 +45,7 @@ body {
transition: opacity .35s linear;
position: absolute;
left: 0px;
z-index: -5;
//z-index: -5;
}
#bgTop {

View File

@ -146,15 +146,6 @@
}
}
/*#btnAddOpen {
position: absolute;
top: 370px;
left: 60px;
z-index: 1000;
width: 200%;
display: none;
}*/
.buttonGroup {
/*background-color: white;*/
background-color: #fff;

View File

@ -299,7 +299,7 @@
.joyride-expose-cover {
background: transparent;
position: absolute;
z-index: 10000;
//z-index: 10000;
top: 0;
left: 0;
border-radius: 5px;

View File

@ -13,7 +13,7 @@
color: #333;
white-space:nowrap;
z-index: 5;
//z-index: 5;
display:none;

View File

@ -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>
@ -36,6 +36,10 @@
<h2>Doodle area</h2>
<p>This is the drawing canvas. Unleash your inner artist!</p>
</li>
<li data-id="btnToggleEdit" data-button="Next" data-options="tipLocation:right">
<h2>Edit</h2>
<p>Behind this button you'll find buttons to do simple 2D edits</p>
</li>
<li data-id="preview" data-button="Next" data-options="tipLocation:left">
<h2>Preview</h2>
<p>The preview field shows a preview of how your doodle will look in real life.</p>