Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.

Commit afb3097

Browse files
author
Gordon Koo
committed
use some less annoying callback examples for nav buttons
1 parent 604d8df commit afb3097

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

index.html

+3-6
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h2 id="subheading" class="one two three">Content</h2>
6464
targetId: 'subheading',
6565
orientation: 'bottom',
6666
nextCallback: function() {
67-
alert('clicked next on step 1');
67+
document.getElementById('pageTitle').style.color = '#f00';
6868
}
6969
},
7070
{
@@ -75,7 +75,7 @@ <h2 id="subheading" class="one two three">Content</h2>
7575
width: 320,
7676
height: 480,
7777
prevCallback: function() {
78-
alert('clicked prev on step 2');
78+
document.getElementById('pageTitle').style.color = '#000';
7979
}
8080
},
8181
{
@@ -88,10 +88,7 @@ <h2 id="subheading" class="one two three">Content</h2>
8888
title: 'Python decorator',
8989
content: 'Here\'s an example of a python decorator',
9090
targetId: 'python',
91-
orientation: 'right',
92-
nextCallback: function() {
93-
alert('clicked next on step 4');
94-
}
91+
orientation: 'right'
9592
},
9693
{
9794
title: 'Mission district',

0 commit comments

Comments
 (0)