Skip to content

Commit e1136f3

Browse files
committed
Issue #10: Random delay
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.
1 parent c9a98c5 commit e1136f3

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

assets/js/tick.js

+9-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/assets/js/interface.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ $( document ).ready( function()
22
{
33
$( '.tick' ).ticker(
44
{
5-
delay : 1000,
5+
delay : [50, 1000], // will take random number in between 50 and 1000 ms
66
separators : true
77
});
8-
});
8+
});

0 commit comments

Comments
 (0)