diff --git a/demo/demo.html b/demo/demo.html
index ad34f98..2913383 100644
--- a/demo/demo.html
+++ b/demo/demo.html
@@ -101,7 +101,7 @@
- -
+
-
Stop #1
You can control all the details for you tour stop. Any valid HTML will work inside of Joyride.
@@ -136,15 +136,26 @@ Stop #5
$(window).load(function() {
$('#joyRideTipContent').joyride({
autoStart : true,
+ preStepCallback : function () {
+ alert('all pre step callback');
+ },
postStepCallback : function (index, tip) {
- if (index == 2) {
- $(this).joyride('set_li', false, 1);
- }
- },
- modal:true,
- expose: true
+ if (index == 2) {
+ $(this).joyride('set_li', false, 1);
+ }
+ alert('all post step callback');
+ },
+ modal:true,
+ expose: true
});
});
+
+ function myprealert() {
+ alert('pre callback test');
+ }
+ function mypostalert() {
+ alert('post callback test');
+ }