slideoff 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slideoff.rb +1 -1
- data/themes/modern/js/script.coffee +4 -6
- data/themes/modern/js/script.js +2 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03c3d6a65b393a187a22c8825e2cdc11a6215529
|
4
|
+
data.tar.gz: 0ec831fed841ca40084346f6d49b4524aab88134
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78ccdb4bf8ba0671cf8cdf1417553c8d85598eff635fb3b2ff6a4a52d386271e37be3f02188fb74fc92b29b7d63330efb3bcd272d3d54dd422a4dd6c3a233ff2
|
7
|
+
data.tar.gz: e0497d6cbb430a3a086706b0c9ba0f8d06132bcc32406995f62c0b27137899c05694e22688f9589fd76cf3047c3c8448bf44b9ce629493f05a3ab029e84de3d3
|
data/lib/slideoff.rb
CHANGED
@@ -284,7 +284,9 @@ class Slide
|
|
284
284
|
window.location.hash = hash
|
285
285
|
$('body').trigger('goto.slideoff', {target: hash})
|
286
286
|
$('body').trigger(hash+'.goto.slideoff', {target: hash})
|
287
|
-
|
287
|
+
if Mode.isSlideMode()
|
288
|
+
@updateProgress()
|
289
|
+
@html().find('.visited').last().removeClass('visited').addClass('current')
|
288
290
|
|
289
291
|
scrollTo: -> window.scrollTo 0, @offsetTop()
|
290
292
|
|
@@ -311,17 +313,13 @@ class Slide
|
|
311
313
|
prevInteractive: ->
|
312
314
|
@firstCurrentElement().removeClass('current').addClass('inactive')
|
313
315
|
|
314
|
-
unless @containsVisited()
|
315
|
-
@prev().goto()
|
316
|
-
return
|
317
|
-
|
318
316
|
@html().find('.visited').last().removeClass('visited').addClass('current')
|
319
317
|
@decrementStep() if @html().hasClass('step-0')
|
320
318
|
|
321
319
|
nextInteractive: ->
|
322
320
|
@firstCurrentElement().removeClass('current').addClass('visited')
|
323
321
|
|
324
|
-
|
322
|
+
if !@containsInactive()
|
325
323
|
@next().goto()
|
326
324
|
return
|
327
325
|
|
data/themes/modern/js/script.js
CHANGED
@@ -387,7 +387,8 @@ Slide = (function() {
|
|
387
387
|
target: hash
|
388
388
|
});
|
389
389
|
if (Mode.isSlideMode()) {
|
390
|
-
|
390
|
+
this.updateProgress();
|
391
|
+
return this.html().find('.visited').last().removeClass('visited').addClass('current');
|
391
392
|
}
|
392
393
|
};
|
393
394
|
|
@@ -438,10 +439,6 @@ Slide = (function() {
|
|
438
439
|
|
439
440
|
Slide.prototype.prevInteractive = function() {
|
440
441
|
this.firstCurrentElement().removeClass('current').addClass('inactive');
|
441
|
-
if (!this.containsVisited()) {
|
442
|
-
this.prev().goto();
|
443
|
-
return;
|
444
|
-
}
|
445
442
|
this.html().find('.visited').last().removeClass('visited').addClass('current');
|
446
443
|
if (this.html().hasClass('step-0')) {
|
447
444
|
return this.decrementStep();
|