mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 09:17:56 +01:00
Merge branch 'text-experiment' of github.com:Doodle3D/doodle3d-client into text-experiment
This commit is contained in:
commit
032d6413f7
43
js/Help.js
43
js/Help.js
@ -56,12 +56,13 @@ function GrandTour(_name) {
|
|||||||
$(this).joyride('set_li', false);
|
$(this).joyride('set_li', false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// bring up thermometer and progressbar to explain them
|
// bring up thermometer and progressbar to explain them
|
||||||
thermometer.show();
|
thermometer.show();
|
||||||
progressbar.show();
|
progressbar.show();
|
||||||
message.hide();
|
message.hide();
|
||||||
|
|
||||||
};
|
};
|
||||||
this.preStepCallback = function(index, tip) {
|
this.preStepCallback = function(index, tip) {
|
||||||
// console.log("GrandTour >> f:preStepCallback() >> index: " + index);
|
// console.log("GrandTour >> f:preStepCallback() >> index: " + index);
|
||||||
@ -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);
|
||||||
|
@ -177,18 +177,16 @@ function initButtonBehavior() {
|
|||||||
|
|
||||||
enableButton(btnSettings, openSettingsWindow);
|
enableButton(btnSettings, openSettingsWindow);
|
||||||
|
|
||||||
|
|
||||||
// 29-okt-2013 - we're not doing help for smartphones at the moment
|
// 29-okt-2013 - we're not doing help for smartphones at the moment
|
||||||
if (clientInfo.isSmartphone) {
|
if (clientInfo.isSmartphone) {
|
||||||
btnInfo.addClass("disabled");
|
btnInfo.addClass("disabled");
|
||||||
} else {
|
} else {
|
||||||
btnInfo.mouseup(function(e) {
|
function onBtnInfo(e) {
|
||||||
e.preventDefault();
|
helpTours.startTour(helpTours.WELCOMETOUR);
|
||||||
console.log("btnInfo mouse up");
|
}
|
||||||
helpTours.startTour(helpTours.WELCOMETOUR);
|
enableButton(btnInfo, onBtnInfo);
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function stopPrint() {
|
function stopPrint() {
|
||||||
|
@ -131,14 +131,14 @@ function disableDragging() {
|
|||||||
function enableButton(elem, handler) {
|
function enableButton(elem, handler) {
|
||||||
//var elem = $('#'+domId);
|
//var elem = $('#'+domId);
|
||||||
elem.removeClass("disabled");
|
elem.removeClass("disabled");
|
||||||
elem.unbind('click');
|
elem.unbind('onButtonClick');
|
||||||
elem.bind('click', handler);
|
elem.bind('onButtonClick', handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
function disableButton(elem) {
|
function disableButton(elem) {
|
||||||
//var elem = $('#'+domId);
|
//var elem = $('#'+domId);
|
||||||
elem.addClass("disabled");
|
elem.addClass("disabled");
|
||||||
elem.unbind('click');
|
elem.unbind('onButtonClick');
|
||||||
}
|
}
|
||||||
|
|
||||||
function showOrHideThermo() {
|
function showOrHideThermo() {
|
||||||
|
@ -45,7 +45,7 @@ body {
|
|||||||
transition: opacity .35s linear;
|
transition: opacity .35s linear;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
z-index: -5;
|
//z-index: -5;
|
||||||
}
|
}
|
||||||
|
|
||||||
#bgTop {
|
#bgTop {
|
||||||
|
@ -146,15 +146,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*#btnAddOpen {
|
|
||||||
position: absolute;
|
|
||||||
top: 370px;
|
|
||||||
left: 60px;
|
|
||||||
z-index: 1000;
|
|
||||||
width: 200%;
|
|
||||||
display: none;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
.buttonGroup {
|
.buttonGroup {
|
||||||
/*background-color: white;*/
|
/*background-color: white;*/
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
@ -299,7 +299,7 @@
|
|||||||
.joyride-expose-cover {
|
.joyride-expose-cover {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 10000;
|
//z-index: 10000;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
color: #333;
|
color: #333;
|
||||||
white-space:nowrap;
|
white-space:nowrap;
|
||||||
|
|
||||||
z-index: 5;
|
//z-index: 5;
|
||||||
|
|
||||||
display:none;
|
display:none;
|
||||||
|
|
||||||
|
@ -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>
|
||||||
@ -36,6 +36,10 @@
|
|||||||
<h2>Doodle area</h2>
|
<h2>Doodle area</h2>
|
||||||
<p>This is the drawing canvas. Unleash your inner artist!</p>
|
<p>This is the drawing canvas. Unleash your inner artist!</p>
|
||||||
</li>
|
</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">
|
<li data-id="preview" data-button="Next" data-options="tipLocation:left">
|
||||||
<h2>Preview</h2>
|
<h2>Preview</h2>
|
||||||
<p>The preview field shows a preview of how your doodle will look in real life.</p>
|
<p>The preview field shows a preview of how your doodle will look in real life.</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user