Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function restartAutos2() {
- $('#restartautosbutton').attr('value', 'Restarting...').attr('disabled', 'true');
- $.post('actions.php', {mod:'restartautos'}, function(data) {
- if(data.sc) {
- securityCheck(data.v);
- setTimeout(submitSecurityCheck, Math.round(604 + (Math.random()*1000)));
- console.log('SECURITY CHECKK');
- } else {
- $('#restartautosbutton').attr('value', 'Autos Restarted');
- var displayAutos = displayAutosRemaining(data.autos, data.fatigue);
- $('#autos-remaining').html(displayAutos);
- }
- }, 'json');
- }
- function loop() {
- let rand_base = Math.round(Math.random() * 550000);
- let rand = rand_base + Math.round(Math.random() * 3000);
- console.log('rand: ', rand);
- setTimeout(function() {
- restartAutos2();
- loop();
- }, rand);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement