mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
10 lines
325 B
JavaScript
10 lines
325 B
JavaScript
function spam(){
|
|
spam.start = true; spam.lock = false;
|
|
if(spam.count >= 100){ return }
|
|
var $f = $('form');
|
|
$('.what', $f).value = ++spam.count;
|
|
$f.onsubmit();
|
|
setTimeout(spam, 0);
|
|
}; spam.count = 0; spam.lock = true;
|
|
|
|
alert("ADD THIS LINE TO THE TOP OF THE MAP.VAL CALLBACK: `if(!spam.lock && !spam.start){ spam() }`"); |