Action slide classes renamed, fixes #105
This commit is contained in:
parent
f780dfe308
commit
09b7263377
12
shower.js
12
shower.js
|
@ -436,14 +436,14 @@ window.shower = (function(window, document, undefined) {
|
|||
slide = document.getElementById(slideList[i].id);
|
||||
|
||||
if (i < slideNumber) {
|
||||
slide.classList.remove('current');
|
||||
slide.classList.add('passed');
|
||||
slide.classList.remove('active');
|
||||
slide.classList.add('visited');
|
||||
} else if (i > slideNumber) {
|
||||
slide.classList.remove('passed');
|
||||
slide.classList.remove('current');
|
||||
slide.classList.remove('visited');
|
||||
slide.classList.remove('active');
|
||||
} else {
|
||||
slide.classList.remove('passed');
|
||||
slide.classList.add('current');
|
||||
slide.classList.remove('visited');
|
||||
slide.classList.add('active');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue