I made a tour through my website. I want that users can start the tour manually on button click after they end the tour.
Button:
<a href="#" id="tour"><i class=""></i> Start Tour</a>
Bootstrap tour script.
<script type="text/javascript">
var tour = new Tour();
tour.addSteps([
{
element: "#step1",
title: "Welcome.",
content: "Welcome to step one.",
placement: "top"
}
]);
tour.addSteps([
{
element: "#step2",
title: "Contact us.",
content: "If you have any questions, please contact us.",
placement: "left"
}
]);
tour.start();
</script>