sorich87 / bootstrap-tour

Quick and easy product tours with Twitter Bootstrap Popovers
http://bootstraptour.com
MIT License
4.44k stars 942 forks source link

Everytime I refresh the page, bootstrap tour restarts #706

Closed elsheikh21 closed 6 years ago

elsheikh21 commented 6 years ago

Everytime I refresh the page, the tour restarts and I do not want this effect. Here is my code `

    var profileTour = new Tour({
      steps: [{
          element: "#profile-info",
          title: "Welcome to your profile",
          content: "This has all of your information.",
          placement: "bottom",
          backdrop: false,
          animation: true
        },
        {
          element: "#profile-experience",
          title: "How experienced are you?",
          content: "In this area, add all of your prior jobs.",
          placement: "bottom",
          backdrop: false,
          animation: true
        },
        {
          element: "#your-current-job",
          title: "Current employment status",
          content: "In this area, you posted your current status.",
          placement: "bottom",
          backdrop: false,
          animation: true
        },
        {
          element: "#profile-education",
          title: "How was your education?",
          content: "Tell us more about your education, by adding it here.",
          placement: "bottom",
          backdrop: false,
          animation: true
        },
        {
          element: "#profile-skillset",
          title: "Your skills",
          content: "The more assessments you pass, the more tools you have in your pouch.",
          placement: "bottom",
          backdrop: false,
          animation: true
        }
      ],
      storage: false
    });
    profileTour.init();
    profileTour.setCurrentStep(0);
    profileTour.start();

` I can not know what I am doing wrong, can you please let me know