Javascript API
console.log("Reserve In-store Version: ", ris.version);Example: Alert preferred location upon initialization
window.ris = window.ris || [];
window.ris.push('on', {
event: 'init',
callback: function() {
ris.getLocation(function(location) {
if (location) {
alert("Preferred location is currently set to: "+ location.name);
} else {
alert("No preferred location is available.");
}
});
}
});Last updated