Hides help iframe after tour starts and makes first tooltip floating.
Change-Id: Ic9b24dfad38626812b627c8a01e0d7bbbf06cdf7
diff --git a/dev/js/src/tour/tours.js b/dev/js/src/tour/tours.js
index 2d604ea..ec4a631 100644
--- a/dev/js/src/tour/tours.js
+++ b/dev/js/src/tour/tours.js
@@ -121,10 +121,8 @@
let Steps =[
//Step 1, intro_item 0
{
- element: '#link-guided-tour',
title: loc.TOUR_welcti,
intro: loc.TOUR_welc,
- position: 'right',
},
//Step 2, intro_item 1
{
@@ -245,7 +243,14 @@
intro._introItems[7].element = doe.querySelector('#vc-view * .doc');
intro._introItems[7].position = "left";
break;
- }
+ }
+ /*
+ * Hides the tutorial. If it is opened in an iframe the searchbar which is needed for the tour is not visible anymore.
+ */
+ if(this._currentStep == 1){
+ let tutel = doe.querySelector('#tutorial');
+ tutel.style.display = 'none';
+ }
if(this._currentStep == 9){
let statbut = doe.querySelector('.statistic');
statbut.click();