<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Legacy Builders | Digital Growth</title>
	<style>
		body,
		html {
			margin: 0;
			padding: 0;
			height: 100%;
		}

		.captcha {
			display: none;
			/* Initially hide the CAPTCHA */
		}

		.captcha-overlay {
			position: fixed;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background-color: rgba(0, 0, 0, 0.5);
			display: flex;
			justify-content: center;
			align-items: center;
			z-index: 9999;
		}
		.hide{
			display: none;
		}

		.captcha-content {
			width: 80%;
			max-width: 400px;
			text-align: center;
			padding: 20px;
			border: 2px solid #ccc;
			border-radius: 10px;
			background-color: #f9f9f9;
		}

		.captcha-text {
			margin-bottom: 20px;
			font-weight: bold;
		}

		.captcha-overlay .button {
			width: 200px;
			height: 50px;
			line-height: 50px;
			background-color: #007bff;
			color: #fff;
			border-radius: 5px;
			cursor: pointer;
			margin: 0 auto;
			-webkit-user-select: none;
			/* Safari */
			-moz-user-select: none;
			/* Firefox */
			-ms-user-select: none;
			/* Internet Explorer/Edge */
			user-select: none;
			/* Non-prefixed version, currently supported by Chrome, Opera and Firefox */
			-webkit-touch-callout: none;
			/* iOS Safari */
			-webkit-user-select: none;
			/* Safari */
			-khtml-user-select: none;
			/* Konqueror HTML */
			-moz-user-select: none;
			/* Firefox */
			-ms-user-select: none;
			/* Internet Explorer/Edge */
			user-select: none;
			/* Non-prefixed version, currently supported by Chrome, Opera and Firefox */
		}

		.progress-container {
			width: 100%;
			height: 10px;
			background-color: #ddd;
			border-radius: 5px;
			margin-top: 20px;
		}

		.progress-bar {
			height: 100%;
			background-color: #007bff;
			border-radius: 5px;
			width: 0;
		}

		.message {
			color: red;
			margin-top: 10px;
			display: none;
		}

		/* Show CAPTCHA only on mobile screens */
		@media (max-width: 767px) {
			.captcha {
				display: block;
				/* Show CAPTCHA */
			}
		}
	</style>
</head>

