tweaks for june
This commit is contained in:
		
							parent
							
								
									f96524b596
								
							
						
					
					
						commit
						16e1340a7c
					
				
					 3 changed files with 29 additions and 28 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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!
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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/"); */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue