dwyl / dwyl-site

:eyes: The dwyl website (please tell us what you think!)
https://dwyl.com
33 stars 14 forks source link

adds form submission handler to contact form #457

Closed sophielevens closed 5 years ago

sophielevens commented 6 years ago

References this issue

nelsonic commented 6 years ago

@rub1e let me know if you have time to "remote pair" on getting this finished sometime this week. thanks! 😉

rub1e commented 6 years ago

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?

rub1e commented 6 years ago

OK @nelsonic, if you will be so kind as to indulge my ignorance of basic < squints > coding...

Here is what I think is wrong:

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)

rub1e commented 5 years ago

I did an acceptable code!