Fix in the rockstar count.

This commit is contained in:
Said Tahsin Dane 2015-02-23 16:09:51 +02:00
parent 554378b49b
commit 3ceb2f7847

View file

@ -95,7 +95,7 @@ layout: compress
rockstarSpeakers.sort(function() {return 0.5 - Math.random()}); rockstarSpeakers.sort(function() {return 0.5 - Math.random()});
if(rockstarSpeakers.length > 0) { if(rockstarSpeakers.length > 0) {
var animationDelay = 1500, var animationDelay = 1500,
count = {{ site.rockstarSpeakersCount }}, count = Math.min({{ site.rockstarSpeakersCount }}, rockstarSpeakers.length),
colWidth = 12/count; colWidth = 12/count;
for(i=0; i<count; i++) { for(i=0; i<count; i++) {
var clearfix = '<div class="clearfix visible-xs"></div>'; var clearfix = '<div class="clearfix visible-xs"></div>';