Closed sophielevens closed 5 years ago
@rub1e let me know if you have time to "remote pair" on getting this finished sometime this week. thanks! 😉
Tell you what mate @nelsonic, seeing as you're on holiday and I'm not doing any dev work on Killer Football this week (and because this is an open-source repo 😉) I'll do it pro bono
in the next couple of days (thursday morning most likely)
Bear with the spam for another 48 hours!
Or the alternative would be to merge this now and I can replace with the CDN version on thursday?
OK @nelsonic, if you will be so kind as to indulge my ignorance of basic < squints > coding...
Here is what I think is wrong:
The honeypot was never going to work because
input
in the first placevalidateHuman
function hadn't been copied into the form submission handler JS file (nor had the validEmail
function)rawgit
anyway (see this line)uncomment
(as an aside, I don't get the point of this - surely you can control the honeypot function just by not including a honeypot input
??)gform
element and we've got two different forms (contact and beta signup)So why (I wondered) is the beta signup form actually working?
validEmail
and validateHuman
functions, and so it should throw a referenceError
So what I've done is just make it work - it's not DRY at this stage because I can't see an obvious way of making it DRY without rewriting a fair portion of the script - but I'll make a few comments as a review
to see if I've got the right end of the stick
Grateful for your comments as it took me quite a while to twig what was going on (I've become very used to the ES6 module import/export system)
I did an acceptable code!
References this issue