From bf6d934cd03cc92dcb6deb07909b92d08ef01761 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 4 May 2018 23:23:16 -0600 Subject: [PATCH] contact form for BroccoliWallet.com --- broccoliwallet.html | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/broccoliwallet.html b/broccoliwallet.html index 5126ee6..bc499e3 100644 --- a/broccoliwallet.html +++ b/broccoliwallet.html @@ -11,7 +11,7 @@ Name is optional and could be anything (it's just a text field for comments) --> -
+
@@ -21,7 +21,7 @@
- +
@@ -36,25 +36,25 @@ function saveContact(name, email) { email = email.toLowerCase().trim(); name = (name || '').trim(); - return window.fetch('https://api.ppl.family/api/ppl.family/public/list', { - method: 'POST' - , cors: true - , headers: new Headers({ 'Content-Type': 'application/json' }) - , body: JSON.stringify({ address: email, comment: 'Broccoli: ' + name }) - }).then(function (resp) { - return resp.json().then(function (data) { - /* - if (data.error) { - window.alert("Couldn't save your contact. Email coolaj86@gmail.com instead."); - return; - } - */ - }); - }, function () { - /* - window.alert("Didn't get your contact. Bad network connection? Email coolaj86@gmail.com instead."); - */ - }); + return window.fetch('https://api.ppl.family/api/ppl.family/public/list', { + method: 'POST' + , cors: true + , headers: new Headers({ 'Content-Type': 'application/json' }) + , body: JSON.stringify({ address: email, comment: 'Broccoli: ' + name }) + }).then(function (resp) { + return resp.json().then(function (data) { + /* + if (data.error) { + window.alert("Couldn't save your contact. Email coolaj86@gmail.com instead."); + return; + } + */ + }); + }, function () { + /* + window.alert("Didn't get your contact. Bad network connection? Email coolaj86@gmail.com instead."); + */ + }); } window.document