update contact form

This commit is contained in:
AJ ONeal 2018-09-17 05:38:23 +00:00
parent f0fda13b16
commit 7c5a451a9a
1 changed files with 4 additions and 2 deletions

View File

@ -4,9 +4,11 @@
document.body.hidden = false;
function formSubmit() {
// to be used for good, not evil
var msg = {
address: document.querySelector('.js-list-address').value
, comment: 'telebit.cloud: ' + (document.querySelector('.js-list-comment').value || '')
name: document.querySelector('.js-list-comment').value
, address: document.querySelector('.js-list-address').value
, list: 'telebit@ppl.family'
};
window.fetch('https://api.ppl.family/api/ppl.family/public/list', {