javascript - Bootstrap tour infinite loop -
i trying tour redirect page, when redirects enters loop. tried can. right using path, have tried using onnext , tour doesn't work. here code:
<script> // instance tour var tour = new tour({ steps: [ <?php if(!$master_id) { ?> { placement:"bottom", backdrop:true, duration:5000, element: "#user_signin", title: "sign in account", content: "click here see sign in form" }, { placement:"bottom", backdrop:true, duration:5000, element: "#user_signup", title: "create new account", content: "click here see sign form" }, <?php } ?> { placement:"bottom", backdrop:true, duration:5000, element: "#user_location", title: "choose location", content: "select location can show tailored results , service providers close you." }, { placement:"top", backdrop:true, duration:5000, element: "#autocomplete", title: "search service", content: "search service require, our service categories range automobile repairs fashion design." }, { placement:"top", backdrop:true, duration:5000, element: "#autocompletecity", title: "select location", content: "you can select particular location , search service in location" }, { placement:"top", backdrop:true, duration:5000, element: "#all_categories", title: "select service category", content: "visit service category , view businesses in category , around you" }, { placement:"top", backdrop:true, duration:5000, element: "#footer", title: "useful links", content: "other useful links may need." }, { placement:"top", backdrop:true, duration:5000, element: "#google_translate_element", title: "choose language", content: "not fluent in english? select prefered language." }, { path: "s.php", placement:"bottom", backdrop:true, duration:4000, element: "#all_search_result", title: "view results", content: "view results search" }, { path: "s.php", placement:"bottom", backdrop:true, duration:4000, element: "#my_search_result", title: "view tailored results", content: "view search results based on selected location" } ], keyboard: true, redirect: true, }).init().start(true); </script>
Comments
Post a Comment