diff --git a/content/staff/chris-and-abbie-cochrun/_index.md b/content/staff/chris-and-abbie-cochrun/_index.md index d807c3a..9b66659 100644 --- a/content/staff/chris-and-abbie-cochrun/_index.md +++ b/content/staff/chris-and-abbie-cochrun/_index.md @@ -15,6 +15,7 @@ cascade: showBreadcrumbs: true sharingLinks: ['facebook', 'instagram', 'email', 'reddit'] showHero: false + showAuthor: false layout: "simple" summary: "Chris and Abbie Cochrun serve together on TFC Staff! Chris grew up in Agra KS as a part of the Eastern Heights TFC group, Abbie grew up as a part of the Northern Valley TFC group..." weight: 70 diff --git a/content/staff/chris-and-abbie-cochrun/june2023/index.org b/content/staff/chris-and-abbie-cochrun/june2023/index.org index cc018af..1bd9dec 100644 --- a/content/staff/chris-and-abbie-cochrun/june2023/index.org +++ b/content/staff/chris-and-abbie-cochrun/june2023/index.org @@ -1,12 +1,9 @@ #+TITLE: Our Growing Family 👶 #+date: 2023-07-07 #+tags[]: Chris-Abbie-Cochrun, Northern-Valley, Camp -#+featured_image: "featured.jpg" #+showHero: true #+newsletter: true -#+description: "This month has been quite crazy, and yet, not much has been done in TFC land. Just, ya know, two mission trips, a staff retreat to work on our plans for the next year, and a whole lot of TFC camp planning!" -#+summary: "This month has been quite crazy, and yet, not much has been done in TFC land. Just, ya know, two mission trips, a staff retreat to work on our plans for the next year, and a whole lot of TFC camp planning!" -#+showAuthor: false +#+HUGO_CUSTOM_FRONT_MATTER: :showAuthor false #+showAuthorsBadge: true #+showTaxonomies: true #+showReadingTime: true @@ -15,6 +12,9 @@ #+layout: "simple" #+authors[]: chriscochrun #+showTableOfContents: true +#+description: "This month has been quite crazy, and yet, not much has been done in TFC land. Just, ya know, two mission trips, a staff retreat to work on our plans for the next year, and a whole lot of TFC camp planning!" +#+summary: "This month has been quite crazy, and yet, not much has been done in TFC land. Just, ya know, two mission trips, a staff retreat to work on our plans for the next year, and a whole lot of TFC camp planning!" +#+featured_image: "featured.jpg" ** Our Growing Family! diff --git a/layouts/shortcodes/health-form.html b/layouts/shortcodes/health-form.html index 0918d5d..c272e84 100644 --- a/layouts/shortcodes/health-form.html +++ b/layouts/shortcodes/health-form.html @@ -67,27 +67,12 @@ data.forEach((value, key) => obj[key] = value); // For use in dev - fetch("http://localhost:4242/health-form", { - method: "POST", - body: data - }).then((res) => { - console.log(res); - if (res.ok) { - if (mtRegistration === 'now') - window.location.href = 'https://secure.myvanco.com/L-Z772/campaign/C-13DM3'; - else if (registration === 'now') - window.location.href = 'https://secure.myvanco.com/L-Z772/campaign/C-13JPJ'; - else if (registration === 'full') - window.location.href = 'https://secure.myvanco.com/L-Z772/campaign/C-13JQE'; - else - window.location.href = '/thankyou/'; - } - }); - - // For use in prod - /* var xhr = new XMLHttpRequest(); - * xhr.onreadystatechange = function() { - * if (this.readyState == 4 && this.status == 200) { + /* fetch("http://localhost:4242/health-form", { + * method: "POST", + * body: data + * }).then((res) => { + * console.log(res); + * if (res.ok) { * if (mtRegistration === 'now') * window.location.href = 'https://secure.myvanco.com/L-Z772/campaign/C-13DM3'; * else if (registration === 'now') @@ -97,9 +82,24 @@ * else * window.location.href = '/thankyou/'; * } - * }; - * xhr.open("POST", "https://n8n.tfcconnection.org/webhook/health-form"); - * xhr.send(data); */ + * }); */ + + // For use in prod + var xhr = new XMLHttpRequest(); + xhr.onreadystatechange = function() { + if (this.readyState == 4 && this.status == 200) { + if (mtRegistration === 'now') + window.location.href = 'https://secure.myvanco.com/L-Z772/campaign/C-13DM3'; + else if (registration === 'now') + window.location.href = 'https://secure.myvanco.com/L-Z772/campaign/C-13JPJ'; + else if (registration === 'full') + window.location.href = 'https://secure.myvanco.com/L-Z772/campaign/C-13JQE'; + else + window.location.href = '/thankyou/'; + } + }; + xhr.open("POST", "https://n8n.tfcconnection.org/webhook/health-form"); + xhr.send(data); console.log(data); /* window.location.replace("https://tfcconnection.org/thankyou/"); */