diff --git a/js/Help.js b/js/Help.js index a8d1717..a94a425 100644 --- a/js/Help.js +++ b/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); diff --git a/js/buttonbehaviors.js b/js/buttonbehaviors.js index a67b6d3..57c6522 100644 --- a/js/buttonbehaviors.js +++ b/js/buttonbehaviors.js @@ -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() { diff --git a/js/main.js b/js/main.js index d4bd7b5..8462710 100644 --- a/js/main.js +++ b/js/main.js @@ -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() { diff --git a/less/base.less b/less/base.less index cc3d06f..5375bbc 100644 --- a/less/base.less +++ b/less/base.less @@ -45,7 +45,7 @@ body { transition: opacity .35s linear; position: absolute; left: 0px; - z-index: -5; + //z-index: -5; } #bgTop { diff --git a/less/buttons.less b/less/buttons.less index df15756..1c4f032 100644 --- a/less/buttons.less +++ b/less/buttons.less @@ -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; diff --git a/less/help_joyride-2.1.less b/less/help_joyride-2.1.less index 582a0c1..15a97f0 100644 --- a/less/help_joyride-2.1.less +++ b/less/help_joyride-2.1.less @@ -299,7 +299,7 @@ .joyride-expose-cover { background: transparent; position: absolute; - z-index: 10000; + //z-index: 10000; top: 0; left: 0; border-radius: 5px; diff --git a/less/message.less b/less/message.less index 0076c1b..e66f1fa 100644 --- a/less/message.less +++ b/less/message.less @@ -13,7 +13,7 @@ color: #333; white-space:nowrap; - z-index: 5; + //z-index: 5; display:none; diff --git a/www/helpcontent.html b/www/helpcontent.html index 085d090..e55fb40 100644 --- a/www/helpcontent.html +++ b/www/helpcontent.html @@ -20,7 +20,7 @@

Save

Saves your doodle to the local Doodle3D Wi-Fi box.

-
  • +
  • View saved doodles

    Use the buttons '<' and '>' to flip through all the saved doodles on your Wi-Fi box.

  • @@ -36,6 +36,10 @@

    Doodle area

    This is the drawing canvas. Unleash your inner artist!

    +
  • +

    Edit

    +

    Behind this button you'll find buttons to do simple 2D edits

    +
  • Preview

    The preview field shows a preview of how your doodle will look in real life.