Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Something cool for the kids on the street...
$('.bt-request-buffed').each(
function(index, value) { var el = $(this); var alpha = Math.floor((Math.random() * 8) + 3); setTimeout(function() { el.trigger('click'); }, (index * alpha) * 2500); });
/* Alternatively, you might try (index + alpha) * 1000 for a more natural sequence */
@KarimJedda

This comment has been minimized.

Copy link

commented Sep 4, 2015

Here, maybe you'll find this interesting:
setInterval(function(){$('.bt-request-buffed').click();$('html, body').animate({ scrollTop: $('#footer').offset().top - 500 }, 'slow');},5000);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.