Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resume tour after skip action && Restart tour after tour complete? #150

Open
yasar2385 opened this issue Oct 16, 2020 · 1 comment
Open

Comments

@yasar2385
Copy link

yasar2385 commented Oct 16, 2020

Hi Team,
I have faced restart tour after tour complete?
note: endStep destroy the hint

//initialize instance
var enjoyhint_instance = new EnjoyHint({
onSkip: function() {
            dSkip = true;
    stepResume = enjoyhint_instance.getCurrentStep()
        },
        onEnd: function() {
            dSkip == false;
        }
});

var enjoyhint_script_steps = [
  {
    'click .new_btn' : 'Click the "New" button to start creating your project'
  } ,
{
    'click .new_btn' : 'Click the "New" button to start creating your project'
  }  
];

//set script config
enjoyhint_instance.set(enjoyhint_script_steps);

//run Enjoyhint script
$('.guide').click(function(e) {
  if(dSkip){
   enjoyhint_instance.resume();
  } else {
   enjoyhint_instance.run();
 }
}

@yasar2385 yasar2385 reopened this Oct 16, 2020
@mikich-k2v
Copy link

Hey community, any advice will be appreciated...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants