Skip to content

Commit

Permalink
Issue harvesthq#10: Random delay
Browse files Browse the repository at this point in the history
What do you think, if Delay would be an array?

If there is 1 number in the array, the delay will be equal to this number.
If there are two numbers in the array, the delay would get random number in between.
  • Loading branch information
gorork committed Oct 26, 2014
1 parent c9a98c5 commit e1136f3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion assets/js/tick.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions demo/assets/js/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $( document ).ready( function()
{
$( '.tick' ).ticker(
{
delay : 1000,
delay : [50, 1000], // will take random number in between 50 and 1000 ms
separators : true
});
});
});

0 comments on commit e1136f3

Please sign in to comment.