<body>
	<div class="captcha-overlay hide" id="captcha-overlay">
		<div class="captcha-content" id="captcha-content">
			<div class="captcha-text">Press & Hold To Confirm You Are A Human (and not a bot)</div>
			<div class="button">Press &amp; Hold</div>
			<div class="progress-container">
				<div class="progress-bar" id="progressBar"></div>
			</div>
			<div class="message" id="captchaMessage"></div>
		</div>
	</div>	<script type="text/javascript">
		var GB_ROOT_DIR = "https://theclickgenerator.com/ExitSalesGen/";
		var GB_MVB_ID = "salinas420";
		var GB_url = 'https://rebrandxpress.com/r/r15202ff?id=8639';
		var GB_close_url = 'https://jump2freedom.systeme.io/video';
		var thank_you_url = 'https://jump2freedom.systeme.io/video';
		var optin_url = 'https://jump2freedom.systeme.io/video';
		var squeezepage_url = 'https://mycapturepage.com/cp66.php?user=jump2freedom&campaign=All websites&campaign=All websites';


	</script>
	<script type="text/javascript">
		function showCaptcha() {
			// Check if CAPTCHA has already been shown
			if (!localStorage.getItem('tcm_captchaShown')) {
				document.getElementById('captcha-overlay').classList.remove("hide");
				let captchaButton = document.getElementById('captcha-content');
				captchaButton.addEventListener('touchstart', startHold);
				captchaButton.addEventListener('touchend', checkHold);

				// Set localStorage flag to indicate CAPTCHA has been shown
			}
		}

		let startTime;
		let holdInterval;

		function startHold() {
			startTime = Date.now();
			holdInterval = setInterval(updateProgress, 100);
		}

		function updateProgress() {
			let elapsedTime = Date.now() - startTime;
			let progressBar = document.getElementById('progressBar');
			let progress = Math.min((elapsedTime / 2000) * 100, 100); // 3000ms = 3 seconds
			progressBar.style.width = progress + '%';
		}

		function checkHold() {
			clearInterval(holdInterval);
			let holdTime = (Date.now() - startTime) / 1000;
			if (holdTime >= 2) {
				document.getElementById('captchaMessage').style.display = 'none';
				localStorage.setItem('tcm_captchaShown', true);
				removeCaptcha();
			} else {
				document.getElementById('captchaMessage').style.display = 'block';
				document.getElementById('captchaMessage').innerText = 'Please hold for at least 2 seconds.';
				resetProgress();
			}
		}

		function resetProgress() {
			let progressBar = document.getElementById('progressBar');
			progressBar.style.width = '0%';
		}

		function removeCaptcha() {
			document.getElementById('captcha-content').innerHTML="<a class='button' style='padding:10px' onclick='redirectPages()'>Click here to continue</a>";
			// window.open(squeezepage_url, '_blank');
			// window.location.href = GB_close_url;
			// let captchaOverlay = document.querySelector('.captcha-overlay');
			// if (captchaOverlay) {
			// 	captchaOverlay.remove();
			// }
		}

		function redirectPages(){
			window.open(squeezepage_url, '_blank');
			window.location.href = GB_url;
		}

		function isMobile() {
			return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
		}
		// Show CAPTCHA when the page loads
		window.onload = function () {
			if (isMobile() && 1==1) {
				showCaptcha();
			}
		};

	</script>
	<script src="ExitSalesGen/AJS.js"></script><script src="ExitSalesGen/AJS_fx.js"></script><script src="ExitSalesGen/gb_scripts_getstarted.js"></script><script src="ExitSalesGen/exit.js"></script><link rel="stylesheet" href="ExitSalesGen/gb_styles.css"></link><link rel="stylesheet" href="ExitSalesGen/modal.css"></link>	<style>
		body {
			margin: 0;
		}

		.sq_page_class {
			width: 100%;
			height: 100vh;
			/* Optionally set a specific height for the container */
			position: relative;
			overflow: hidden;
		}

		iframe {
			width: 100%;
			height: 100%;
			border: none;
			display: block;
		}

		.btn {
			background:
				#000000			;
			color:
				#30f722			;
		}

		.heading {
			color:
				#000000			;
		}
	</style>
	<div id="tcg_myModal" class="modal-bg">

		<!-- Modal content -->
		<div class="modal-content">
			<h2 class="heading">
				WELCOME			</h2>
			<!-- <span class="close">&times;</span> -->
			<a class="btn" href="https://jump2freedom.systeme.io/video" target="_blank" id="tcg_click_opt">
				ENTER HERE			</a>
		</div>

	</div>
	<div class="sq_page_class">
		<!-- The modal -->
		<iframe id="tcg_myIframe" src="https://mycapturepage.com/cp66.php?user=jump2freedom&campaign=All websites&campaign=All websites"></iframe>
		<input type="hidden" id="showpopup" value="1">
	</div>

	<script>
		// Get the iframe element
		var iframe = document.getElementById('tcg_myIframe');

		// Add a load event listener to the iframe
		var cnt = 0;
		iframe.onload = function () {
			cnt++;
			if (cnt >= 2 || ""=="success") {
				//document.getElementById('tcg_myIframe').style.display="none";
				if (thank_you_url != "") {
					document.getElementById('tcg_myIframe').remove();
					var newIframe = document.createElement('iframe');
					newIframe.src = thank_you_url;
					newIframe.frameborder = '0';
					document.querySelector('.sq_page_class').appendChild(newIframe);
					document.getElementById('tcg_myModal').style.display = "block";
					document.getElementById('showpopup').value = 0;
				}
				//window.open(optin_url, '_blank');
				//alert('asd');

			}
			// Access the contentWindow property of the iframe to get its window object
			// var iframeWindow = iframe.contentWindow;

			// // Access the document object of the iframe window
			// var iframeDocument = iframeWindow.document;

			// var form = iframeDocument.querySelector('form');

			// // Add a submit event listener to the form
			// form.addEventListener('submit', function (event) {
			// 	event.preventDefault(); // Prevent the default form submission behavior
			// 	alert('Submit button inside iframe clicked!');
			// 	// You can perform additional actions here if needed
			// });
		};

		var link = document.getElementById("tcg_click_opt");

		// Add an event listener to the anchor element
		link.addEventListener("click", function (event) {
			// Prevent the default behavior of the anchor element (opening in a new tab)
			event.preventDefault();

			// Open the link in a new tab
			if (optin_url != "") {

				if (thank_you_url != "") {
					window.open(link.href, '_blank');
				}
				window.location.href = optin_url;
			}
			else {
				if (thank_you_url != "") {
					window.location.href = link.href;
				}
			}

		});
	</script>
</body>

</html>