@@ -28,13 +28,13 @@ var TourView = View.extend({
28
28
this . $tourRemove = this . query ( '#tour-remove' ) ;
29
29
} ,
30
30
showHidePreviousNextButtons : function ( ) {
31
- if ( this . tourCount === 0 ) {
31
+ if ( this . tourCount === 0 ) {
32
32
$ ( '.previous-slide' ) . addClass ( 'hide' ) ;
33
33
} else {
34
34
$ ( '.previous-slide' ) . removeClass ( 'hide' ) ;
35
35
}
36
36
37
- if ( this . tourCount === 4 ) {
37
+ if ( this . tourCount === 4 ) {
38
38
$ ( '.next-slide' ) . addClass ( 'hide' ) ;
39
39
$ ( '#tour-remove' ) . removeClass ( 'hide' ) ;
40
40
} else {
@@ -44,17 +44,17 @@ var TourView = View.extend({
44
44
} ,
45
45
showFeature : function ( ev ) {
46
46
var nCLick = ev . target . getAttribute ( 'data-n' ) ,
47
- that = this ;
48
-
47
+ that = this ;
48
+
49
49
if ( nCLick === null ) {
50
50
return false ;
51
51
}
52
52
var nFeature = parseInt ( nCLick , 10 ) ;
53
-
53
+
54
54
// deselect old
55
55
$ ( '#features li.selected' ) . removeClass ( 'selected' ) ;
56
56
$ ( '.feature-content.active' ) . removeClass ( 'active' ) ;
57
-
57
+
58
58
// select new
59
59
ev . target . className = 'selected' ;
60
60
@@ -63,21 +63,21 @@ var TourView = View.extend({
63
63
$ ( '#animation-gif' ) . css ( 'opacity' , '1' ) ;
64
64
} ) ;
65
65
$ ( '#animation-gif' ) . css ( 'opacity' , '0' ) ;
66
-
66
+
67
67
$ ( '.feature-content#f' + nFeature + '-content' ) . addClass ( 'active' ) ;
68
-
68
+
69
69
this . tourCount = nFeature ;
70
70
this . showHidePreviousNextButtons ( ) ;
71
71
} ,
72
- showPreviousFeature : function ( ev ) {
72
+ showPreviousFeature : function ( ) {
73
73
var currentFeature = this . tourCount ,
74
- previousFeature = this . tourCount - 1 ,
75
- that = this ;
76
-
74
+ previousFeature = this . tourCount - 1 ,
75
+ that = this ;
76
+
77
77
// deselect old
78
78
$ ( '#features li.selected' ) . removeClass ( 'selected' ) ;
79
79
$ ( '.feature-content.active' ) . removeClass ( 'active' ) ;
80
-
80
+
81
81
// select new
82
82
$ ( '#features li#f' + previousFeature ) . addClass ( 'selected' ) ;
83
83
@@ -86,30 +86,30 @@ var TourView = View.extend({
86
86
$ ( '#animation-gif' ) . css ( 'opacity' , '1' ) ;
87
87
} ) ;
88
88
$ ( '#animation-gif' ) . css ( 'opacity' , '0' ) ;
89
-
89
+
90
90
$ ( '.feature-content#f' + previousFeature + '-content' ) . addClass ( 'active' ) ;
91
91
92
92
this . tourCount = previousFeature ;
93
93
this . showHidePreviousNextButtons ( ) ;
94
94
} ,
95
- showNextFeature : function ( ev ) {
95
+ showNextFeature : function ( ) {
96
96
var currentFeature = this . tourCount ,
97
- nextFeature = this . tourCount + 1 ,
98
- that = this ;
99
-
97
+ nextFeature = this . tourCount + 1 ,
98
+ that = this ;
99
+
100
100
// deselect old
101
101
$ ( '#features li.selected' ) . removeClass ( 'selected' ) ;
102
102
$ ( '.feature-content.active' ) . removeClass ( 'active' ) ;
103
-
103
+
104
104
// select new
105
105
$ ( '#features li#f' + nextFeature ) . addClass ( 'selected' ) ;
106
-
106
+
107
107
$ ( '#animation-gif' ) . one ( 'webkitTransitionEnd' , function ( event ) {
108
108
that . $animationGIF . src = that . tourImagesFolder + 'f' + nextFeature + '.gif' ;
109
109
$ ( '#animation-gif' ) . css ( 'opacity' , '1' ) ;
110
110
} ) ;
111
111
$ ( '#animation-gif' ) . css ( 'opacity' , '0' ) ;
112
-
112
+
113
113
$ ( '.feature-content#f' + nextFeature + '-content' ) . addClass ( 'active' ) ;
114
114
115
115
this . tourCount = nextFeature ;
0 commit comments