Skip to content

Instantly share code, notes, and snippets.

@beezee
Created April 11, 2012 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beezee/2360529 to your computer and use it in GitHub Desktop.
Save beezee/2360529 to your computer and use it in GitHub Desktop.
var tourApp = {
tabSteps: {
8: 'images',
12: 'users'
},
needsTweaking: function(i) {
return typeof tourApp.tabSteps[i] != 'undefined';
},
clickTabLink: function(i) {
console.log('clicked', i, $("#binno-custom-tabs a[href='#"+tourApp.tabSteps[i]+"']"));
$("#binno-custom-tabs a[href='#"+tourApp.tabSteps[i]+"']").click();
//Drawium.tour_next()
}
}
function Drawium_explain_box_displayed(index){
if (tourApp.needsTweaking(index)) {
var $next = $('.drawium_next_button');
$next.unbind('click');
$next.bind('click.drawium', tourApp.clickTabLink(index));
} else {
$('.drawium_next_button').unbind('click.drawium');
}
};
jQuery('document').ready(function($) {
$('#drawium_ignition').click(function() {
$("#binno-custom-tabs a[href='#settings']").click();
Drawium.start_tour();
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment