Falls Farm Is Now Accepting Sign-Ups For The 2024 Season!

Search
Close this search box.

Contact Us

<script>
	
	let bodyClass = document.getElementsByTagName('body');
	
	if (bodyClass[0].classList.contains('page-id-26')) {
		
		let name_label = document.querySelector('#field_1_6 label');
		let name_input = document.querySelector('#field_1_6 input');

		let email_label = document.querySelector('#field_1_5 label');
		let email_input = document.querySelector('#field_1_5 input');

		let message_label = document.querySelector("#field_1_4 label");
		let message_input = document.querySelector('#field_1_4 textarea');

		name_input.addEventListener('focus', function() {
			name_label.classList.add('lift-input');
		});
		name_input.addEventListener('blur', function() {
			if (!name_input.value) {
				name_label.classList.remove('lift-input');
			}
		});

		email_input.addEventListener('focus', function() {
			email_label.classList.add('lift-input');
		});
		email_input.addEventListener('blur', function() {
			if (!email_input.value) {
				email_label.classList.remove('lift-input');
			}		
		});

		message_input.addEventListener('focus', function() {
			message_label.classList.add('textarea-lift-input');
		});
		message_input.addEventListener('blur', function() {
			if (!message_input.value) {
				message_label.classList.remove('textarea-lift-input');
			}		
		});
		
	}
	
</script>