Skip to content

Instantly share code, notes, and snippets.

@scottweisman
Created December 10, 2014 16:37
Show Gist options
  • Save scottweisman/759673329bd17406fd84 to your computer and use it in GitHub Desktop.
Save scottweisman/759673329bd17406fd84 to your computer and use it in GitHub Desktop.
hopscotch tour status
var getTourStatus = function() {
var tourStatus = "";
$.ajax({
type: "GET",
url: "/users/" + userId + ".json",
dataType: "json",
data: { get_param: 'finished_tour' },
success: function(data) {
var tourStatus = data.finished_tour;
if(!tourStatus) {
hopscotch.startTour(basicSearch);
}
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment