Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Recalculate startingSlide when removing old quotes.

  • Loading branch information...
commit 1924b6778a4ce9412dc8ea0b177e011321af3bba 1 parent 41f1916
@jarmo authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 public/hackersays.js
View
4 public/hackersays.js
@@ -82,8 +82,10 @@ $(function() {
});
var quotesEls = quotesEl.find("li");
- if (quotesEls.length >= 42)
+ if (quotesEls.length >= 42) {
quotesEls.slice(0, 20).remove();
+ sliderOptions.startingSlide -= 20;
+ }
slider = quotesEl.bxSlider(sliderOptions);
}, 0);
Please sign in to comment.
Something went wrong with that request. Please try again.