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);
|
slide = document.getElementById(slideList[i].id);
|
||||||
|
|
||||||
if (i < slideNumber) {
|
if (i < slideNumber) {
|
||||||
slide.classList.remove('current');
|
slide.classList.remove('active');
|
||||||
slide.classList.add('passed');
|
slide.classList.add('visited');
|
||||||
} else if (i > slideNumber) {
|
} else if (i > slideNumber) {
|
||||||
slide.classList.remove('passed');
|
slide.classList.remove('visited');
|
||||||
slide.classList.remove('current');
|
slide.classList.remove('active');
|
||||||
} else {
|
} else {
|
||||||
slide.classList.remove('passed');
|
slide.classList.remove('visited');
|
||||||
slide.classList.add('current');
|
slide.classList.add('active');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue