DevLog.at

My Developer Journey

This is a test

Viewing Single Post (1/1)

Implemented an intricate anti-spam measure.

window.setTimeout(function(){
    var sf = 'sf_' + Math.random().toString(36).replace('0.', ''); 	    var sf = $('#sf');
    $('.donation-form').append($("<input type='hidden' name='sf'/>").val(sf));	
     if(sf.val())
      sf.val(sf.val() + '!');
    else
      sf.val(Math.random().toString(36).replace('0.', '') + $('#donation_form_id').val());
  }, 7000);	  }, 7000);
});	});

3m

0 comments on this post

Sign in with GitHub to comment on this post.